| Color | Style | Function |
|---|---|---|
| Blue | 0 - 1 gradient leading up branches | Directly controls how much the vertex sways |
| Green | Random solid value on individual elements | Applies a random offset so different parts of the plant sway at different intervals. |
| Red | Currently unused | |
| Alpha | Currently unused |
Vertex Paint workflow
Download “Enhanced Vertex Color Tool” (Tarmunds Addon) and install.
For Sway Wind:
- Start with Blue Gradient to control affected area of sway
- Select individual meshes and apply random green for sway randomization of leaves or fronds
This method is tricky for merged meshes or meshes with fronds that are attached to a body that you want to move independently. I found trial and error works best with hand painting the green random sway channel first then applying the blue gradient to control overall sway.
Unreal
Make sure you have
Import vertex colorschecked when importing into Unreal!
After importing your plant and making a material, you turn on the sway effect in the material instance.