Moving on the z-axis

-= Problem =-

Init:
gluPerspective(45.0f, width/height, 0.1f, 100.0f);

I have a straight line at z = -80 and now I want to move it closer to me, lets say z = -20, and I want the same length of it.

How do I do in a simple way, if there are any simple way???

Please help me asap…

/niX

hmm, what do you know about perspective projection???
If the length of your line would stay the same, you wouldn’t even know you moved closer to it. It would stay the same length if you would use orthographic projection.

Cheers Chris