Hey guys,
Can someone tell me how can i set up top view camera for my scene? I've tried using gluLookAt() but i couldn't figure out the way i wanted. Any ideas with starting code would be really apperciated. Thanks in advance!! =]
Moderators: Darobat, RecursiveS, Dante Shamest, Bugdude, Wizard
gluLookAt is the correct way.devil_slayer wrote:The way i always used to to do it is first draw all the objects and then use glTranslate and glRotate to "move" the camera to the designated position.
This, of course, moves the scene, not the camera, but the effect is the same.
devil_slayer wrote:The way i always used to to do it is first draw all the objects and then use glTranslate and glRotate to "move" the camera to the designated position.
This, of course, moves the scene, not the camera, but the effect is the same.
He's talking about moving the world around the camera rather than the camera around the world.Animatronic wrote:devil_slayer wrote:The way i always used to to do it is first draw all the objects and then use glTranslate and glRotate to "move" the camera to the designated position.
This, of course, moves the scene, not the camera, but the effect is the same.
I would be interested how this works?, I mean how do the camera transforms done at the end effect objects drawn before it ? Maybe I'm just mis-understanding your post.
Animatronic wrote:I would be interested how this works?, I mean how do the camera transforms done at the end effect objects drawn before it ? Maybe I'm just mis-understanding your post.
gluLookAt is equivalent to glMultMatrixf(M); glTranslated (-eyex, -eyey, -eyez);
Users browsing this forum: No registered users and 1 guest