View Full Version : Simple viewing direction question

03-22-2005, 11:04 AM
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?

03-22-2005, 11:21 AM
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, 07: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)?

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

03-23-2005, 09:39 PM