PDA

View Full Version : Moving on the z-axis



nix
04-19-2001, 12:26 AM
-= 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

DaViper
04-19-2001, 02:16 AM
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