Skip to main content
GameDev.net gamedev.net
🔒 Locked

Noob Camera Question

Started by Endemoniada Mar 31, 2007 at 8:48 PM 0 replies 350+ views
Original Post
Endemoniada
Endemoniada
Hi guys, I'm converting my arcade racer to Direct3D. I want my camera behind and above the car looking down at it. Do I set my camera position (eye, point at, up) only once and use the world transformation to move everything every frame, or do I keep setting my camera so it's pointing at the car ? Thanks.
argonaut
argonaut
Basically, you set your camera's position in every frame you render. This will, of course, involve some camera manipulation in your render loop.

I would suggest giving the camera a target to look at, and passing the player's car by reference as the target.

Hope that helps!
~Argonaut________Why "~Argonaut"? It's all just a mathematical expression denoting a close approximation of "Argonaut", which is irrational and can't be precisely defined.

Topic Locked

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

Sign in to reply to this topic.