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 role | What it holds | Typical use |
|---|---|---|
| Root | Top of the hierarchy | Scene origin and global settings |
| Group or transform | Local transform, children | Grouping parts that move together |
| Mesh instance | Reference to geometry and material | Visible objects |
| Camera | Projection and lens data | Viewpoints for rendering |
| Light | Type, color, intensity | Scene illumination |
| Joint or bone | Transform used for skinning | Character rigs |
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.
| Operation | Direction | Result |
|---|---|---|
| Transform update | Root to leaves | World matrices for every node |
| Bounding volume update | Leaves to root | Combined bounds per subtree |
| Culling | Root to leaves, pruned | List of visible nodes |
| Picking | Hit node to root | Selected object and its path |
| Serialization | Full traversal | Scene file on disk |
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.
| Format | Hierarchy | Instancing | Composition across files |
|---|---|---|---|
| OBJ | None | No | No |
| FBX | Node tree | Limited | No |
| glTF | Node tree with scenes | Shared meshes, instancing extension | No |
| COLLADA | Node tree | Instance elements | External references |
| X3D | Node tree with DEF and USE | Yes | Inline nodes |
| USD | Prim hierarchy | Native instancing and point instancers | Layers, references, variants |
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.
| Symptom | Likely cause | Remedy |
|---|---|---|
| Object appears 100 times too large | Unit mismatch at root | Set export units explicitly |
| Model lies on its side | Y-up versus Z-up axis | Apply axis conversion on export |
| Animation breaks after import | Renamed or reparented nodes | Keep stable node names and paths |
| File size explodes | Instances exported as copies | Enable instancing in the exporter |
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.