Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Moving on the z-axis

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2001
    Posts
    9

    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

  2. #2
    Junior Member Newbie
    Join Date
    Dec 1969
    Location
    Munich,Germany
    Posts
    15

    Re: Moving on the z-axis

    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
    yes

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •