XGen

On this page 7

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.

ElementWhat it isTypical content
CollectionTop-level container saved to its own .xgen fileAll grooms of one character
DescriptionOne type of primitive with its own settingsScalp hair, eyebrows, beard
PatchBinding between a description and mesh facesThe scalp faces of the head
GuideEditable control curve that shapes nearby strandsA few hundred to a few thousand
PrimitiveThe generated item that is renderedSplines, cards, spheres, archives
ModifierProcedural operation applied in a stackClumping, noise, coil, cut
Core building blocks of an XGen setup

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.

AspectLegacy XGen (Core)Interactive Groom
Editing modelGuides, attributes and expressionsDirect brush grooming of splines
Map storageExternal Ptex files on diskData stored in the Maya scene
Viewport feedbackSlower, preview density limitedFast, close to final look
Primitive typesSplines, cards, spheres, archivesSplines only
Expression supportExtensive SeExpr controlLimited, node-based modifiers
Best suited forFur, feathers, instanced scatterHero hair and close-up grooms
Comparison of the two XGen workflows

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.

MethodHow motion reaches XGenTypical use
nHair dynamic curvesGuides follow simulated nHair curvesLong hair in legacy setups
Interactive Groom dynamicsGuides are converted, simulated and cachedHero characters in Maya pipelines
Bifrost graphsCurves simulated in Bifrost drive the groomProcedural or modern Maya workflows
External solver cachesSimulated curves imported as AlembicStudios using Houdini or proprietary tools
Skin deformation onlyStrands ride on the deforming meshShort fur and background characters
Ways to animate XGen strands

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.

SymptomLikely causeFix
Hair missing in renderBroken .xgen or Ptex pathRepair paths, keep sidecar files together
Hair appears on wrong facesMesh topology changed after groomingRestore topology or transfer the groom
Strands flicker between framesRandom seed or density not lockedFix seeds, cache the groom
Viewport becomes unresponsivePreview density set too highLower preview percentage
Clumps look artificialToo few clump guides or uniform valuesAdd map-driven clump variation
Hair passes through the bodyMissing collider during simulationAdd colliders and increase substeps
Typical XGen symptoms with causes and fixes

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.