Normalized Device Coordinates

Cameras | Sunday 5 October 2008 3:04 am

After projection to clip space the points will no longer be normalized. This can be restored by dividing all components of the vertex by the fourth component (w). This will (together with the projection transformation) result in that the projection volume will map to a cube with minimum corner in (-1,-1,-1) and maximum corner in (1,1,1). For example in OpenGL, the near clip plane will map to -1 ( in DirectX it will be mapped to 0) and the far clip plane will map to 1.

The division by w (homogenization) is performed automatically between the vertex shader and the fragment shader in the procedure called Rasterization.

Please share:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Current
  • LinkedIn
  • Live
  • MySpace
  • Netvibes
  • StumbleUpon
  • Twitter
  • Reddit
  • Technorati
  • Yahoo! Bookmarks

1 Comment »

  1. Pingback by Molehill3D » Blog Archive » Clip Space — March 4, 2011 @ 12:53 pm

    [...] probably not zero or one. This means you need to divide all components by this value to obtain normalized device coordinates. This will happen automatically between the vertex shader and fragment shader. Clipping will [...]

RSS feed for comments on this post. TrackBack URI

Leave a comment