Wednesday, December 30, 2009

Week 14 Day 3

Today I have discovered the bug just after debugging and finding the cause for the whole afternoon. The cause was simply due to an uninitialized variable that controls the aspect ratio. I have discover it by isolating all methods does not involve the rotation of the cube. Thereafter when I still failed to find the cause, I decided to check the value of each of the variables, and all however, seems reasonably fine.

It was only when I narrow down on 2 suspected variables, tested them and realised the variable just after them was not initialized, I intialized it and it worked fine.

Although I have managed to solve this error, but was upset over the large amount of time spend on discovering just a simple error

No comments:

Post a Comment