Scene graph

On this page 7

A scene graph is a hierarchical data structure that organizes everything in a 3D scene, including geometry, cameras, lights, materials and transforms, as nodes connected by parent and child relationships. A transform applied to a parent node propagates to all of its descendants, so moving a car body also moves its wheels, seats and headlights.

In 3D file formats & pipelines, the scene graph is the backbone of scene description. Formats such as glTF, FBX, USD, COLLADA and X3D all store some form of node hierarchy, and the way each format models that hierarchy decides how well assets survive the exchange between tools, engines and renderers.

How a scene graph is structured

A scene graph consists of nodes and the edges that link them. Most practical scene graphs are trees: every node except the root has exactly one parent. Some systems allow a node to be referenced by several parents, which turns the structure into a directed acyclic graph (DAG) and enables the same mesh to appear many times without duplicating data.

Each node typically carries a local transform relative to its parent, expressed as translation, rotation and scale or as a transformation matrix. The world transform of a node is computed by multiplying the local transforms along the path from the root. Other data, such as a mesh, a light or a camera, is attached to nodes as components or properties rather than being the node itself in many modern formats.

The table below lists the node roles that appear in most scene graphs.

Node roleWhat it holdsTypical use
RootTop of the hierarchyScene origin and global settings
Group or transformLocal transform, childrenGrouping parts that move together
Mesh instanceReference to geometry and materialVisible objects
CameraProjection and lens dataViewpoints for rendering
LightType, color, intensityScene illumination
Joint or boneTransform used for skinningCharacter rigs
Typical node roles in a scene graph

Traversal, transforms and instancing

Software uses a scene graph by traversing it, usually depth first, and performing an operation at each node. A renderer accumulates world transforms during traversal, an animation system writes new local transforms, and a culling pass can skip an entire subtree when its bounding volume lies outside the camera frustum. This hierarchical culling is one of the main performance benefits of the structure.

Instancing is the second major benefit. When many nodes reference the same mesh, a file stores the geometry once and the engine can draw it with GPU instancing. A forest of 10,000 trees may need only a handful of unique tree meshes, while the scene graph supplies each tree’s position, rotation and scale.

OperationDirectionResult
Transform updateRoot to leavesWorld matrices for every node
Bounding volume updateLeaves to rootCombined bounds per subtree
CullingRoot to leaves, prunedList of visible nodes
PickingHit node to rootSelected object and its path
SerializationFull traversalScene file on disk
Operations performed on a scene graph

Scene graphs across 3D file formats

File formats differ widely in how much of the scene graph they preserve. OBJ stores only geometry and material references, with no hierarchy at all. FBX and glTF store a node tree with transforms, meshes, cameras, lights and skins. USD goes furthest: its stage is a composed scene graph of prims built from layers, references, variants and overrides, which lets many artists work on one scene without overwriting each other.

FormatHierarchyInstancingComposition across files
OBJNoneNoNo
FBXNode treeLimitedNo
glTFNode tree with scenesShared meshes, instancing extensionNo
COLLADANode treeInstance elementsExternal references
X3DNode tree with DEF and USEYesInline nodes
USDPrim hierarchyNative instancing and point instancersLayers, references, variants
Scene graph support in common exchange formats

Because of these differences, a round trip between formats often loses structure. Exporting a USD scene with variants to FBX flattens it to a single choice, and exporting an FBX rig to OBJ discards the joints entirely.

Scene graphs in asset pipelines

In a studio asset pipeline, the scene graph is the contract between departments. Modeling delivers named hierarchies, rigging attaches joints, layout places instances and lighting adds lights, each step adding nodes or overrides. Consistent naming conventions and stable node paths matter because downstream tools find data by path, for example a path that leads from the root through a character to its left hand.

Renderers and engines often convert the authored scene graph into a flatter runtime representation. A system such as Hydra reads a USD stage and feeds render delegates with prepared data, while a game engine may bake static transforms and merge meshes to reduce draw calls. The authored graph stays rich for editing, and the runtime graph stays lean for speed.

  • Keep hierarchies shallow where nothing moves, because deep chains cost traversal time.
  • Apply consistent units and up-axis at the root to avoid scale and rotation surprises on import.
  • Use instancing for repeated assets instead of copying geometry.
  • Freeze or reset transforms on exported meshes so pivots behave predictably.

Limitations and common mistakes

A scene graph is not always the best structure for every task. Spatial queries such as collision detection or ray tracing need acceleration structures like bounding volume hierarchies or octrees, which group objects by location rather than by logical ownership. Many engines therefore keep the scene graph for authoring and a separate spatial structure for queries.

SymptomLikely causeRemedy
Object appears 100 times too largeUnit mismatch at rootSet export units explicitly
Model lies on its sideY-up versus Z-up axisApply axis conversion on export
Animation breaks after importRenamed or reparented nodesKeep stable node names and paths
File size explodesInstances exported as copiesEnable instancing in the exporter
Frequent scene graph problems in exchange

Understanding it simply

Think of a scene graph as a family tree for a 3D scene. A car is the parent. Its wheels, doors and seats are its children. When the parent moves, the children move with it.

This tree tells software what belongs to what. It also says where each part sits relative to its parent. Files and programs share this tree so that a scene built in one tool still makes sense in another.

Applied in practice

A furniture retailer’s 3D team prepares a configurable sofa for an online viewer. In the modeling tool, the sofa is a root node with child nodes for the frame, four legs, three seat cushions and two armrests. The legs are a single mesh referenced four times, so the exported glTF file stores the leg geometry once and uses four transform nodes to place it.

When the customer swaps the leg style in the viewer, the application replaces the mesh referenced by those four nodes and keeps their transforms. The original export with duplicated legs and unmerged cushions weighed 18 MB; the version with a clean hierarchy and shared meshes dropped to about 6 MB, and it loads in under two seconds on a mobile connection.