3 ms·
I once used 'The Algorithmic Beauty of Plants' (http://algorithmicbotany.org/papers/#abop http://algorithmicbotany.org/papers/#abop) to build a simple L-System
by evilc00kie 5y ago
I once used 'The Algorithmic Beauty of Plants' (http://algorithmicbotany.org/papers/#abop http://algorithmicbotany.org/papers/#abop) to build a simple L-System web service while studying: https://lsystems.raphaelpour.de/ https://lsystems.raphaelpour.de/
- tarr11 5y agoThere is a cool algorithm called space colonization that can do a lot of what l-systems do (such as tree modeling). Pretty straightforward to implement and has some nice results. http://algorithmicbotany.org/papers/colonization.egwnp2007.large.pdf http://algorithmicbotany.org/papers/colonization.egwnp2007.l...
- abelaer 5y agoFor the curious: I've written a basic space colonisation algorithm to simulate leaf venation patterns in a browser here: https://openprocessing.org/sketch/1211361 https://openprocessing.org/sketch/1211361 (note: I wrote this many years ago and it's horribly inefficient, I don't even dare to look at the code anymore, but it's on that same page)
- mahathu 5y agoUh, not sure what I did exactly, but this is really cool: https://i.imgur.com/6wDRXMd.png https://i.imgur.com/6wDRXMd.png
- evilc00kie 5y agoYou can do pretty impressive stuff by just tweaking random knobs. I'd recommend playing with the angle and iteration setting. But be patient with the iteration one. The computing complexity rises exponential with increasing iterations which causes the tab to freeze.. EDIT: Fix typo and improve iteration explaination
- someguyorother 5y agoLooks like a relative of the Gosper curve! https://en.wikipedia.org/wiki/Gosper_curve https://en.wikipedia.org/wiki/Gosper_curve
- mahathu 5y agoWow, good catch! I'm highly impressed!