PDA

View Full Version : Look down on my world



Andrew Davey
04-28-2004, 12:22 AM
Hi i would like to look down on my world, niot birdseye view but a bit of an angle. Whats the best way to do this. At the minute am playing with cameras, is there a better way.

I havent got it to work. I thought that if i set the cam_pos.y to be more than cam_view.y it woud work., But it doesn't.

Any ideas?

plasmonster
04-28-2004, 02:57 AM
Andrew,

For this, and indeed all camera related problems, you need look no further than the glRotate() and glTranslate() functions. To look down, assuming this means a rotation around the x axis, try glRotatef( -myDownAngle, 1,0,0 ).