Showing posts with label trees. Show all posts
Showing posts with label trees. Show all posts

Monday, June 7, 2010

Falling Leaves

Click on the image on the left to load the canvas demo (requires FireFox or non-IE browser). As with all of these demos, try clicking reload a few times to see different random versions. Just an idea I had while riding my bike home, looking at fallen leaves (it's the start of winter here) I changed the l-system renderer to use curves which I think makes the trees look more natural. I also used the canvas wrapper to be able to get the position of the leaves as they are generated so I can animate them. Update: (23/9/10) Added hack to make leaves appear to collect on the ground beneath the trees.

Monday, November 23, 2009

Forest Night


The idea is you're lying on your back in a forest, looking at stars. Click the image on the left to view the demo. Press reload to view a different version. Written in Javascript / HTML Canvas (use Firefox, or anything other than Internet Explorer)