Smoke #1

Created via Perlin Noise applied as Displacement Map. Got a little intrigued after seeing this experiment and this. While mine has no real physics behind it, it does render a rather pleasing effect. Simply made a circle with a gradient color, made it follow the mouse, drew it every frame into a bitmapdata object and applied a displacement filter sourcing some perlin noise.

Curiously, i could only use a white background because a blur filter i’m applying every frame, and the background always turns into black. Not sure if this is viable for any project where the smoke area reaches greater than 500×500 since creating perlin noise every frame is rather taxing, i suppose i could cache continuous tiles and use them instead. Must look into this more when i have time.

I also used Mario Klingerman’s GradientMatrix class to fix gradient rotation for my circle. Thanks Mario!

Download Source.


About this entry