Graphics Reference
In-Depth Information
mation matrices are computed. In the 2D program, we computed:
OC M W
WC M V M P
−→
−→
NDC
with M P set to I 4 . In the case of 3D, we compute:
OC M W
WC M V
EC M P
−→
−→
−→
NDC
.
Notice that in both 2D and 3D cases, the transformation matrices are setup to
transform vertices from OC to NDC space. This is not a coincidence. The graph-
ics API dictates that the output of the transformation must be in NDC space. As
programmers, we choose the input to be in OC space to support convenient defi-
nition and manipulation of graphical objects.
Search WWH ::




Custom Search