6 objects

Environment effects for Three.js & React Three Fiber

Placeable 3D weather: rain, snow, sandstorm, rainbow, tornado and thunderstorm, each filling a volume you size and move.

The environment objects are weather you place in a scene: Rain, Snow, Sandstorm, Rainbow, Tornado and Thunderstorm. Each one fills a box-shaped volume that you size and move like any other object, so a storm can sit over one valley while the rest of the scene stays clear. They are separate from the scene-wide environment settings for sky, sun, clouds, ocean and fog, and they work with them: the snow is lit by the sun and the sky, and a thunderstorm's flashes light the whole scene.

What's in the family

  • Rain: streaks falling through the volume, pushed sideways by the wind and scattered by turbulence.
  • Snow: flakes that fall faster the bigger they are, flutter and tumble, and glint in the sun, swept into curtains by travelling gusts.
  • Sandstorm: billowing dust, towering walls of dust rolling downwind, and sand grains hopping along the ground. For deserts, ash and Mars.
  • Rainbow: a single bow centred opposite the sun. Drop Size changes it from a narrow, vivid bow to the pale fringes of small drops and the white fogbow of mist, and Secondary adds the second, reversed bow outside it.
  • Tornado: a funnel on a wandering, rope-like axis, with streaks winding up it and ground dust spiralling in around its foot.
  • Thunderstorm: dark storm curtains drifting on the wind and lightning flashes at random intervals. It has no rain, so add Rain alongside when you want both.

Shared settings

The weather objects share a vocabulary. Density sets how much there is, Wind Strength and Wind Direction push it, Turbulence roughens it and Speed sets the time scale. Color and Shade Color set the lit and shaded sides. Most also have a Quality setting for slower devices and a Seed for a different layout with the same character. Follow Camera keeps the weather around the camera wherever it goes, so a fly-through never reaches the edge of the snowfall.

The cursor

Every weather object except rain gives the cursor a physical role, shown live on the page:

  • Snow: a gust of air, a shelter the snow slides off, or a warm hand that melts it.
  • Sandstorm: a windbreak with still air behind it, a dust devil, or a gust.
  • Tornado: the cursor steers its foot, feeds its inflow, or bends it with a gust.
  • Rainbow: a mist spray that brightens the bow, a clearing that wipes it, or a polarising filter.
  • Thunderstorm: sweep to call a strike, or clear a path through the murk.

Pointer Strength and Pointer Radius set how hard and how far.

Use it for

Moody product launches in the rain, winter campaigns, desert and Mars worlds, storm-chasing drama, and hopeful after-rain hero shots with a rainbow. Weather is also the quickest way to give an empty scene a season and a mood.

All environment effects

Click a card to play it live
01

Rain

Rain streaks falling through the object's volume, pushed sideways by the wind and scattered by turbulence. Use for rainy, moody and weather scenes.

  • rain
  • weather
  • precipitation
  • water
▶ PreviewHow it works
02

Snow

Snowfall with physical flakes: size-dependent terminal fall, helical flutter and tumbling dendrite crystals that glint in the sun, swept by travelling gusts and snow bands. The cursor is a gust, a shelter or a warm hand. Use for winter and weather scenes.

  • snow
  • winter
  • weather
  • flakes
▶ PreviewHow it works
03

Sandstorm

A haboob: billowing dust under a scale-height profile, gust fronts that roll downwind as towering walls, and saltating grains streaking along the ground, lit by forward-scattered sun. The cursor is a windbreak, a dust devil or a gust. Use for desert, ash and Mars scenes.

  • sandstorm
  • desert
  • dust
  • haboob
▶ PreviewHow it works
04

Rainbow

A single physical rainbow on its own: water dispersion and an Airy profile with supernumerary fringes, centred opposite the sun and seen through the object’s volume. The cursor sprays, clears or polarises it. Use for after-rain and hopeful scenes.

  • rainbow
  • optics
  • sky
  • weather
▶ PreviewHow it works
05

Tornado

A standalone tornado as a Rankine vortex: a condensation funnel on a wandering, rope-like axis with helical streaks that wind by differential rotation and climb on the updraft, and ground dust spiralling in and swirling up a sheath around it. The cursor steers it, feeds it or bends it with a gust. Use for storm and drama scenes.

  • tornado
  • twister
  • vortex
  • storm
▶ PreviewHow it works
06

Thunderstorm

A thunderstorm without the rain (rain is its own object): dark storm curtains drifting on the wind, and lightning arriving as a Poisson process of multi-stroke flashes that light the curtains and the whole scene. The cursor calls a strike or clears the murk. Use for storm, noir and dramatic scenes.

  • thunderstorm
  • lightning
  • storm
  • weather
▶ PreviewHow it works

Code and API

Ready-to-paste React Three Fiber code and the 3DRise API are included in paid plans, inside the studio.

See plans

More object types