Skip to content

Add procedural weather particle system example using Gaussian splats#8580

Merged
mvaligursky merged 2 commits intomainfrom
mv-weather-particles
Apr 8, 2026
Merged

Add procedural weather particle system example using Gaussian splats#8580
mvaligursky merged 2 commits intomainfrom
mv-weather-particles

Conversation

@mvaligursky
Copy link
Copy Markdown
Contributor

@mvaligursky mvaligursky commented Apr 8, 2026

Procedural infinite weather particle system rendered as Gaussian splats. Particles follow the camera using a deterministic 3D grid with hash-based positioning and animation.

Changes:

  • Add GsplatWeather script (scripts/esm/gsplat/gsplat-weather.mjs) — a reusable procedural particle system built on the GSplat format API
  • Add weather example with interactive controls under gaussian-splatting category
  • Snow and Rain presets with full UI customization (speed, drift, angle, opacity, color, particle size, elongation, density, extents)
  • Entity rotation used for wind angle — tilts the entire particle volume so elongated particles (rain) naturally align with the fall direction

API Changes:

  • New GsplatWeather script class with properties: extents (Vec3, world-space half-size), density, speed, drift, opacity, color, particleMinSize, particleMaxSize, elongate, followEntity
  • rebuild() method to re-create the particle grid after changing extents or density

Examples:

  • New gaussian-splatting/weather example with preset dropdown (Snow/Rain), particle property controls, grid configuration, and live particle count stats

Procedural infinite weather particle system rendered as Gaussian splats.
Particles follow the camera using a deterministic 3D grid with hash-based
positioning and animation. Includes Snow and Rain presets with full UI
customization.

Made-with: Cursor
@mvaligursky mvaligursky merged commit f719732 into main Apr 8, 2026
8 checks passed
@mvaligursky mvaligursky deleted the mv-weather-particles branch April 8, 2026 10:20
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