problems in perspective view

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…!


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?