Results 1 to 5 of 5

Thread: Which 3D coordinate system OpenGL uses?

  1. #1
    Member Newbie
    Join Date
    Aug 2003
    Posts
    38

    Which 3D coordinate system OpenGL uses?

    Does OpenGL uses left-handed or right-handed
    coordinate system?
    I don't now where the positive x side is.

  2. #2
    Guest

    Re: Which 3D coordinate system OpenGL uses?

    I believe OpenGL uses a positive X to the left, positive Z into the screen and a positive Y going up. At least this is the original orientation prior to moving your camera.

    What I do is use my own coordinate system for all my calculations then modify them to OGL's system for display.

    Codifex

  3. #3
    Guest

    Re: Which 3D coordinate system OpenGL uses?

    OpenGL uses a right-handed coordinate system, with positive x to the right, positive y up and positive z comes out of the screen.

  4. #4
    Member Newbie
    Join Date
    Aug 2003
    Posts
    38

    Re: Which 3D coordinate system OpenGL uses?

    Thank You.You really helped to me.
    I read in OpenGL books that in graphics usaually left-handed system is used,so I
    wasted a hole day to understand what is
    going on with my inverse coordinates.

  5. #5
    Senior Member Frequent Contributor
    Join Date
    May 2001
    Location
    France
    Posts
    765

    Re: Which 3D coordinate system OpenGL uses?

    In fact, the OpenGL design leaves the choice to the user. It's written into the specification.

    With that said, imagine you have written your program in right-handed coordinate space, you can switch to left-handed very easily with a scale. Take a look at the FAQ .

Similar Threads

  1. draw Coordinate system on OpenGL window
    By Doctor100 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 09-30-2014, 05:40 AM
  2. opengl coordinate system
    By Registrar in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 02-11-2011, 02:23 AM
  3. Replies: 8
    Last Post: 08-18-2003, 05:22 AM
  4. How does the coordinate system work in OpenGL?
    By in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-03-2001, 08:04 PM
  5. OpenGL coordinate system
    By KurtCob in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 10-04-2000, 07:58 AM

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