Theory of Computation & Computer Graphics — Three-Dimensional Transformation, NEC licence examination syllabus (Nepal Engineering Council).
Same "combine matrices, apply once" philosophy from 2D — now juggling more matrices.
Set tx to 0 and the cube rotates about the origin. Add tx and it rotates first, then slides — which is what T·R means, read right to left.
Matrix multiplication is not commutative, so T·R and R·T are different transformations. Rotating then translating moves the object to a new place; translating then rotating swings the already-moved object around the origin on a long arc.
Read a composite matrix product right to left: in T(a,b,c)·S(sx,sy,sz)·T(−a,−b,−c), the rightmost matrix acts first. That is the step most often reversed in exam answers, and it produces an answer that is not merely inaccurate but describes a completely different motion.Because the combined matrix is computed once and then applied to every vertex. A model with fifty thousand vertices costs one matrix multiplication plus fifty thousand vector multiplications, rather than three separate passes over the whole mesh. Composition is not tidiness — it is the optimisation that makes the pipeline affordable.
Scale by 2 about the fixed point P(2, 2, 2), applied to the point (4, 4, 4).
Rotate-then-translate and translate-then-rotate give genuinely different results, and it is worth seeing why rather than memorising the rule.
T · RRotate about the origin first, then slide. The object turns in place, then moves.
R · TSlide first, then rotate about the origin. The object is now far from the origin, so rotating swings it along a long arc to somewhere else entirely.
Read right to left: the matrix nearest the point acts first. That single habit prevents almost every composite-transformation error.
Create a free account to tick topics off, take notes as you read, watch the video lessons and get a day-by-day study plan built around your exam date.
Loading…