Map 3D: fill far-field terrain without collision from the height map #159
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!159
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/159/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@holdmysocks on GitHub · 2026-11-24 13:50 UTC · original
holdmysocks:claude/world-heightmap-3d→master· +179 −36 · 5 files · 3 commits · merged 2026-11-24 14:16 UTCLinear: SIX-96. Follows #145 (the height map decoder, merged).
What
Map 3D's far-field terrain comes from the map bake's 8 m collision grid. Cells with no collision are drawn as sea. With a full collision export that hardly matters. With a region-only export (
--bbox), though, the rest of the world became open sea.Now, when the world pyramids are built, every such cell takes its height from the game's whole-world height map in
common.rpf, where that map has land. The height is sampled bilinearly from the 9.77 m grid, and shallow coast stays under the sea plane.heightmap::load_allandheightmap::bestmove tosixng-core, and the CLI uses them. A unit test covers bilinear sampling. Ifcommonis not indexed, the build falls back to the old behaviour.Checked