Just when she thought that things were getting easier! Concept 1.8: The order of Transformations II Reinforcing the Concept =========================================== Idea: ===== We perform multiple translations and a rotation here. Click anywhere on both windows to start the animation. The top window shows the effects of specifying the following order : o A rotation of 45 degrees about the X axis o A translation of +3 units along the X axis o A translation of -6 units along the Z axis The bottom window shows the effects of specifying the following order : o A translation of -6 units along the Z axis o A translation of +3 units along the X axis o A rotation of 45 degrees about the X axis The same parameters, yet the order changes the final position and orientation! Also if you pay close attention the actual rendering seems to be taking place in reverse. For example in the case of Window I the cube is translated along the Z axis first, then along the X axis and then rotated. We seem to be following an inside to outside approach. We shall see why this works in the next concept. Points to Note ============== o The order in which the transformations are specified effect the final position and orientation of the object. o When multiple transformations are specified on an object the transformations are executed from the inside to the outside. i.e the last transformation specified before the call to draw the object is executed first and the first transformation is excuted last.