PDA

View Full Version : straight perspective



kirinyaga
04-13-2004, 03:24 AM
excuse me for my english, I'm not sure of the word used for the kind of perspective I want.
So I made a quick picture :
http://www.l9c.org/Temp/perspective.gif
I want the perspective in red, not the one in black. Is it possible and how to do it ? (I tried to put 0 in gluPerspective() but it doesn't work)

(edit) I drawed the perspective from the side so you can see what I mean, but I want it from the front (i.e. a transparent cube will render as a square, the backface exactly the same dimension as the frontface, not smaller)

Bob
04-13-2004, 03:42 AM
That's orthographic projection, and the function you want it glOrtho.

kirinyaga
04-13-2004, 04:26 AM
Thanks for the reply, that is exactly what I needed.