For moving cameras in the screen, we can either use
glRotatef() and glTransoatef() are used to move the pointer on
the screen. (I think)
gluLookat() takes in 9 parameters however, and it is also said that
it can be use beside the above two.
Please log in or register to post a reply.
i use LookAt for the camera placement, and
Rotate/Translate(/Scale,MultMatrix) for positioning the objects..
on how to use them, use google, and you get the helpfiles.. or even in
your favourite MSDN library, eighter in visual studio integrated, or
So you mean that we can use both or any one of them to accomplish the
Both perform the same work … right :wtf: ?
Well, both could give the same visual effect, but mathematically, they
are completly different. I’d recommend using gluLookAt for camera, and
glTranslatef/glRotatef for objects. i.e. don’t mix them up. It’s just
more logical. I mean, don’t use glTranslatef when, in actual fact, you
mean moving the camera for example.
So (if I am not wrong :blush: ) you mean :
I think I am right … :blush:
yes that’s right. but it’s more like this: gluLookAt opens a window at
the position you have specified [to look into]. but there is no actual
as far as gluLookAt being enough for your project, it is. but if you
wanna have some fun, try making a camera class.
After reading this topic I modified my code to use gluLookAt. I
discovered huge mistakes and some things i havent managed to achieve now
So I have to say that not using gluLookat is the most stupid mistake
you can make.
:yes: Thanks guys … I have got the picture clearly moving aroung my
Thanks … :D !