Knob
Wind
You might say: vegetation motion, foliage bending, wind field
Wind is the directional and local motion applied to stems, blades, branches and leaves. Main bending moves the plant mass while detail bending gives leaves their separate phases and stiffness.
- What it does
- Adds life and a shared environmental force without unplanting the roots or turning the whole population into one rigid wave.
- Ask
- Which force bends this plant, where is it stiff, and how much motion can the silhouette take before it looks comic?
- Typical
- Wind direction; speed; main amplitude; detail frequency; stiffness; per-instance phase.
- Trouble
- Plants slide at the root, every clump moves in lockstep, wind bends cards too far, or the motion reads as a shader wobble.
What to look for
- Roots stay planted while upper blades and leaves move
- Nearby plants share a wind direction with different phase and stiffness
- Large branches move slowly while leaf edges add finer motion
Connections
- Controls: Grass clump
- Controls: Foliage shading
- Controls: Trees
Sources
- Tiago Sousa, Vegetation Procedural Animation and Shading in Crysis, 16.1, Procedural Animation
A wind vector is computed per-instance, in world space, by summing up the wind forces affecting the instance. A wind area can be a directional or an omnidirectional wind source. In our case, we compute this sum in a very similar way to light sources affecting a single point, taking direction and attenuation into account. Also, each instance has its own stiffness
- Randima Fernando (ed.), GPU Gems: Programming Techniques, Tips and Tricks for Real-Time Graphics, 1.2.4, Wind
The trick to this is to carry a blend weight in the vertex definition, where the top two vertices of the grass quad are set to 1 and the bottom two to 0.
Use it on your project
teardown-apply: hold "Wind" (wind) from the teardown at https://teardownatlas.com/environment-art/ against my project
Paste it into a coding agent that has the teardown skills.
An AI agent wrote this map with the teardown skill. It can contain errors: check the sources before you rely on a part. About and legal