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

Thread: 2 questions

  1. #1
    Guest

    2 questions

    1.I need to explain the diffrences between
    glprojection a glmodelview...
    2. When i use translate or rotate, i move a scene or a camera or it does't matter?

    Thank

  2. #2
    Member Regular Contributor
    Join Date
    Nov 2002
    Location
    USA
    Posts
    265

    Re: 2 questions

    Hello Midekk,

    Can you please expound on the two questions. More information will be needed to answer your questions.

    - VC6-OGL

  3. #3
    Junior Member Regular Contributor
    Join Date
    Mar 2002
    Posts
    102

    Re: 2 questions

    Of course you are free to use the matrices however you please, but there may be consequences in lighting and fog calculations. I have always taken the projection matrix to characterise intrinsic camera properties(fov, near/far clip distances). I put the the results of glOrtho, glFrustum or gluPerspective in the projection matrix. The modelview matrix represents my camera position and orientation. So, my modelview matrix takes vertices from world to camera space, and the projection matrix takes vertices from camera space to clip coordinates.

Posting Permissions

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