daffodil

heightfield terrain engine · real-world landscape at 1:1

v0.1.0-dev PolyForm Noncommercial C99 + sokol
Block Island from the air: green hills, a large pond inland, roads and scattered houses, the airfield, and white beaches curving along the sea on the right

The engine that draws the ground in Block Island Simulator. It starts from a real survey of the island and draws every hill, bluff and pond exactly where it is, so you can walk on the actual landscape. Nothing is made up or sculpted by hand.

the technical version

A C99 heightfield terrain engine by magmacrunch media. daffodil draws real ground: it reads a heightfield built offline from LiDAR elevation data, reprojected, tiled and written as raw float32 meters, then renders it faithfully and lets you walk on it.

Nothing is generated or sculpted. The shape of the ground comes from the survey, and the engine's job is to reproduce it. It was built for Block Island Simulator, which is the island below.

daffodil has two C99 siblings. magnolia runs the Wii games. hologram makes the opposite trade: it traces light exactly, dispersion and polarization included, across a few dozen analytic surfaces, where daffodil rasterizes millions of triangles of ground and gets the light approximately right.



what's in it

the ground Hills, bluffs and ponds from the survey, a height every 2 metres
water Sea and ponds with the tide, currents and a shore you can swim out from
sun, moon & stars All in their real positions for the date, time and place; the night is as dark as it actually is
weather & life Sky, rain, birds, boats and the ferry working its real crossing
buildings Rooms you can walk into, walls that stop you, and a lighthouse you can climb
plants Trees, shrubs and grass where they were measured
getting around Walks, swims and rides; a bicycle and a moped, each with its own handling
sound Its own mixer and a small synth, inside the engine

Runs on Windows, Mac, Linux and Raspberry Pi 4 and 5.

the technical version

terrain chunked heightfield at 2 m posts, LOD by distance, with seams that are provably invisible. shadows cascaded shadow maps, with an atlas that defaults smaller on GLES3 than the floor allows. vegetation instanced and impostored by range. audio mixer, sample bank, WAV loading and a small synth.

capture reads a frame back on every backend, which is what makes a visual claim checkable at all. gles_budget audits the whole scene against GLES3's guaranteed minimums, with no GPU and no display.

built on it

The game it was built for, and its own editor.

the terrain contract

daffodil doesn't make the landscape; it only draws it. The game's own tools turn the survey into tiles of ground heights, in metres above sea level, and the engine reads those tiles exactly as they were written, so nothing can be lost or rescaled between the two.

the technical version

daffodil does not produce heightfield data; it reads it. The producing pipeline lives in the consuming game's repository, in Python, and the two halves agree through a manifest file rather than through shared code. A tile is raw little-endian float32, row-major, and its sample values are meters above local mean sea level.

DAFFODIL_TILE_SAMPLES   257     // 512/2 + 1
DAFFODIL_TILE_METRES    512.0f
DAFFODIL_POST_METRES    2.0f

There's no height scale constant and no decode step: reading a tile is one fread into a float*. A scale constant is a thing two languages can disagree about, and this way they cannot. The +1 in the sample count is load-bearing too, because it makes adjacent tiles share their edge row exactly.

measured against the specification

The engine's demands are checked against OpenGL ES 3.0's guaranteed minimums instead of whatever GPU is to hand. Fitting inside the floor means fitting on any conformant device, so a failure on real hardware points at the driver. The audit runs with no GPU and no display, which means it runs over ssh.

It says nothing about speed. Not one of those limits is a rate, and the island reported ok on every line while drawing at three frames a second on the one GLES3 GPU it has met. Fitting the limits and running fast are separate questions, and the audit answers only the first.

targets

Windows / D3D11 · Linux / OpenGL · macOS / Metal · Raspberry Pi 4 and 5 / GLES3. One rasterizer, four backends, and a frame can be read back on all of them.

the name

After the Daffodil cabin at Twin Maples on Block Island, which is the first ground it renders, and after Juanito Thompson's “Daffodil & Sweet Pea”.

PolyForm Noncommercial 1.0.0 · Copyright 2026 magmacrunch media. Any noncommercial purpose is permitted, and commercial use is reserved to magmacrunch media. Vendored sokol headers, by Andre Weissflog, keep their zlib license.

// source access //

daffodil is developed in-house and is not publicly distributed.

For source access, licensing, or anything else, email info@magmacrunch.com.