Vixen
dd8b0a81

Engine · guide

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.

Edit this page on GitHub

Documents

Next

  • Terrain brushes — One brush — a shape, a falloff, a radius in metres and a spacing — answering one question for three different tools.
  • Sculpting a heightfield — The seven sculpt kernels plus holes and paint, the stroke record that makes a drag undoable, and the ray that turns a pointer into a sample.
  • Drawing a terrain — A quadtree with a vertex morph, one instanced grid patch, no vertex buffer, and one draw call however many patches it takes.
  • Sculpt and paint mode — The viewport mode the terrain tools live in — two categories sharing the digits, one drag as one undo entry, and the panel as settings objects rather than dialog code.
  • Splines — A cubic Hermite curve with an arc-length table, the authored asset over it, and its two consumers — roads that deform a terrain and camera dollies that follow a track.