Forest Generator
doubled doubled Library update 6mo ago

Forest Generator

Uses noise to generate a forest using prefabs (trees, shrubs, grass etc.)

favorite4favorites
thumb_up1upvotes
hard_drive 41 MB folder 283 files build Engine v24 history Last update 189d ago
open_in_new View on sbox.game

About This Package

Doubled – Forest Generator & Terrain Painter

A pair of editor tools for procedural world building directly inside the s&box editor.

Forest Generator

Scatter prefabs across your scene procedurally with full artistic control.
  • Prefab list with weighted randomization – define any number of prefabs (trees, rocks, props…) each with an independent spawn probability weight
  • Bounding box placement – draw the area directly in the scene or set it manually
  • Perlin noise density – control where prefabs cluster and where they thin out using noise scale and threshold
  • Random scale variation – set min/max scale per generation run
  • Align to terrain normal – objects orient themselves to the slope they're placed on
  • Seed-based randomization – repeat or vary results with a single seed value
  • Preset save/load – store and recall your favourite configurations as JSON files

Terrain Painter

Procedurally apply materials to your terrain in one click using three purpose-built layers.
  • Base layer – the ground material (e.g. grass) that covers everything
  • Shore layer (sand) – paints a beach band around a configurable water level using world-space height. Supports smooth blending into the base layer, organic noise displacement on the shoreline edge, and a max-height cap to prevent painting sand on cliffs
  • Slope layer (rock) – paints steep areas with a configurable slope threshold. Fades smoothly into the underlying material (grass or sand) using a configurable blend width. Respects a shore-avoidance zone so rocky cliffs near the water correctly show sand underneath, not rock
  • Smart two-material resolve – because s&box terrain blends exactly two materials per texel, the painter automatically picks the best pair (rock over sand on a rocky beach, rock over grass inland, sand over grass on a flat beach)
  • Preset save/load – same JSON system as the Forest Generator
No usage statistics available
This package may be new or not widely used yet. Usage data becomes available as more users install and play with the package.
Package ID: doubled.forest_generator
Created: 2026-02-20 09:01 UTC
Updated: 2026-02-20 14:40 UTC
Type: library
Public: Yes
Version: 154696
files: 283
Size: 41.4 MB
Engine Version: 24
Asset Version ID: 154696
Version Created: 2026-02-20 14:40 UTC
Hash: 6232707377149458588
Manifest: Open manifest
Compiler: Doubled.ForestGenerator, SANDBOX;ADDON;DEBUG, 1701;1702;1591;, , , , Release, Array, Array, Array, Array
Cs Proj Name: Forest Generator
Resources:
Code Package References:
new_releases Latest Update Feb 20, 2026
Changes on 2026-02-20
154696 Feb 20, 2026
Changes on 2026-02-20
154621 Feb 20, 2026
Changes on 2026-02-20
154529 Feb 20, 2026
Changes on 2026-02-20