Skip to content

Flood overlay water rendering + Trinidad coastal resilience demo#65

Merged
brendancol merged 1 commit intomasterfrom
feature/flood-water-rendering
Feb 27, 2026
Merged

Flood overlay water rendering + Trinidad coastal resilience demo#65
brendancol merged 1 commit intomasterfrom
feature/flood-water-rendering

Conversation

@brendancol
Copy link
Contributor

@brendancol brendancol commented Feb 27, 2026

Summary

  • Flood-as-water rendering: New overlay_as_water flag in the render kernel. When a flood_* layer is active, flooded pixels (overlay > 0.5) render with the full ocean water shader (deep blue base, procedural wave normals, Fresnel reflections, specular highlights) instead of colormap blending. Cycling flood_1m → flood_2m → … flood_10m with G key creates a rising-flood animation.
  • Fixed flood masks: Non-flooded pixels are now NaN (not 0.0), so dry land shows the satellite/terrain base instead of a black mask.
  • Info text in help menu: New info_text parameter for explore() appends a MODEL INFO section to the paginated help pages. Supports key-less entries that span the full column width.
  • Trinidad & Tobago Coastal Resilience demo: New example script with bathtub inundation model across both islands — Copernicus 30m DEM, Overture buildings/roads color-coded by surge risk, cyberpunk minimap, wind animation.

Test plan

  • Run trinidad_tobago_coastal_resilience.py and verify satellite tiles are visible on dry land (no black mask)
  • Cycle layers with G — flood layers should render as water with reflections/waves
  • Press H to cycle help pages — MODEL INFO section should appear on last page
  • Verify non-flood overlay layers (surge_risk) still render with normal colormap blending

…ience demo

- Add overlay_as_water flag to render pipeline: flood overlay pixels
  (value > 0.5) trigger the ocean water shader (procedural waves, Fresnel
  reflections, specular) instead of colormap blending, creating a visual
  rising-flood animation when cycling layers with G key.

- Engine detects flood_ prefix layers and sets overlay_as_water automatically.

- Add info_text parameter to explore(): appended as a MODEL INFO section
  in the paginated help menu. Help item rendering supports key-less entries
  that span the full column width.

- Trinidad & Tobago Coastal Resilience demo: storm surge analysis across
  both islands using Copernicus 30m DEM, Overture buildings/roads, and OSM.
  Flood masks use NaN for non-flooded pixels (fixes black mask over
  satellite tiles). Removed slope/aspect layers to focus on surge analysis.
@brendancol brendancol merged commit 8f68627 into master Feb 27, 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