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 6 of 6

Thread: difference between using glulookat & glrotate + gltranslate

  1. #1
    Junior Member Regular Contributor
    Join Date
    Oct 2003
    Location
    Arlington, Tx, USA
    Posts
    179

    difference between using glulookat & glrotate + gltranslate

    is there any basic advantage (speed, quality) using glulookat() instead of using glrotate, gltranslate and glscale together?

  2. #2
    Intern Contributor
    Join Date
    Jun 2003
    Location
    Blacksburg, VA 24060, USA
    Posts
    61

    Re: difference between using glulookat & glrotate + gltranslate

    With gluLookAt u can position your camera more intuitively than using a series of Co-ordinate system transformations

  3. #3
    Junior Member Regular Contributor
    Join Date
    Oct 2003
    Location
    Arlington, Tx, USA
    Posts
    179

    Re: difference between using glulookat & glrotate + gltranslate

    but is there any difference in the performance? is glulookat faster?

    Originally posted by virtualchetan:
    With gluLookAt u can position your camera more intuitively than using a series of Co-ordinate system transformations


  4. #4
    Member Regular Contributor
    Join Date
    Feb 2002
    Posts
    377

    Re: difference between using glulookat & glrotate + gltranslate

    Originally posted by mithun_daa:
    but is there any difference in the performance? is glulookat faster?
    I doubt that there will be a significant difference. There are enough things in a 3D app that will have a greater impact on performance.

  5. #5
    Advanced Member Frequent Contributor
    Join Date
    Oct 2001
    Posts
    612

    Re: difference between using glulookat & glrotate + gltranslate

    I dont see why this question comes up that often.. unless you are moving the 'camera' about 1million times per frame it shouldnt be any significant problem.. and regarding whats faster.. try it maybe?

  6. #6
    Guest

    Re: difference between using glulookat & glrotate + gltranslate

    The two are probably near the same speed, because if you think about it, the 2 have to do the same thing (position and orient the camera). If you want to get technical, gluLookAt would be faster (by some very small amount) because it is just 1 call from the app as opposed to 4-5 (or whatever it is you are doing) calls from the app.

Posting Permissions

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