7 ms·
L-System Simulations
- napierzaza 3y agoI've been trying to build plants using procedural generation for a project. I feel like everyone suggests L-Systems but I feel like it's good for making random alien plants that you can vaguely tweak. But they're not good for plants that you actually want to make look like something specifically and grow uniquely and progressively.
- Rediscover 3y agoTry to get a copy of the first (and second, third?, for the pic of Aristid) proceedings of the artificial life conference. It demonstrates what You are searching (real plants).
- drapado 3y agoCould you elaborate a bit more? Do you mean a paper?
- deosjr 3y agohttp://algorithmicbotany.org/papers/abop/abop.pdf http://algorithmicbotany.org/papers/abop/abop.pdf
- napierzaza 3y agoI will check it out thanks
- Rabidgremlin 3y agoI have a bunch of plant examples here http://blog.rabidgremlin.com/tags/l-systems/ http://blog.rabidgremlin.com/tags/l-systems/
- YeGoblynQueenne 3y agoThe link to Laurens Lapre's LPARSER is dead. Is there a more up-to-date one? I couldn't find it with a brief search.
- Rabidgremlin 3y agommm, I have it on disk from a POVRay book I bought like 20+ years ago.... I wonder if the Internet Archive has it ???
- dalke 3y agoI can't figure out the grammar. I wanted to do the Hilbert curve at https://en.wikipedia.org/wiki/Hilbert_curve https://en.wikipedia.org/wiki/Hilbert_curve: Alphabet : A, B Constants : F + − Axiom : A Production rules: A → +BF−AFA−FB+ B → −AF+BFB+FA− I thought it might be: A=|+[B]|−[A]|[A]-|[B]+ B=|−[A]|+[B]|[B]+|[A]− but that doesn't work, and I don't know what's wrong.
- deosjr 3y agoI tried for a bit and couldn't get it to work either. The dragon curve example is a lot more complicated than the simplest definition, which is a hint. I don't even know exactly what | or [ or ] are supposed to do here. Here's a version in Go instead: https://github.com/deosjr/GenGeo/blob/master/gen/lindenmayer.go#L252 https://github.com/deosjr/GenGeo/blob/master/gen/lindenmayer... Which renders into: https://github.com/deosjr/GenGeo/blob/83c77f9433e569b30f71b33baf47e66a8a66940a/out.png https://github.com/deosjr/GenGeo/blob/83c77f9433e569b30f71b3... (see Algorithmic Beauty of Plants for way more examples)
- SomeDaysBe 3y agoI was able to get it working, I think: axiom: a rules: a = +b|-a|a-|b+ b = -a|+b|b+|a- initial angle: 90 angle change: 90 scale: 1 simulation depth: 4
- dalke 3y agoThat did the trick - thanks! I couldn't figure out what the [] meant in this context and thought it was to make a recursive call. (I've been working on basic space-filling curves, and came across that Wikipedia page last week, which is about all I know about L-systems.)
- SomeDaysBe 3y agoWow never heard of space filling curves. Yet another rabit hole to go into.
- nick__m 3y agonice work! , I will post mine : https://m__nick.gitlab.io/l-systems/#Algle https://m__nick.gitlab.io/l-systems/#Algle here is the grammar: Pattern Production : 0123456789 draw a line [ push turtle state ] pop turtle state + turn angle - turn -angle * scale direction and distance up / scale direction and distance down b brighten d darken c hue color -1 C hue color +1 [ABD-Z][ae-z] variables for patterns rewriting
- atum47 3y agoThe mobile version can use a tweak, but overall is a pretty nice project. I while back i was trying to come up with interesting rules to generate fractals and em up creating a genetic algorithm with you as the evaluator. https://github.com/victorqribeiro/randomFractal https://github.com/victorqribeiro/randomFractal
- phailhaus 3y agoThere's an Observable notebook [1] that allows you to play with L-systems with colors and animation! [1] https://observablehq.com/@kelleyvanevert/l-systems-2 https://observablehq.com/@kelleyvanevert/l-systems-2