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: is there a function?

  1. #1
    Intern Contributor
    Join Date
    Jan 2001
    Posts
    58

    is there a function?

    is there any function in open gl that will return the coordinates of the current eye position? or is there any simple way to get these values from the current matrix?

  2. #2
    Junior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Vancouver
    Posts
    110

    Re: is there a function?

    Hello,

    Since you have to know where the camera is located in order to proceed with any rendering, it is easier to track the 'eye position' within your application than to attmpet to deduce it from the current OpenGL state.

    By default, your eye position is at 0,0,0, staring down the negative 'Z' axis, with a 0,1,0 'up' vector.

    -- Jeff

Posting Permissions

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