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 > (Kindle) Ex. 6-1: updatePointOfView fix for smooth animation of 3rd person POV

In OpenGLES_Ch6_1, in updatePointOfView: I believe these lines:

self.eyePosition = GLKVector3Make(10.5, 5.0, 0.0);
self.lookAtPosition = GLKVector3Make(0.0, 0.5, 0.0);

should be:

self.targetEyePosition = GLKVector3Make(10.5, 5.0, 0.0);
self.targetLookAtPosition = GLKVector3Make(0.0, 0.5, 0.0);

...in order to smoothly animate the transition when switching to 3rd person view.
September 8, 2012 | Unregistered CommenterBrenton