Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
fbmac@lemmy.fbmac.net to Programming@programming.dev · 2 years ago

Some fractal 3D trees

trees.fbmac.net

external-link
message-square
7
link
fedilink
12
external-link

Some fractal 3D trees

trees.fbmac.net

fbmac@lemmy.fbmac.net to Programming@programming.dev · 2 years ago
message-square
7
link
fedilink
Trees
trees.fbmac.net
external-link
These are some fractal 3D threes created using @react-three/fiber and react-three/rapier

Source is at https://github.com/machado2/trees

alert-triangle
You must log in or register to comment.
  • Faresh@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    Cool. Is this made with L-systems?

    • fbmac@lemmy.fbmac.netOP
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      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
        link
        fedilink
        arrow-up
        4
        ·
        2 years ago

        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.netOP
          link
          fedilink
          arrow-up
          3
          ·
          2 years ago

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

          • jadero@programming.dev
            link
            fedilink
            arrow-up
            2
            ·
            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!

  • dosse91@lemmy.trippy.pizza
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

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

    • fbmac@lemmy.fbmac.netOP
      link
      fedilink
      arrow-up
      2
      ·
      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

Programming@programming.dev

programming@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programming@programming.dev

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



Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 106 users / day
  • 585 users / week
  • 2.99K users / month
  • 7.49K users / 6 months
  • 1 local subscriber
  • 21K subscribers
  • 1.9K Posts
  • 27.5K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • MaungaHikoi@lemmy.nz
  • UlrikHD@programming.dev
  • UI: unknown version
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org