1 more week to deadline of our whiteboard application.
Most of our main functions were completed. According to last Friday's discussion meeting, we came out with 2 more new task.
- Drag and draw within the drawing point of the image
- Drag image out from palette
Since I had completed with my part, therefore I would be working on the drag and draw within drawing point of the image. You hock would be in charge of the dragging images from the palette. I actually come out with some algothrim to do the calculation of the image which will allow the user to do drag and draw.
Basically, I would need to get the coordinates of the bottom left corner where the drawing area is located. And of course the coordinates of the center of the image. So that I could calculate the distance between the two coordinates, from that I could tell which is the drag and draw part and the dragging part. Using the laser coordinates to check on the laser location and make the coordinates center and the bottom left corner of image to follow the laser.
However, there is still some part I did not handle properly. Therefore, the dragging is not very accurate. Luckily, Ming Hong came over to help me with that which shorten my progress timing so that I can continue with my other stuff.
6 January 2009 Tuesday
I start working on multi control of images so that one laser could drag and draw more than one image. Also, an image could be drag and draw by one or more laser .
We went for early lunch at Sim Lim Square because Wilson want to build a new PC. So we went there to buy the PC's parts. Headed back to the office and build the PC.
7 January 2009 Wednesday
In the morning, I continue working on the multi control of the images. Initially, I create another new image and 2 more Math to store the second image coordinates. While the display seen to be alright but when dragging came in. Only one image was working properly and another seems to be a display image. So, I made changes to the codes and did plenty of testing. The problem was still there. Then, I notice that the second image coordinates were not recorded at the first place. At that moment, I found out that the positioning of the second image was set by me and no changes were made after that.
Therefore, I set if else case to check on the Math.
if(inputNumber[5] == 0 && inputNumber[6] == 0)
{
//there is no previous coordinates
//image = laser's coordinates
}
else
{
//there is previous coordinates
// image = previous coordinates
}
With that, the part is solved.
After lunch, we went for shooting of the Lightdraw's video at level 15. Wilson, Leonard and You Hock join me for the shooting. While they were there to give me support as audience and I am the only one who is the "actor", Cheng Ting is the "Director" and camera man and Ming Hong helping out to set up the Lightdraw application using iGlasses. The shooting was fun although there is alot of NG due to my mistake. So I had to retake again and again till I am so familiar with that.


8 January 2009 Thursday
We start integrating our parts together so that we can do an Alpha version to show Kevin. At the beginning, we find it quite hard to integrate together, as all of us have our unique way of coding it. Well, and most of them find my coding the most unique. They would always ask me what is this part doing and that part doing. But the integration was fine after all.
After lunch, shooting part 2. Cheng Ting had all of us to involve in the shooting to show that lightdraw can be multi-user. We demo on our applications which were the 4 player pong and puzzle game.
9 January 2009 Friday
Integration & Testing
Still working on the integration of our application and testing of the application each time one part was added. So that we could ensure that the part that was integrated could work.
No comments:
Post a Comment