XGen is the procedural primitive generator built into Autodesk Maya that creates hair, fur, feathers, grass and scattered geometry on the surface of a polygon mesh. In the Subject of 3D graphics & animation, and specifically in the Topic of Simulation & effects, it is the tool that turns a few hundred guide curves into millions of render-time strands, which can then be groomed by hand and driven by dynamic simulation.
The system originated at Walt Disney Animation Studios and has shipped with Maya since Maya 2014. It exists today in two flavors: the original XGen Core workflow, often called legacy XGen, and Interactive Groom, a brush-based toolset introduced later for faster artistic control.
How XGen generates primitives
XGen works by describing a distribution rule rather than storing every strand. The artist defines where primitives grow, how many there are and how they look, and the software rebuilds the final strands on demand in the viewport or at render time. This keeps scene files small even when a character carries several million hairs.
Every legacy setup is organized into a fixed hierarchy. The table below lists the main building blocks and the role each one plays.
| Element | What it is | Typical content |
|---|---|---|
| Collection | Top-level container saved to its own .xgen file | All grooms of one character |
| Description | One type of primitive with its own settings | Scalp hair, eyebrows, beard |
| Patch | Binding between a description and mesh faces | The scalp faces of the head |
| Guide | Editable control curve that shapes nearby strands | A few hundred to a few thousand |
| Primitive | The generated item that is rendered | Splines, cards, spheres, archives |
| Modifier | Procedural operation applied in a stack | Clumping, noise, coil, cut |
Spatial variation in legacy XGen relies on Ptex maps, a per-face texture format that does not require UV coordinates. Density, length, width and region masks are painted into these maps. Many attributes can also be driven by SeExpr expressions, a small expression language that lets technical directors combine maps, noise and random values per strand.
Legacy XGen and Interactive Groom
The two XGen workflows share a name but follow different data models and user experiences. Legacy XGen is driven by attributes, expressions and painted maps, while Interactive Groom stores spline data directly on the mesh and is edited with sculpting-style brushes in the viewport.
The comparison below summarizes the practical differences that decide which workflow a team adopts.
| Aspect | Legacy XGen (Core) | Interactive Groom |
|---|---|---|
| Editing model | Guides, attributes and expressions | Direct brush grooming of splines |
| Map storage | External Ptex files on disk | Data stored in the Maya scene |
| Viewport feedback | Slower, preview density limited | Fast, close to final look |
| Primitive types | Splines, cards, spheres, archives | Splines only |
| Expression support | Extensive SeExpr control | Limited, node-based modifiers |
| Best suited for | Fur, feathers, instanced scatter | Hero hair and close-up grooms |
Legacy XGen remains valuable for archive primitives, which instance arbitrary geometry such as rocks, leaves or scales across a surface. Interactive Groom is usually preferred for human hair, where artists need to see partings, flyaways and silhouette changes immediately.
Driving XGen with dynamic simulation
XGen itself is a grooming and generation system, not a physics solver. Motion comes from simulating a reduced set of curves and letting XGen interpolate the full strand count from them. This guide-driven approach is the standard technique in hair simulation because solving millions of strands directly would be far too slow.
Several solver connections are common in production, and each fits a different pipeline.
| Method | How motion reaches XGen | Typical use |
|---|---|---|
| nHair dynamic curves | Guides follow simulated nHair curves | Long hair in legacy setups |
| Interactive Groom dynamics | Guides are converted, simulated and cached | Hero characters in Maya pipelines |
| Bifrost graphs | Curves simulated in Bifrost drive the groom | Procedural or modern Maya workflows |
| External solver caches | Simulated curves imported as Alembic | Studios using Houdini or proprietary tools |
| Skin deformation only | Strands ride on the deforming mesh | Short fur and background characters |
After simulation, the result is stored as a simulation cache, typically Alembic, so that lighting and rendering never re-run the solver. Collision objects such as the head, shoulders and clothing must be included during the solve; otherwise strands penetrate the body and the error appears only in the final frames.
Rendering and pipeline requirements
XGen strands are rendered as curve primitives generated at render time, which Arnold supports natively and other renderers support through their own procedurals. Because the renderer rebuilds every strand, render memory scales with final strand count and curve segment count, not with the number of guides.
Legacy XGen is notoriously sensitive to file paths and naming. The collection lives in a sidecar .xgen file next to the scene, Ptex maps sit in a project folder, and the description refers to both. Renaming a mesh, adding a namespace on reference or moving the project without updating paths are the most frequent causes of missing hair at render time.
- Keep the project structure intact and set the XGen data path before creating descriptions.
- Freeze the base mesh topology before grooming, because legacy Ptex maps are tied to face indices.
- Use render-time density and width multipliers to balance quality against memory for distant shots.
- Export Interactive Grooms to a groom cache or Alembic when handing assets to other departments.
Common problems and how to fix them
Most XGen failures are pipeline errors rather than artistic ones, and they are predictable once their causes are known. The table below lists symptoms that technical directors meet regularly.
| Symptom | Likely cause | Fix |
|---|---|---|
| Hair missing in render | Broken .xgen or Ptex path | Repair paths, keep sidecar files together |
| Hair appears on wrong faces | Mesh topology changed after grooming | Restore topology or transfer the groom |
| Strands flicker between frames | Random seed or density not locked | Fix seeds, cache the groom |
| Viewport becomes unresponsive | Preview density set too high | Lower preview percentage |
| Clumps look artificial | Too few clump guides or uniform values | Add map-driven clump variation |
| Hair passes through the body | Missing collider during simulation | Add colliders and increase substeps |
A frequent misconception is that more guides always produce better hair. In practice, excessive guides make grooming slower and simulation heavier, while realism comes mostly from clumping hierarchy, noise and width tapering.
Understanding it simply
XGen is a way to give a 3D character hair or fur without placing every single hair by hand. The artist draws a small number of sample hairs, and the software fills in all the others between them, following the same direction and style.
It works a bit like a gardener planting a lawn with a seed spreader instead of planting each blade of grass individually. The artist decides where things grow and how they look, and XGen does the counting and placing. When the character moves, only the sample hairs need to be animated, and the rest follow along.
Applied in practice
A small animation studio is producing a short film with a long-haired lead character who runs through wind. The groom artist builds the hair in Interactive Groom with about 1,200 guides that expand to roughly 150,000 render strands, and adds separate descriptions for eyebrows and eyelashes.
For the running shots, the guides are converted to dynamic curves and simulated with the head, neck and jacket as colliders at four substeps per frame. The result is written to an Alembic cache, so lighting artists load finished motion without touching the solver. Distant shots render with density reduced to 40 percent, which cuts render memory substantially while the hair still reads correctly on screen. The final sequence delivers stable, collision-free hair across all 90 shots without a single re-simulation during lighting.