Convert XGen Grass to Polygons in Maya
XGen primitives get converted to polygon geometry using the built-in Create Geometry option in the Preview/Output settings. I walk through the settings that matter, then isolate the result, give it a Lambert, and reduce the poly count.
The video loads from YouTube (privacy-enhanced mode) only when you press play.
What you'll learn
- Where the
Create Geometryoption lives in theXGenPreview/Output settings - How to convert all primitives into one combined mesh instead of separate pieces
- Why the width ramp carries over to the converted geometry
- When to keep or drop joints in the converted grass
- How to reduce the resulting mesh from around 93 thousand polygons to around 28 thousand
Baking XGen primitives into polygons
I've got a scene set up with a toonish look, and the goal here is to convert the grass from XGen primitives to polygon surface. It's easier than it sounds, because Maya ships with an option for it right in the preview and output settings.
You'll most likely be on the render tab. From there, go to Create Geometry. That opens the conversion settings, and you'll want to dial a few of them in before you commit.
Selected primitives: I don't need the selected primitives converted — I need them all converted, so that's the call to make here.Combined mesh: check it if you want one combined mesh out the other end. Uncheck it if you'd rather have separate pieces.Width ramp: the ramp already set up for the shape of the grass carries over, so the converted geometry keeps the shape you designed.Joints: this is the important one. If you need joints in your grass or in any surface, keep it on. I don't need them, so I uncheck it.
Once the settings match what you need, press Create Geo. In an instant, the mesh is there. That's the conversion.
Isolate, shade, and cut the poly count
With the mesh created, isolate it so you're only looking at the grass. Assign a Lambert with a kind of darkish green feeling. That's your grass — and it's one single mesh, which is exactly what the combined mesh setting gave us.
The poly count is the next thing to deal with. If you want, reduce it. Around 70% does the job here, and the result looks amazing. There's not much difference from this distance, so I'll be fine with it.
For reference, the numbers: we had around 93 thousand polygons, and after the reduction we have 28. The grass still reads well at this distance.
So the workflow is: convert with the settings dialed in, isolate, shade with a Lambert, then reduce until the silhouette still reads from where you're viewing it.



