Skip to main content
gamedev.net
🔒 Locked

camera

Started by lekki 0 replies 250+ views
Original Post
lekki
lekki
How to obtain current camera properties after glLookAt functions and all transformations? on example: gluLookAt(ViewPoint().getX(), ViewPoint().getY(), ViewPoint().getZ(), ViewDir().getX(), ViewDir().getY(), ViewDir().getZ(), UpVector().getX(), UpVector().getY(), UpVector().getZ() ); glRotatef(zAngle, 0f, 0f, 1f); glRotatef(xAngle, 1, 0f, 0f); //!! How to find current UpVector and UpDir lekki
lekki
iNsAn1tY
iNsAn1tY
You can''t retrieve individual properties such as position, view and up vectors using OpenGL function calls after you''ve loaded the camera transforms with gluLookAt. What you need is a camera class, like the ones here at GameTutorials.com, so that you always know what your position, view and up vectors are...
My opinion is a recombination and regurgitation of the opinions of those around me. I bring nothing new to the table, and as such, can be safely ignored.[ Useful things - Firefox | GLee | Boost | DevIL ]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.