Camera Rotate Y
3 posters
Camera Rotate Y
Is it possible to rotate a camera on it's y axis? Like if you wanted to have a roll effect? I find it hard to believe that there wouldn't be, but between dir, loc, rotatex and rotatez I don't see any way to do it. Thank you!
flying24- Posts : 9
Join date : 2009-02-13
Re: Camera Rotate Y
SIO2 helped me out... here is a method that works:
glPushMatrix();
glRotatef( DESIREDANGLE, 0.0f, 1.0f, 0.0f );
then render the camera, and finally
glPopMatrix();
glPushMatrix();
glRotatef( DESIREDANGLE, 0.0f, 1.0f, 0.0f );
then render the camera, and finally
glPopMatrix();
flying24- Posts : 9
Join date : 2009-02-13
Re: Camera Rotate Y
uhm... the method above updates the view, but not the direction the camera is moving.
How can we achieve an effect like rotatex method does?
How can we achieve an effect like rotatex method does?
Re: Camera Rotate Y
You are right. Sorry, my mistake in the last two days I was trying to implement my personal camera class, the same that I use in other projects on other platforms and so I'm a little confused
What is not so clear is why the y axis is not treated like other axis i.e. the exporter from blender seems to not export it and there isn't a special function to rotate the camera on that axis.
But as stated above in other posts it's possible to achieve easily all the rotations.
Sorry again and happy coding!
What is not so clear is why the y axis is not treated like other axis i.e. the exporter from blender seems to not export it and there isn't a special function to rotate the camera on that axis.
But as stated above in other posts it's possible to achieve easily all the rotations.
Sorry again and happy coding!
Similar topics
» Can't rotate the Camera straight up or down
» Camera rotate about y-axis
» Rotate the camera instead of the object...
» how to not rotate around object
» How to rotate a object without changing the axis by SIO2?
» Camera rotate about y-axis
» Rotate the camera instead of the object...
» how to not rotate around object
» How to rotate a object without changing the axis by SIO2?
Permissions in this forum:
You cannot reply to topics in this forum