PDA

View Full Version : drawing in orho and persp projection in same wivn



PJDIXIT
07-01-2009, 09:25 AM
Is is possible to draw some objects in perspective mode and some objects with orthographic mde in the same opengl window?

-Prasad

mfort
07-01-2009, 10:09 AM
yes, but do not expect z-buffer to work properly.

-setup projection matrix to perspective
-render perspective gfx
-setup projection matrix to ortho
-render ortho gfx

PJDIXIT
07-01-2009, 10:57 AM
yup....it worked for me...thanks a lot :)

prasad