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: How to change the default reference coordinate system

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2003
    Location
    Knoxville, TN, USA
    Posts
    3

    How to change the default reference coordinate system

    The opengl default reference (eye) coordinate system is: the origin is at the center of the window,Z-axis points out of the screen, X-axis points to the right,and Y is up. All coordinate transformation is based on this coordinate system. Is there any way to redefine this reference frame. Thank.

  2. #2
    Junior Member Newbie
    Join Date
    Aug 2002
    Posts
    24

    Re: How to change the default reference coordinate system

    OpenGL coordinate system is right-handed by default and can't be changed. Direct3D lets you choose right-handed or left-handed coordinate system.

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Apr 2000
    Location
    Adelaide, South Australia, Australia
    Posts
    765

    Re: How to change the default reference coordinate system

    ... unless you multiply your modelviewmatrix to convert between coordinate systems.

    M=[ 1 0 0 0
    0 1 0 0
    0 0 -1 0
    0 0 0 1 ]

    will invert the z-axis so the camera is *effectively* looking down the +Z axix.

    cheers,
    John

Posting Permissions

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