Results 1 to 6 of 6

Thread: OpenGL 3.3 left/right handed system

  1. #1

    OpenGL 3.3 left/right handed system

    Hi,

    In older versions of OpenGL it was a common knowledge that this is a right handed system so only stuff with negative Z (post-transform) is visible. In OpenGL 3.3 and without the fixed function pipeline my question is - does a default system really exists?
    I've just played around with my matrices and easily reversed the system by making one change in the projection matrix, changing the Z range from negative to positive and specifying a positive Z for the world position. I did a quick scan thru the spec and could not find a reference to a default system.
    Is there an advantage to sticking to the old definition in terms of the way other parts of the spec are effected?

    Thanks,

    Etay Meiri

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Dec 2007
    Location
    Hungary
    Posts
    992

    Re: OpenGL 3.3 left/right handed system

    You understand it correctly so that there is no rule to use a right or left handed coordinate system anymore.

    Quote Originally Posted by Etay Meiri
    Is there an advantage to sticking to the old definition in terms of the way other parts of the spec are effected?
    Yes, convenience and backwards compatibility but the choice is yours.
    Disclaimer: This is my personal profile. Whatever I write here is my personal opinion and none of my statements or speculations are anyhow related to my employer and as such should not be treated as accurate or valid and in no case should those be considered to represent the opinions of my employer.
    Technical Blog: http://www.rastergrid.com/blog/

  3. #3
    Senior Member Regular Contributor
    Join Date
    Oct 2010
    Location
    France
    Posts
    458

    Re: OpenGL 3.3 left/right handed system

    Wasn't it already possible to reverse the axis by hand before GL 3 ?

    And, isn't it "bad" to change the default axis systems to whatever could fit our mind ? I mean ortho axis system is such that any axis makes a 90 angle between them, so reversing an axis breaks this rule, and then makes coordinates more bad to guess, and rotations more hard to understand (I mean by mind). So I wonder what is the real positive thing in doing so ?

  4. #4
    Senior Member Frequent Contributor
    Join Date
    Dec 2007
    Location
    Hungary
    Posts
    992

    Re: OpenGL 3.3 left/right handed system

    Quote Originally Posted by _arts_
    Wasn't it already possible to reverse the axis by hand before GL 3 ?
    Actually that is also true, but I think he meant that the GL was supposing a right handed system and explained the transformations and default behavior accordingly.
    Disclaimer: This is my personal profile. Whatever I write here is my personal opinion and none of my statements or speculations are anyhow related to my employer and as such should not be treated as accurate or valid and in no case should those be considered to represent the opinions of my employer.
    Technical Blog: http://www.rastergrid.com/blog/

  5. #5

    Re: OpenGL 3.3 left/right handed system

    Correct. You can refer to a system as either left or right handed when you don't have direct control of the transformation matrices (i.e. fixed function pipeline). When you do have control, you need to decide one way or the other and stick to it. Backward compatibility is not always relevant. Depends on the circumstances.
    My only concern was that I may be missing something and further down the way with more complex programs I will need to change stuff that assume a right handed system.

  6. #6
    V-man
    Guest

    Re: OpenGL 3.3 left/right handed system

    Quote Originally Posted by Etay Meiri
    Correct. You can refer to a system as either left or right handed when you don't have direct control of the transformation matrices (i.e. fixed function pipeline).
    You do have control of the transformation matrices in fixed function pipeline. You can make a identical transformation matrix (projection and modelview) to Direct3D. The main difference boils down to what is front face and what is back face. This difference is still present today.

Similar Threads

  1. What does cubemap being left-handed really mean?
    By MalcolmB in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 05-04-2009, 05:26 PM
  2. Use a left-handed coordinate system
    By Leadwerks in forum OpenGL: General
    Replies: 6
    Last Post: 03-18-2008, 11:09 PM
  3. Left or right handed coordinate system?
    By Sig Wong in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-27-2005, 02:23 AM
  4. Replies: 0
    Last Post: 01-21-2005, 06:06 AM
  5. converting matrices from right-handed to left-handed
    By Philipp Aumayr in forum OpenGL: General
    Replies: 2
    Last Post: 08-30-2004, 12:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean