April 2017
Intermediate to advanced
700 pages
21h 36m
English
Translation is one of three basic transformations that can be applied to an object (the rest are rotation and scaling). It allows us to move a 3D model in a desired direction for a desired distance:

Movement can also be applied to the camera, thus changing the point from which we observe a whole rendered scene.
Creating a translation matrix is a simple process. We need an identity 4x4 matrix--all its elements must be initialized with zeros (0.0f) except for the elements on the main diagonal, which must be initialized with ones (1.0f). Now we initialize the first three elements of the fourth column with the distance we want ...
Read now
Unlock full access