non-central vanishing point

Member
Posts: 320
Joined: 2003.06
Post: #1
Hi all

I'm trying to get a vanishing point that is not at the center of the screen, and maintain a camera plane that runs on the x-y axes.

gluPerspective doesn't seem to be an option as the only way to have a non-central vanishing point is to have differing x or y values between the camera's position and target. This unfortunately makes the x/y plane rotate.

It seems I probably need to do something funky with the projection matrix... perhaps using some values that I can not figure out in glFrustum?

Chopper, iSight Screensavers, DuckDuckDuck: http://majicjungle.com
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Member
Posts: 320
Joined: 2003.06
Post: #3
Thanks Keith. Looks like I should translate before calling gluPerspective. I'll give it a go tonight.

David

Chopper, iSight Screensavers, DuckDuckDuck: http://majicjungle.com
Quote this message in a reply
Post Reply