I added a new Fire component to the FlexLib library. This is a Flex component that creates a fire or smoke effect. It can be customized in a variety of ways, including setting multiple colors for the flame. Check out the demo app below to see a few different presets I came up with. Try playing around with the different controls and you’ll get an idea of the different kinds of effects that are possible.
The key to this is using the perlinNoise function of the BitmapData class, and the DisplacementMapFilter. I don’t claim to be an expert on using these functions. Others have written about using them, I just copied the same approach.
To get the source of the Fire component, download the FlexLib project from Google code.
And don’t complain about this using a lot of CPU horsepower, go get a faster machine 😛 Or look at the source and figure out how to optimize it for better performance and contribute the improvements back to FlexLib.
Oh, and for anyone wondering, I’ll be releasing the source for the RSS reader that was shown at 360Flex… soon. Probably tomorrow. And it’s an even more pimped out version.
- Am I the only one who's going to say this? Seems like the Flex blogosphere is drooling over the concept that Google would do something in Flex. But I haven't heard anyone talk shit about the app. Maybe it's because it's 1:30am and I've had a few beers, but seriously…
- Here are all the examples I showed today in my session at 360|Flex. The demos are the Physics Form, VistaFlow 3D, WindowShade + Degrafa, MP3 Thumbnail CoverFlow, and FlexSpy Event Listeners. All examples have the full source code available and I've tried to write up brief descriptions about each one.…