Graphics /Discover / Transformation order

Transformation order

scenario

When Several Transforms Must Agree

A reusable object now needs several transformations before it reaches its final state. It may need one orientation change, then a resize, then a placement change. Applying every matrix separately to every vertex works, but repeating that whole sequence for every point is unnecessary if the sequence can first be collapsed into one matrix.

There is a complication: the written matrix product must still reproduce the order in which the object is supposed to experience those operations. Two products containing the same matrices are not automatically interchangeable just because they contain the same ingredients.

Before composing anything, you therefore need a rule that connects geometric applied order to matrix-product order.

A simple blocky sword appears once as source geometry and three more times with different scale, rotation and translation combinations.
The same stored geometry can produce many object instances by changing the transformation rather than duplicating the source shape.

Suppose an object must be rotated, scaled and translated. How would you combine those transformations into one matrix while still guaranteeing that the object experiences them in the intended order?