Viewport Transform

There's a total of 1 articles.




Transformation matrix to transform objects from NDC coordinates to screen coordinates (viewport transform)

Transformation matrix to transform objects from NDC coordinates to screen coordinates (viewport transform)

One matrix transformation in the 3D to a 2D transformation pipeline is the viewport transform where objects are transformed from normalized device coordinates (NDC) to screen coordinates (SC).


In short it's the transformation of numbers in the range [-1, 1] to numbers corresponding to pixels on the screen, which is a linear mapping computed with linear interpolation.
In this article I cover the math behind the generation of the viewport transformation matrix.
Me
Published on Tue, Mar 8, 2016
Last modified on Sun, Jun 16, 2024
285 words - Page Source