OverviewFilesCommitsIssuesDocsReleasesPeers

dc-terrain commits / 156b2e4

tests: mirror map_dc_erosion.gd centring its band on zero
The map moved its 10600 m of relief from 4600..15200 down to -5300..5300 because Godot character physics degrades with ALTITUDE (hyper-tps slope_travel_gate: one stalling cell at 7 km, pervasive stalls by 9.7 km). A pure translation, so y_range is unchanged and this oracle GPU-vs-CPU comparison is untouched -- but MAP_FLOOR_Y/MAP_CEILING_Y still have to MIRROR the map, because the sample points at :630 are drawn from the band. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
156b2e42709ffa67731996b5928662797839c797
by plankatron <fleeky@gmail.com> · 2026-08-31T15:11:00.000Z

Changed files (1) +8 -2

tests/test_erosion_parity.cpp +8 -2
……@@ -100,8 +100,14 @@ using dcerosion::vec3;
100100// ---------------------------------------------------------------------------
101101// map_dc_erosion.gd's configuration. Names match the GDScript constants.
102102// ---------------------------------------------------------------------------
103static const float MAP_FLOOR_Y = -1000.0f; // map_dc_erosion.gd:43
104static const float MAP_CEILING_Y = 20000.0f; // map_dc_erosion.gd:44
103// The band is CENTRED ON ZERO. Godot character physics degrades with ALTITUDE
104// (hyper-tps/scenes/test/slope_travel_gate.gd), so the map moved its 10600 m of
105// relief from 4600..15200 down to -5300..5300. A pure translation: y_range is
106// unchanged, so every wavelength and slope here is unchanged too, and this
107// oracle's GPU-vs-CPU comparison is untouched. These still have to MIRROR the
108// map, because the sample points below are drawn from the band.
109static const float MAP_FLOOR_Y = -10900.0f; // map_dc_erosion.gd FLOOR_Y
110static const float MAP_CEILING_Y = 10100.0f; // map_dc_erosion.gd CEILING_Y
105111static const float MAP_TERRAIN_HEIGHT = 60000.0f; // map_dc_erosion.gd:48
106112static const float MAP_MOUNTAIN_SCALE = 1.0f; // map_dc_erosion.gd:51
107113static const int MAP_MOUNTAIN_OCT = 8; // map_dc_erosion.gd:53