Skip to main content
gamedev.net
🔒 Locked

camera rotation

Started by nareshn2003 Sep 15, 2005 at 12:29 AM 4 replies 500+ views
Original Post
nareshn2003
nareshn2003
Hi Where can i found good tutorial on camera rotation that similar like arcball (trackball) . Can i do whithout calculating 4D vector ? please sugges me camera rotation tutorial using mouse 2d position for beginner .
nareshn2003
nareshn2003
Hi

It's object rotation not camera rotation . I am confused with camera rotation.

matthughson
matthughson
Hey, are you trying to have a camera rotation around a point (like an orbit)? Or are you trying to make a camera that behaves like a First-Person Shooter? Sorry, I know you gave an example, but I'm not familar with arcball.

Also, are you using DirectX by any chance?

Matt Hughson
__________________________________[ Website ] [ Résumé ] [ [email=contact[at]matthughson[dot]com]Contact[/email] ][ Have I been Helpful? Hook me up! ]
Rasmadrak
Rasmadrak
simply use your friends sin and cos and tan...

Camera.x = sin(ViewDirection*PiOver180)*DistanceFromObject;
Camera.y = cos(ViewDirection*PiOver180)*DistanceFromObject;


tricker with tan I just noticed.. but this ^^ should get you started...
"Game Maker For Life, probably never professional thou." =)

Topic Locked

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

Sign in to reply to this topic.