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

Thread: question about znear and zfar, camera or world coordinate system?

  1. #1
    Junior Member Newbie
    Join Date
    May 2017
    Posts
    3

    question about znear and zfar, camera or world coordinate system?

    is the znear and zfar that I specify in

    Code :
    ortho (T const &left, T const &right, T const &bottom, T const &top, T const &zNear, T const &zFar)

    Is it in camera space or in world coordinate system?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2013
    Posts
    2,402
    The coordinate system is whatever is used by the coordinates you're transforming with the matrix.

    The transformation created by glm::ortho() will transform Z=-zNear to Z=-1 and Z=-zFar to Z=1.

Posting Permissions

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