Skip to content

Add hydrological flow visualization#70

Open
brendancol wants to merge 3 commits intomasterfrom
add-hydro-viz
Open

Add hydrological flow visualization#70
brendancol wants to merge 3 commits intomasterfrom
add-hydro-viz

Conversation

@brendancol
Copy link
Contributor

Summary

  • New HydroState subsystem (rtxpy/viewer/hydro.py) following the composed viewer pattern
  • GPU-accelerated hydro flow particle simulation with stream-order-aware rendering, trail visualization, and accumulation-scaled particle sizing
  • Threaded hydro_data parameter through accessor.explore(), quickstart(), and engine.py
  • Added hydro overlay support and keybinding
  • Trinidad example now launches with hydro=True

Test plan

  • Run python examples/trinidad.py and verify hydro flow particles render on terrain
  • Toggle hydro overlay on/off with keybinding
  • Verify non-hydro scenes are unaffected (no regressions)

Introduce GPU-accelerated hydro flow particle simulation with stream-order-
aware rendering, trail visualization, and accumulation-scaled particle
sizing. New HydroState subsystem follows the composed viewer pattern.
Trinidad example now launches with hydro=True.
…on rasterization

- Burn Overture waterway LineStrings and Polygons into DEM before D8
  computation so flow routes through known channels (quickstart)
- Add distance-to-ocean gradient and channel burning pass for better
  coastal drainage and stream connectivity
- Toggle hydro (Shift+Y) now switches to stream_link overlay with water
  reflection shader, restoring previous layer on OFF
- Rasterize waterway Polygons (lakes/reservoirs) via scanline fill in
  both engine and quickstart, not just LineStrings
- Burn waterway features into stream_link and stream_order grids so
  they render with the unified water shader
- Update stream order palette to blue gradient (8 levels) and remove
  HDR emissive boost for natural water appearance
- Reduce default hydro particle count to 12k and min render depth to 1m
Add _trace_tributaries_flow_path() using xrspatial flow_path to trace
waterway-seeded channels and headwater tributaries into the stream
network. Add coast_distance parameter using xrspatial surface_distance
for terrain-aware 3D Dijkstra distance from coastline.
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