View Full Version : problems in perspective view

05-07-2009, 09:03 AM
i made a simple tetrahedral and i am rotating it and stuff..

however if i add this line in the code:
gluPerspective (45.0f, 2.0f, 0.1f, 100.0f);

the tetrahedral suddenly zooms out. i mean the tetrahedral is still there (i can see the sides changing as i try rotating it) however the image is like the tetrahedral fell flat face on my cars window..!


05-07-2009, 08:29 PM
if you add a Perspective view to your GL world, it will have a sense of depth. If you don't add it, you will have an orthogonal view where everything appears the same distance apart in z-space.

when you are drawing your tetrahedral, what is the z-value of your vertices?

In other words, what value are u putting at XXX?