How to Generate Fractal Trees

Поделиться
HTML-код
  • Опубликовано: 18 дек 2024

Комментарии • 12

  • @alhinc
    @alhinc 11 месяцев назад +1

    That is completely true, I will type it and experiment with it. I am trying to simulate dendritic erosion in tidal flats. Thanks!

    • @programmingchaos8957
      @programmingchaos8957  11 месяцев назад

      That sounds very cool! If you get it working send me a link, I'd love to see it.

  • @safamy3859
    @safamy3859 Год назад

    This is an amazing tutorial! Thank you so much for such a clear explanation and an interesting topic.

    • @programmingchaos8957
      @programmingchaos8957  Год назад +1

      I'm really glad you enjoyed it and found it helpful. If you've got any topics you'd like me to cover let me know and I'll see what I can do.

    • @safamy3859
      @safamy3859 Год назад

      ​@@programmingchaos8957 I wonder if sierpinski triangle could be implemented in a way that we keep zooming into the smallest triangle in our screen like an animation via script?
      And it would be so cool to see the visualization of paradoxes such as the tribar paradox.

    • @programmingchaos8957
      @programmingchaos8957  Год назад +1

      I've been working on video for zooming in on the Mandelbrot set, should work similarly for the Sierpinski triangle. Paradoxes are a nice idea. I've been trying to collect visual illusions that code well.

  • @prietjepruck
    @prietjepruck Год назад

    Nice tutorial. Lots of thanks!

    • @programmingchaos8957
      @programmingchaos8957  Год назад +1

      Thanks. I recently watched your video on simulating multi-body collisions, very impressive.

  • @alhinc
    @alhinc 11 месяцев назад

    Very interesting video on recursion. Is the code available to download, or we need to type it ourselves. Thanks, Alejandro.

    • @programmingchaos8957
      @programmingchaos8957  11 месяцев назад

      I'm very glad you enjoyed it. The code for most of the projects is not currently available. It's the teacher in me - I feel like we learn a lot more when we have to type it out ourselves \shrug.

  • @chillcompany1028
    @chillcompany1028 Год назад

    thanks for the lesson. It would be interesting to think about a "biologically correct" simulation. As far as I understand, the tree prefers to grow those branches whose foliage brings the greatest amount of solar energy. Therefore, single-standing trees are very lush, but trees in a dense forest try to stretch as high up as possible so as not to be shaded from the light by other trees

    • @programmingchaos8957
      @programmingchaos8957  Год назад

      You're welcome, and right about the biology. I know of at least one (I'm sure there are other's) interesting research paper that studies exactly that (dl.acm.org/doi/abs/10.5555/646810.704242, "Coevolution Produces an Arms Race among Virtual Plants", Eben, Marc et al. EuroGP 2005). They used an evolutionary algorithm: grow lots of different trees somewhat similar to how I did it, throw away the ones that don't get much light, let the ones that get light 'reproduce' but mutate their parameters (branch angle, reduction amount, leaf size, etc.) a little so they evolve. They did two sets of experiments, one with trees/plants growing in isolation and one with them growing clumped together. As you predicted the one's growing in isolation evolved to be bushy or even just sprawl over the ground, and the one's growing in clumps evolved to be much taller.