this post was submitted on 12 Sep 2023
29 points (93.9% liked)

Programming

22204 readers
97 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
top 8 comments
sorted by: hot top controversial new old
[–] dosse91@lemmy.trippy.pizza 3 points 2 years ago (1 children)

Cool stuff, now add some physics to those branches :)

[–] fbmac@lemmy.fbmac.net 2 points 2 years ago

I did some experimenting on that direction, but stopped at this weird thing. The way I'm doing it would be too slow with more than one tree

https://random.fbmac.net/page/4

source: https://github.com/machado2/random-things

[–] Faresh@lemmy.ml 3 points 2 years ago (1 children)

Cool. Is this made with L-systems?

[–] fbmac@lemmy.fbmac.net 2 points 2 years ago (1 children)

It is recursively changing the angle at random and shrinking the size. I dunno if that would count as a L-system, the wikipedia article for L-system has too much math that I don't understand

[–] jadero@programming.dev 4 points 2 years ago (1 children)

Track down a copy of "The Algorithmic Beauty of Plants". The last time I looked, it was available as a free PDF, too. I think it's a great introduction to L-systems.

I got it when it was first released and spent way too much time poring over it and generating imagery on my decrepit old computers.

I've never looked at plants the same since.

[–] fbmac@lemmy.fbmac.net 3 points 2 years ago (1 children)

Thanks, I found this book and a lot of papers about it on this site: http://algorithmicbotany.org/

[–] jadero@programming.dev 2 points 2 years ago

Nice! That Vlab software looks very interesting. Way back when, I built some primitive tools to help me play with L-systems, but I'd never have dreamed of taking it that far.

Have fun!

[–] xilliah@beehaw.org 3 points 2 years ago