Vixen
dd8b0a81

Engine · guide

Foliage instances

Trees and rocks stored in a cell grid, the six rules that refuse a placement, and the activation radius that decides which of them are worth a physics body.

Edit this page on GitHub

Documents

Next

  • The terrain heightfield — One grid of 16-bit heights over an authored range, a stack of non-destructive edit layers, the paint channels and the hole mask.
  • Terrain brushes — One brush — a shape, a falloff, a radius in metres and a spacing — answering one question for three different tools.
  • Grass — A field scattered from a rule and never saved — the density curve, the hash both halves share, and the ring of buffers that makes it cost a fixed amount of memory.
  • Growing a forest — The offline ecology — seeds sown, aged, spread, shaded out and displaced — regenerated wholesale from four sliders and a stated seed.
  • Drawing foliage — Cells culled as objects, instances culled within them, LOD decided per instance, and one indirect command per level.
  • Foliage mode — The mode that requires nothing — six tools, a palette, surface filters, and instance selection through the transform gizmo.