Environment engine · Unity
Internal R&DProcedural terrain generator for Unity (TerraKit)
The environment engine behind the simulators: it turns a written description of a place, or survey elevation data, into a Unity terrain with drainage, painted ground and vegetation placed by ecology — so training scenarios can be varied without rebuilding the world by hand.
The problem
Building a believable environment for a simulation usually means hand-sculpting the terrain, then hand-painting the ground and hand-placing every tree, rock and patch of grass. It is slow, hard to repeat over large areas, and the result rarely reads as a real place: rivers do not follow the land and forests look scattered rather than grown. For training it has a worse problem — an environment built by hand is an environment that never changes, so a cohort learns the map instead of the task.
What I built
TerraKit starts from a description, for example a forested Himalayan river valley near Manali, with deodar and blue pine on the slopes and maples along the river. It plans the landform, drainage, ground and vegetation from that description, then builds the terrain. When survey elevation data is available it can start from that instead of a synthesised landform, which is what a trainer needs when the training has to happen in a specific real place.
How it works
A deterministic core handles landform synthesis, hydrology so rivers drain the way the land does, erosion, rule-based ground painting, and ecology-driven placement of vegetation and rocks. Determinism is the part that matters for training: the same inputs produce the same world every time, so two trainees can be assessed in an identical environment, and changing one number produces a fresh one of equivalent difficulty. The output is a single Unity package containing the heightmap, painted ground materials, water, and placed trees, rocks, deadwood and grass, for both URP and HDRP. The 3D tree, rock and grass models in the demo come from the Unity Asset Store and Unity sample assets; TerraKit decides where everything goes, but the models are not mine.
Outcome
In development as a desktop application, with release planned for November 2026.
Working on something similar? You'll talk to the engineer who builds it.
Start a project