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

moving a camera

Started by Bino Sep 5, 2000 at 7:36 PM 0 replies 450+ views
Original Post
Bino
Bino
Can someone give me some code to move the camera instead of moving the object in my scene? I''m using OpenGL. Thanks, Bino
Julio
Julio
well, you''re going to have to move the scene evually sometime.
back when the were writing the first 3d engines from scratch the method to draw the scene was to calculate where everything was, and convert that to the screen. this conversion included (among other things) the world the screen tranformation, aswell, as moving the camera. (the scene was moved, not really the camera) since then I''m guessing that this method has been adopted because of it''s roots in early 3d engines.
back to the question, why is it that big of a deal? you can always set out a point, translate to that point, rotate what is needed, and view from there.

JoeMont001@aol.com www.polarisoft.n3.net
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911

Topic Locked

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

Sign in to reply to this topic.