View Full Version : straight perspective

04-13-2004, 02: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 :
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)

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

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