rss Fractals Blog

Cloud and Landscape Generator

Flash  Flash 9  Actionscript 3  Fractals 
18 November 2008

Building my base of reusable code, I spent the last few days implementing, tweaking and making examples of a fractal based clound/landscape generator.

Since the Flash 10 penetration rate will need some time to get close to 100%, it's implemented for Flash 9. Everything is generated in code, so it would be perfect for projects with size limitations or when requiring to generate content dynamically.

 

Base algorithm:

Same result as Photoshop Filter menu -> Render -> Cloud ..
Landscape generator:

Heightmap and texture accessable independently (as 2D arrays or as Actionscript Sprite or Bitmap) ..
Dark (k)night psychedelic:

An example of use. Infintely looping 3 layer parallax scrolling using Flash blend modes, distance based bluring, and horizontal flip for faster init time and psychedelic effect.
Dark (k)night clean:

Similar but no filters or blend modes.
Clean blue skies:

 

 

 1 comment(s)