Skip to content

Add terrain skirt and weather data fetching#72

Merged
brendancol merged 2 commits intomasterfrom
stashed-changes
Mar 3, 2026
Merged

Add terrain skirt and weather data fetching#72
brendancol merged 2 commits intomasterfrom
stashed-changes

Conversation

@brendancol
Copy link
Contributor

Summary

  • Terrain skirt: Adds vertical walls and a bottom face around the DEM perimeter so it looks like a solid slice of land instead of a paper-thin surface. Enabled by default (skirt=True) on triangulate(), heightfield(), and explore(). Works with both TIN mesh (appended to vertex/index buffers) and heightfield mode (separate terrain_skirt geometry).
  • Weather data: Adds fetch_weather() for Open-Meteo temperature/precipitation/cloud cover/pressure, wired through quickstart.
  • New examples: explore_perlin.py, port_jefferson.py, Trinidad weather flag.

Test plan

  • Run dem.rtx.triangulate() and verify skirt vertices/indices are appended correctly
  • Run dem.rtx.explore() with default skirt=True and confirm solid terrain edges
  • Run dem.rtx.explore(skirt=False) and confirm no skirt
  • Test heightfield mode (mesh_type='heightfield') with skirt
  • Test resolution changes (R/Shift+R) preserve skirt
  • Test vertical exaggeration (Z/Shift+Z) scales skirt correctly

- Add fetch_weather() for Open-Meteo temperature/precipitation/cloud/pressure
- Wire weather data through quickstart pipeline
- Add Trinidad weather flag, explore_perlin and port_jefferson examples
Adds vertical walls and a bottom face around the terrain perimeter so
the edges look like a cut cross-section of land instead of a paper-thin
surface.

- add_terrain_skirt(): appends skirt to existing TIN mesh vertices/indices
- build_terrain_skirt(): standalone skirt geometry for heightfield mode
- Enabled by default (skirt=True) on triangulate(), heightfield(), and explore()
- Skirt depth defaults to 15% of elevation range
- All 4 engine mesh-build sites updated (init, resolution, VE, reload)
- Heightfield skirt added as separate 'terrain_skirt' geometry
- Cluster GAS disabled when skirt present (non-regular topology)
@brendancol brendancol merged commit adda260 into master Mar 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant