Local space

Also known as: object space

On this page 7

Local space, also called object space, is the coordinate system attached to a single object, in which the positions of its vertices, normals and other attributes are expressed relative to the object’s own origin and axes rather than to the scene. In 3D graphics & animation, it is the first of several coordinate spaces a vertex passes through on its way to the screen, and it is the space in which modeling, rigging and most deformations are authored.

Because every object carries its own frame of reference, the same mesh data can be placed, rotated and scaled anywhere without rewriting its vertices. That separation between geometry and placement is one of the core 3D fundamentals, and it explains why a character can be duplicated a hundred times while its mesh is stored only once.

How local space anchors geometry to an object

Local space defines a mesh in terms of an origin point and three orthogonal axes that belong to the object itself. A vertex stored as (0, 1.8, 0) in a character’s local space means 1.8 units above the character’s origin, wherever that character stands in the scene. The values do not change when the object moves; only the transform that maps them into the scene changes.

The local origin usually coincides with the object’s pivot point, and the local axes follow the object’s rotation. When an artist rotates a door by 90 degrees, its local X axis rotates with it, so a command such as “move along local X” still slides the door along its own width. This behavior makes local space the natural frame for object-relative operations such as extruding along a normal, scaling a limb or animating a wheel around its axle.

Mathematically, local space is linked to its parent by a 4×4 transformation matrix that combines translation, rotation and scale. Multiplying a local-space position by this model matrix yields its world-space position. The inverse matrix performs the opposite conversion, which is how tools find where a world-space click lands on a mesh.

Local space in the coordinate pipeline

Local space is the starting point of the vertex transformation chain used by real-time engines and offline renderers alike. Each later stage is reached by one matrix multiplication, and the vertex shader typically concatenates them into a single model-view-projection matrix for efficiency. The table below lists the spaces in order and what each one represents.

SpaceOriginReached byTypical use
Local spaceObject pivotStored mesh dataModeling, skinning, deformers
World spaceScene originModel matrixPlacement, physics, lighting
View spaceVirtual cameraView matrixDepth sorting, fog, culling
Clip spaceCamera frustumProjection matrixClipping against the frustum
Screen spaceViewport cornerPerspective divide and viewport mapRasterization, post effects
Coordinate spaces a vertex passes through

In a scene with an object hierarchy, a child’s local space is defined relative to its parent rather than to the world. A hand is expressed in the forearm’s space, the forearm in the upper arm’s space, and so on. The full world transform of the hand is the product of every matrix up the chain, which is why moving a parent carries all its children along.

Local space is often confused with neighboring concepts because several of them share the same origin or axes. The distinctions matter in practice: choosing the wrong frame in a tool or a shader produces rotations around the wrong axis or textures that slide across a moving surface. The comparison below separates the frames that artists and developers meet most often.

FrameDefined relative toChanges when the object movesCommon confusion
Local spaceThe object’s own pivot and axesNoAssumed to equal world space after freezing
World spaceThe fixed scene originYesTreated as the default for all tools
Parent spaceThe parent object’s local frameOnly if the parent movesMixed up with local space in hierarchies
Tangent spaceEach vertex’s normal and tangentNoMistaken for local space in normal maps
Gimbal modeEuler rotation axesDepends on rotation orderDisplayed as local axes in some tools
Local space compared with similar frames

Object-space normal maps illustrate the difference well. They encode normals in the mesh’s local frame, so they stay valid under rigid motion but break when the mesh deforms. Tangent-space normal maps remain correct under skinning, which is why they dominate game and film pipelines for animated characters.

Working with local space in modeling and animation

Every major 3D package exposes local space through a transform orientation or reference coordinate setting, usually labeled Local, Object or Parent. Choosing the right orientation for each task saves time and prevents subtle errors in rigs and exports. The decision table below summarizes common situations.

TaskRecommended frameReason
Rotating a wheel on a tilted carLocalThe axle follows the object’s own X axis
Aligning objects to a floor gridWorldThe grid is defined in scene coordinates
Extruding a panel outwardLocal or normalDirection follows the surface, not the scene
Animating a spine boneLocal or parentRotation curves stay clean and predictable
Placing props across a levelWorldPositions must match level design data
Choosing local or world orientation for common tasks

Freezing or applying transforms bakes the current scale and rotation into the vertex positions, so the local axes realign with the world and the scale returns to 1. Artists do this before rigging and export because non-uniform scale on an object distorts normals, physics colliders and bone influences. The operation leaves the mesh visually unchanged but rewrites its local-space data.

  • Set the pivot deliberately before animation, for example at a hinge, wheel center or character’s feet.
  • Keep scale at 1 on exported objects so engines interpret physics and lighting consistently.
  • Check the up axis of the exporting and importing tools, since Y-up and Z-up conventions swap local axes.

Common mistakes and failure modes

Most problems with local space come from mismatched pivots, unapplied transforms or axis conventions that differ between applications. They rarely show in a static render but surface during animation, simulation or export. The table pairs typical symptoms with their causes and fixes.

SymptomLikely causeFix
Object spins around a distant pointPivot left at the scene originMove the pivot to the intended rotation center
Lighting looks wrong after scalingNegative or non-uniform scaleApply scale and recalculate normals
Model lies on its side after exportY-up versus Z-up mismatchSet axis conversion in the exporter
Child objects jump when reparentedParent transform not compensatedKeep the world transform when reparenting
Symptoms, causes and fixes

A frequent misconception is that a bounding box computed in local space matches the one computed in world space. A local box stays tight around the mesh and rotates with it, while a world-aligned box grows as the object rotates. Engines often store both for this reason, using the local box for precise tests and the world box for fast culling.

In plain words

Local space is the private map an object carries with it. Every point on a model is described as “this far left, this far up and this far forward” from the object’s own center, not from the middle of the room.

Think of a chair with its own set of measurements. Wherever the chair is carried, its leg is still the same distance from its seat. Moving the chair only changes where that personal map sits in the room, so the shape is stored once and placed anywhere.

A real-world example

A game studio builds a city street with 400 parked cars drawn from six vehicle models. Each model is authored once in local space, with its pivot at ground level between the wheels and its scale applied at 1. The level editor stores only one world transform per car, so the memory cost of the street is six meshes plus 400 small matrices.

When an animator rigs the wheels, each wheel rotates around its local X axis, so it turns correctly even on cars parked on a sloped road. One model had been exported with a leftover scale of 1.2, and its headlights lit the pavement incorrectly. Applying the scale in the modeling tool and re-exporting fixed the problem, and the street rendered consistently in a single pass.