Developer Update: Root Generator Tool

Root Generator

On a real downhill trail, roots are one of the defining aspects . They knock you off line, they can be slick when it's wet, and picking a way through a root section at speed is a skill of its own. I wanted roots that behave like roots: real shapes, real collision, sitting in the trail the way they actually do.

I had no good way of creating natural looking roots that match the shape of the ground. So I built a root generator.

Grown, not placed

The generator grows a main root, then offshoots, then offshoots off those. Roots wander and twist, take sudden sharp kinks where a rock pushed them aside, split into forks, and sometimes end snapped off. They can also grow out of the base of a tree trunk or a stump, running down the bark and bending out onto the ground. Every root is different, and a new one takes seconds.

Shaped by the ground

Real roots don't follow every dip in the dirt. They're stiff. They rest on the high points and span the hollows, and over time erosion washes the soil out from underneath them. The generator does the same. It fits each root to the actual trail terrain, bridges hollows with a real gap underneath, drapes over low rocks without sinking into them, and steers around rocks too tall to climb. Roots dive under the soil and come back up. Those raised spans are the ledges a wheel actually hits.

Built to be ridden

Roots on a trail wear down where tires run over them. The generator shears the tops flat in places and leaves others round, the way a ridden line looks. Every root comes out game-ready, with physics collision that matches the worn shape, so the wheel rides on the root you see, not an invisible approximation of it.

One material for every root

Each root carries information about itself into Unreal Engine: where it's buried, where it's exposed, which parts face up. A single master material reads that and builds the look on its own. That means smooth bark on exposed roots, rougher bark toward the base, polished darker tops where riders have worn them down, moss off the riding line, dirt where the root meets the ground, and a wetness control for some of the Pacific Northwest style trails. Every root in the game shares that one material.

Checked against the real thing

I compared the generated roots against my own 3D scans of a real root trail section and added what was missing. The bridging, the worn tops, the broken ends and the forks all came out of that comparison.

For other Unreal developers

Game-ready roots are hard to find, especially roots built for ground-level scenes where the player is right on top of them. Once it's polished, I plan to make the root generator available to the Unreal community.

What's next

Next is a matching ground and trail material so roots, rocks and dirt read as one surface. After that, root sections go into the course

Next
Next

Race Day: Game loop and more