PDA

View Full Version : travelling in 3D...



MotiAd
07-14-2004, 03:53 AM
hello fellows,
i am pretty new in here but been programming in gl for quite a while. right now i am working on a 3d illustration program (for fun and teaching methods of math, physics etc.).
my question is how to implement the feature of travelling in the 3d world? (i am programming in windows and about to migrate the program to linux also), obviously i have a function which gets all the keystrokes etc. called 'WindowProc' - it listens for strokes and is a CALLBACK. should i do the rotating and moving in this function or the one which draws the objects?
should i use gluLookAt? or a different set of function (such as: gltranslatef, glrotatef) for this purpose?
Yours,
Moti.

-NiCo-
07-14-2004, 04:01 AM
http://nehe.gamedev.net/ has some nice OpenGL tutorials. I believe tutorial 10 is what you're looking for.

Greetz,

Nico