Skip to main content
gamedev.net
🔒 Locked

FP Camera

Started by Jamiernmd 1 reply 500+ views
Original Post
Jamiernmd
Jamiernmd
Hi all I need to move the camera with the mouse similar to a first person shooter game. i.e. the camera stays in the same position and the lookat position rotates around a sphere based on mouse input, has anyone got some example code that shows how this would work, keeping in mind that there should be an upper and lower limit to stop it flipping over. Thanks Jamie
Deliverance
Deliverance
Hi ,
There are a lot of methods to accomplish this Jamie
Here is a link to some camera tutorials amongst other opengl tutorials:
http://www.morrowland.com/apron/tut_gl.php
Jamiernmd
Jamiernmd
That should do the trick, thank you.

Topic Locked

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

Sign in to reply to this topic.