Bake raycast ambient occlusion into the static scene #167

Merged
sermuns merged 1 commit from bake-raycast-occlusion into main 2026-10-25 02:32:26 +00:00
Owner

The bake CLI now builds the scene once and traces a deterministic ray set against a coarse occupancy grid, so interiors, corners, doorways and wall bases carry real occlusion instead of the flat ambient fill. Each interior building stores a small visibility grid of ring and sky shares; the client interpolates it per vertex into the existing AO channel, multiplied into the cavity and ground-contact terms.

The bake grows by about 0.57 MB and is byte-for-byte deterministic. OSM shells and outdoor-only geometry keep the analytic terms.

closes #82

The bake CLI now builds the scene once and traces a deterministic ray set against a coarse occupancy grid, so interiors, corners, doorways and wall bases carry real occlusion instead of the flat ambient fill. Each interior building stores a small visibility grid of ring and sky shares; the client interpolates it per vertex into the existing AO channel, multiplied into the cavity and ground-contact terms. The bake grows by about 0.57 MB and is byte-for-byte deterministic. OSM shells and outdoor-only geometry keep the analytic terms. closes #82
The bake CLI builds the scene once, rasterizes it into a coarse occupancy
grid per building with an interior, and traces a deterministic ray set
against it. Each cell keeps the open share of its horizontal ring and of
the sky, and the client interpolates both per vertex into the existing AO
channel behind the analytic cavity and ground-contact terms.

closes #82
sermuns force-pushed bake-raycast-occlusion from 04156d9297 to 95b1071409 2026-10-25 02:32:17 +00:00 Compare
Sign in to join this conversation.
No description provided.