When does the transition from clip space to screen coordinates happen?

后端 未结 4 2058
感动是毒
感动是毒 2020-12-12 14:07

I was studying the rendering pipeline and when I got to the clipping stage it was explained that from the view (eye or camera) space we have to pass to the clip space

4条回答
  •  情歌与酒
    2020-12-12 14:41

    Clip space and NDC (normalized device coordinates) are not the same thing, otherwise they wouldn't have different names.

    Clip space is where the space points are in after the point transformation by the projection matrix, but before the normalisation by w.

    NDC space is the space points are in after the normalisation by w.

    http://www.scratchapixel.com/lessons/3d-basic-rendering/perspective-and-orthographic-projection-matrix/projection-matrix-GPU-rendering-pipeline-clipping

    Camera space --> 
    x projection matrix ---> 
    Clip space (before normalisation) --->
    Clipping ---> 
    Normalisation by w (x/w, y/w, z/w) --->
    NDC space (in the range [-1, 1] in x and y)
    

提交回复
热议问题