Remove fourfold height exaggeration from the embedded terrain preview #28
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/rpatty-dev--PercyStar!28
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/28/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?
@techfoundrynz on GitHub · 2026-11-21 23:48 UTC · original
techfoundrynz:fix/terrain-preview-height-scale→main· +40 −8 · 1 files · 1 commits · merged 2026-11-22 02:23 UTCThe embedded terrain preview scales X/Y by 0.01 but Z by 0.04, exaggerating slopes fourfold. Use a uniform 0.01 scale for the preview and build GPU world terrain directly at scale 1.0. Preserve its existing one-unit ground offset and keep the mesh centre consistent. Computing normals in the correct scale also keeps preview and world slopes aligned.
Includes a known-slope regression and checks that GPU world elevations remain unchanged.
Validation: independent cargo check --tests --release --offline; the combined local release build passed 50 unit tests and GPU terrain/model/stream visibility checks on Windows. All new data fixtures are synthetic. The upstream workspace lockfile refresh is tracked separately in #21. macOS has not been tested.
@rpatty-dev on GitHub · 2026-11-22 02:23 UTC · original
Merged onto main (resolved worldmap.rs merge with #27 cleanly). Terrain preview scale matches real elevation now.