PDA

View Full Version : Simple viewing direction question



03-22-2005, 12:04 PM
I work on a 3-dimensional spiral of points (an example of the OpenGL suberbible). But I only see a circle of points. So I guess I look on the z-axis. It is my first 3D example. How can I change the viewing direction, so that I can see the spiral 3D?

maximian
03-22-2005, 12:21 PM
When you initialize your model view matrix, simply rotate by your preferred angle, say 40 degree around the x.

glRotatef( 40.0f, 1.0,0.0,0.0 );

03-23-2005, 08:48 AM
ok, thats my viewing direction I guess. And lets say I have a 3D thing in space. How can I move this (and keep my viewing direction)?

jide
03-23-2005, 11:38 AM
maybe by learning openGL. :)

03-23-2005, 10:39 PM
:mad: