Skip to main content
gamedev.net
🔒 Locked

Camera problem

Started by Brocketino Feb 24, 2005 at 3:52 PM 0 replies 250+ views
Original Post
Brocketino
Brocketino
I have the following camera structure -- > struct stCAMERA { CVector3f vPosition; CVector3f vDirection; CVector3f vUp; }; and a model symbolizing the camera. Now I want to rotate the model so its 'front' always facing the same direction as the camera. I though that this could be done by calculating the angle between the cameras position/direction vector, convert the value to degrees and then rotate the model using glRotatef(), but that didn't worked:) Could some1 plz explain how to do this.

Topic Locked

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

Sign in to reply to this topic.