Is the OpenGL Coordinate System right-handed or left-handed?

前端 未结 4 1856
春和景丽
春和景丽 2020-12-30 13:37

Say I am using an Identity Matrix for my modelViewTransformation Matrix on an OpenGL ES 2.0 program. The Co-ordinate system in this case is the canonical OpenGL co-ordinate

4条回答
  •  无人及你
    2020-12-30 14:15

    ALWAYS REMEMBER!! OPENGL ONLY KNOWS NDC ,AND IT IS LEFT_HANDED!

    the illusion openGL is right handed,because in fixed pipeline,the fixed function is right handed,like glOrtho(...),glFrustrum(..), all these functions have been deprecated In programmable-pipline times.

    OpenGL doesn`t care what handed coordinate system you use for intermediate matrix processes. you can use axis coordinate system if you want,as long as you mirror that to NDC.

    forget about Camera!

    because our screen is a 2D plane.Imagine this,your viewport is a yellow rubber plane.pine those four corner to NDC. something like this: enter image description here

    all vertex in NDC hit on on the yellow rubber plane along the -z axis.That`s what you see on real screen.

提交回复
热议问题