Hi,
I've been searching on the forums for as much info as possible, but I can't find the answer to my problem:
I've got a background layer with an oversize background (six ccsprite images 1024X1024, 3X2). I can pan around with touchesmoved fine and now I want to zoom in/out with pinch gestures.
Inside the BackLayer implementation's CCTouchesMoved function, I've got this:
//get the current camera values
float centerX, centerY, centerZ, newCenterX, newCenterY;
float eyeX, eyeY, eyeZ, upX, upY, upZ;
[self.camera centerX:¢erX centerY:¢erY centerZ:¢erZ];
[self.camera upX:&upX upY:&upY upZ:&upZ];
[self.camera eyeX:&eyeX eyeY:&eyeY eyeZ:&eyeZ];
NSLog(@"Default eyeZ: %f", eyeZ);
NSLog(@"Default centerZ: %f", centerZ);
NSLog(@"Default upZ: %f", upZ);
And all of the values come back as 0. If I manually set the eyeZ to 0, i get a black screen. But if I set the value to eyeZ, it works fine.
I've read some posts about eyeZ of 416 being 1to1 zoom, but for me eyeZ of 1 is 1to1 zoom. Am I missing some fundamental understanding?
Thanks in advance for the help.