Summary
Workbench tools to speed up terrain decoration. Scatter prefabs, paint biomes, or auto-fill based on terrain. Full undo support.
Description
Terrain Automation — Workbench Tools for Map Builders
Three editor tools that handle the boring parts of terrain decoration so you can focus on making your map look good.
WHAT'S INCLUDED
1. Auto-Decorator (Ctrl+J or tree icon in toolbar)
Scatter prefabs across an area with natural spacing. Build a weighted palette, set your area shape, and hit Generate.
- Weighted palettes — oaks at 5, birches at 2, you get more oaks
- Circle, rectangle, or selection box areas
- Slope and altitude filtering
- Density falloff (uniform, center-dense, edge-dense, gaussian)
- Collision avoidance
- Random scale range
- Save/load presets
- Full undo (Ctrl+Z)
2. Biome Painter (paint roller icon in toolbar)
Click and drag to paint vegetation directly on terrain. Pick a biome style, assign your prefabs, and brush it on.
- Six built-in biome templates: Dense Forest, Light Woodland, Rocky Hillside, Meadow, Riverside, Village Edge
- Ctrl+Scroll to resize brush, Shift+Scroll to change density
- Hold SPACE for erase mode (brush turns red)
- Keys 1-6 to quick-switch biomes
- Noise-based clumping so it doesn't look uniform
- Each layer follows its own slope/altitude rules
- Full undo per stroke
3. Terrain Randomizer (Ctrl+Shift+J or magic wand in toolbar)
Point it at an area and it figures out what goes where. Analyzes slope, altitude, and water proximity, then fills each zone with the prefabs you assign.
- Flat Open — meadows, scattered trees
- Flat Low — lowlands near water
- Gentle Slopes — forest, the densest zone
- Moderate Slopes — rocks, sparse bushes
- Steep Slopes — cliff faces, boulders
- Water Edge — reeds, river rocks
- Per-zone density and spacing controls
- "Analyze Area" preview before generating
- Noise clumping for natural patches
- Full undo
TIPS
- Stack all three: Randomizer for broad coverage, Biome Painter for detail, Auto-Decorator for fine spots.
- Randomizer works best at 100m+ radius. For small areas use the others.
- Check the console log if things aren't placing — it tells you why.
- Save your Auto-Decorator presets, you'll reuse them constantly.
WORK IN PROGRESS
All three tools compile and run. Entity creation, undo, and terrain analysis are functional. Still tweaking defaults and polishing edge cases. Check console logs if you hit issues.
FOR MODDERS
Everything is in Enforce Script under Scripts/WorkbenchGame/. Code is commented.
- Add biome templates in BiomePainterConfig.c (GetBiomeDefinition method)
- Adjust zone thresholds in TerrainRandomizer.c (ClassifyPoint method)
- Shared math in TerrainUtils.c (slope calc, noise, weighted random)
- Entity spawning follows Bohemia's Object Brush pattern exactly
Shortcuts: Auto-Decorator Ctrl+J | Terrain Randomizer Ctrl+Shift+J | Biome Painter toolbar only
License
Arma Public License (APL)