Tuesday, December 15, 2009

Week 12 Day 2

Today I worked on implementing the showing of the rubic cube and the motion tracker screen to show after the user select "start program" in the menu. Due to the infinite loop caused by glut_mainloop, it caused the threads to crash. When I tried to put that method into the main method, I wasn`t aware that it was a method that doesn`t return (or continue) and as a result codes below it were not executed.

After seeking guidance from Ming Hong, I realised that I could actually put the processing and updating of the camera frames in the display method that would be run by the glut_main loop, and leave the main method to execute the glut_main loop. I tried implementing it however got a crash. Will look into this error and fix it tomorrow.

No comments:

Post a Comment