Remove fourfold height exaggeration from the embedded terrain preview #28

Manually merged
github merged 1 commit from gh-pr/28/head into gh-pr/28/base 2026-11-27 02:31:51 +00:00
Owner

@⁠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 UTC

The 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.

**@⁠techfoundrynz** on GitHub · 2026-11-21 23:48 UTC · [original](https://github.com/rpatty-dev/PercyStar/pull/28) `techfoundrynz:fix/terrain-preview-height-scale` → `main` · +40 −8 · 1 files · 1 commits · merged 2026-11-22 02:23 UTC The 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 02:31:50 +00:00
github manually merged commit d8b3bcfdf8 into gh-pr/28/base 2026-11-27 02:31:51 +00:00
Author
Owner

@⁠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.

**@⁠rpatty-dev** on GitHub · 2026-11-22 02:23 UTC · [original](https://github.com/rpatty-dev/PercyStar/pull/28#issuecomment-7072879930) Merged onto main (resolved worldmap.rs merge with #27 cleanly). Terrain preview scale matches real elevation now.
This discussion has been locked. Commenting is limited to contributors.
No description provided.