Transform · 3D graphics

Also known as: move · rotate and scale

On this page 7

In 3D graphics, a transform is the set of values that places an object in a scene: its position (translation), orientation (rotation) and size (scale). In 3D graphics & animation, every model, light and camera carries a transform, and software stores it as a 4×4 matrix that converts the object’s own coordinates into the coordinates of its parent or of the world.

Artists often call the three operations simply move, rotate and scale. The transform changes where and how an object appears without editing its vertices, which is why a single mesh can be reused many times across a scene at different places and sizes.

How a transform maps local space to world space

A transform works by multiplying every vertex position of an object by a matrix. The vertices are authored in local space, around the object’s own origin or pivot point, and the transform matrix converts them into world space, the shared coordinate system of the whole scene.

The matrix has four rows and four columns because 3D graphics uses homogeneous coordinates: a point (x, y, z) is written as (x, y, z, 1). The extra component allows translation to be expressed as a matrix multiplication, so translation, rotation and scale combine into one matrix that the GPU applies in a single step.

The table below lists the three components of a transform and what each one changes.

ComponentTypical valuesWhat it changes
Translationx, y, z in scene unitsPosition of the pivot point
RotationEuler angles, quaternion or axis-angleOrientation around the pivot
ScaleFactors per axis, 1.0 means unchangedSize along each local axis
Components of a transform

In the rendering pipeline, this model matrix is followed by the view matrix of the virtual camera and the projection matrix of perspective or orthographic projection. Together they form the familiar model-view-projection chain that turns a mesh into pixels.

Order of operations and rotation representations

Matrix multiplication is not commutative, so the order in which transforms are applied changes the result. Most 3D software applies scale first, then rotation, then translation, often abbreviated as TRS, which keeps scaling aligned with the object’s own axes and rotation centered on its pivot.

Rotation is the most delicate component because it can be stored in several ways. The table below compares the common representations.

RepresentationStrengthWeakness
Euler anglesEasy to read and type as three anglesGimbal lock and order dependence
QuaternionSmooth interpolation, no gimbal lockFour numbers that are hard to read
Axis-angleIntuitive single rotation around one axisAwkward to combine several rotations
Rotation matrixDirectly usable by the GPUNine values that can drift from orthogonality
Ways to store rotation

Gimbal lock occurs when two Euler rotation axes line up, for example when the middle axis turns by 90 degrees, and one degree of freedom is lost. Animators avoid it by changing the rotation order or by switching to quaternion interpolation for complex motion such as a tumbling object or a free camera.

Transforms in an object hierarchy

In a scene with an object hierarchy, each child stores a transform relative to its parent, not to the world. The final world transform of a child is the product of all transforms up the chain, which is why rotating a shoulder also moves the elbow, the wrist and the fingers.

The following table compares the coordinate spaces in which a transform can be read or edited.

SpaceReference frameTypical use
Local spaceThe object’s own axes and pivotRotating a wheel around its axle
Parent spaceThe axes of the parent objectAnimating limbs in a rig
World spaceThe scene origin and up axisPlacing props on a floor
View spaceThe virtual cameraCulling and depth calculations
Coordinate spaces for transforms

Most applications let the user switch the transform gizmo between local and world orientation. Moving an object along its local axis and along the world axis gives different results whenever the object is rotated, a frequent source of confusion for beginners.

Applying transforms and common pitfalls

Applying or freezing a transform writes the current translation, rotation or scale into the vertex positions and resets the transform to identity values. This step matters because tools such as modifiers, physics simulations and exporters often expect a scale of 1.0 and zero rotation.

The table below lists typical problems caused by transforms, their cause and the usual fix.

SymptomLikely causeFix
Bevel or thickness looks unevenNon-uniform scale left unappliedApply scale before adding modifiers
Shading looks inside outNegative scale flipped the normalsApply scale and recalculate normals
Object rotates around a strange pointPivot point far from the geometryMove the pivot to the intended center
Model is tiny or huge after exportUnit or axis mismatchMatch units and up axis in export settings
Physics reacts incorrectlyScaled collision objectApply scale on the collider
Transform problems and fixes

Non-uniform scale has a specific mathematical consequence: surface normals cannot be transformed by the same matrix as positions. Renderers use the inverse transpose of the model matrix for normals; when a tool skips this step, lighting appears skewed on stretched objects.

Transforms compared with deformation

A transform is a rigid or affine change of the whole object: straight lines stay straight and parallel lines stay parallel. Deformation tools such as bending, sculpting or skinning move individual vertices differently, which a single transform matrix cannot express.

  • Transform: one matrix per object, cheap to animate and reuse.
  • Instancing: many copies of one mesh, each with its own transform, sharing memory.
  • Skinning: vertices follow several bone transforms with weights, producing smooth deformation.
  • Shape keys or blend shapes: stored vertex offsets used for facial expressions.

Because transforms are inexpensive, real-time engines animate transforms whenever possible and reserve vertex deformation for characters, cloth and other cases that truly need it.

Put simply

A transform tells the computer where an object stands, which way it faces and how big it is. The shape itself stays the same; only its placement changes.

Think of a toy figure on a table. You can slide it, turn it or swap it for a larger copy without reshaping it. In 3D software, those three actions are move, rotate and scale, and the transform is simply the record of all three.

In practice

An environment artist builds a forest scene for an animated short. Instead of modeling 300 trees, she models four tree variants and places instances of them across the terrain. Each instance gets its own transform: a random rotation around the up axis, a uniform scale between 0.8 and 1.3, and a position snapped to the ground.

During export to the game engine, the trees appear lying on their sides. The cause is an up-axis mismatch: the modeling package uses Z as up, while the engine uses Y. Correcting the axis setting in the exporter and applying the rotation on the source meshes fixes the problem without touching any vertices.

The final scene renders 300 trees from four meshes, keeps memory use low and lets the director adjust the layout simply by editing transforms.