Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

jeffersonalegria

3D Navigation/Camera

This topic is 5138 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Please...Help me I need one sample or link or anything about 3D rotation and camera navigation (like Descent game) using the glLookAt and the UpVector. thanks... Jefferson

Share this post


Link to post
Share on other sites
Advertisement
I don''t know if this will help, but since you mention gluLookAt and the up-vector, I can guess what the problem is. Many beginners simply put the up-vector to (0,1,0), interpreting it as the up direction of the world. However, this is not correct, the up vector should be the camera''s (or viewer''s) up. That is, as the viewer turns in the world, the up-vector should rotate so that it is perpendicular to the direction the viewer is looking.

Concerning 3D rotation, you might want to look up quaternions.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!