Black Cat Wizard : Sketch #26 Vertex Offset

Hi all,

I was recently playing Mario Odyssey and saw these butterflies in the Lost Kingdom
Mario_Butterflies
And noticed that they scale up to fade in and down to fade out, and thought about creating the whole effect with shader so it would be basically always looping.

This is just the first draft to test how to approach the movement animation
Shader_Butterflies_1_0

8 Likes

Update 1
Shader_Butterflies_1_1
So far, I got the overall movement and wing flapping behaviour defined.

Right now I´m setting the initial position of each butterfly with UV coordinates, and offseting their movement with the alpha vertex color value.

Next step is to properly set a “seed” to procedurally make each butterfly move differently and with different timing. I´ll also have to include hue variation.

6 Likes