Cocoa Design Patterns
Learning OpenGL ES for iOS
Presentations
Buy at Amazon Now
  • Cocoa Design Patterns
    Cocoa Design Patterns
    by Erik M. Buck, Donald A. Yacktman
  • Learning OpenGL ES for iOS: A Hands-on Guide to Modern 3D Graphics Programming
    Learning OpenGL ES for iOS: A Hands-on Guide to Modern 3D Graphics Programming
    by Erik M. Buck

Errata > UtilityCamera

Hello,

I am currently using the Utility classes in my own project, and I ran into an issue I can't overcome. I load my own labyrinth-like model (no issues there), and added 4 UIButtons to update the camera position. Two of them are used to go forward/backward and make use of the moveBy: method, the other two rotate the camera angle and make use of the rotateAngleRadiansaboutY: method. I have no problem when rotating the camera, but when I use the moveBy: method, something odd happens. On the first click my model disappears, when I click a second time my model returns and I translated twice the amount of distance. This pattern repeats every click. So my question is: what is wrong every odd number of clicks?

Many thanks!

Tim
December 14, 2012 | Unregistered CommenterTim Claes