As mentioned last week, we created a simple application using the patches from GLTools to change the coordinates of the GL Line using left and right clicks, soon as I reach the lab, I started to research more on the GL Tools. We started to create the drawing applications using GL Tools.
Soon, as we start on it, Leonard found a patch that would allow drawing in Quartz Composer and so, we took the patch, did some modification and it was able to work. Initially, we were trying to draw using only GL Line but the effects was not as smooth as if it was really drawing on it. So Ming Hong suggested we cound draw 2 additional circle at the start and end point of the line so it would look better.
The original patch was using GL points to draw the image, each coordinates of the point are stored and the more points that are stored, the slower the frame rate. But the modified patch stores only 2 coordinates each time which makes the frame rate to be much faster than the original.
At the end of the day, all least we were able to draw something out.
30 Dec
We continued on our application today, since yesterday we were able to do some drawing, today, we will be doing the erasing function and somehow, it is not as simple as we think it is. Well, we thought its just a change of colour of the brush to black and that colour should be a layer above all the other colours but we were all wrong.
When we tried erasing using black, it may seems okay but when we tried to draw again using other colours, we realise that the black ink still remain on top. The reason why we had the colour black on top of other layer is because in this way, we can erase any color drawn even after an eraser is previously used.
And so, we had asked Ming Hong for help, and soon, his solution works! The eraser draws black as usual but it changes the opacity to transparent when it detects black. After few rounds of testing, finally we tried integrating with OSC.
Just before we left the office of the day, we had OSC working with our application.
31 Dec
New Year Eve! its a half day today, we did a few round of OSC testing today and also did some research on Cocoa application as Wilson had a little bit of problem with the toggling.
1 Jan
Happy New Year!!
2 Jan
It's the first day of work in 2009! Kevin and Bernard is back from their leave. We showed Kevin the progress of our application and we went on working on our applications. drawing and erasing are done. Now its changing of brush's colour according to the palate.
After we did the changing of colours, we had it integrated with OSC and Ryan and Wilson to help us as we had to integrate it with theirs too but we had not complete our parts and we did this for the rest of the day.
Reflection:
This week, I had better understanding on the patches in Quartz Composer. I could write simple script in Quartz it could work just fine. My conclusion, things are never easy in the beginning but as you learn on the way, things seems to get a little easier to understand. The lessons and things learnt in IHPC were difficult when we just started, but as we move on, things turned out better. I believe all four of us would agree that the things we learnt are things that are priceless.
*the idling feature should be disabled from esip, the clock hit 12 AM and I was unable to post the weekly reflections after re-login
No comments:
Post a Comment