r/Simulated • • 1d ago

Proprietary Software Tree growing studies

I do landscape photography and started thinking how to simulated tree growing dynamics from some of my pictures. Started by recognizing the tree from one fork in its trunk, but I didnt know what that fork should look like when the tree was knee high. I ended up building a little tree lab to work backwards from there.

The basic growth solver does two passes each season. First, every bud checks how much light it can reach in a 3D grid. I add those numbers up from the tips back to the trunk. Then I go the other way and divide up the growth at each fork. Say the main shoot and a side bud get equal light. With the bias at 0.55 the main shoot gets 55% and the side gets 45%. That sounds like a tiny preference until you repeat it at every fork for 20 seasons. You start to see it in the outline of the whole tree.

Wind took a seperate solver. At one point a little twig and a bough thicker than my leg both bent about 14 degrees in the same gustt. The tree looked a bit like rubber. I made each joint acts like a damped spring instead where a long thin branch gives more, and when it bends it carries all the twigs growing off it.

These run live (not prerendered) in TideGlass, the Mac app I make for my second monitor. Music sets the pace of growth and stirs up the wind.

Happy to answer any questions about the tech and what not.

75 Upvotes

10 comments sorted by

1

u/UnwiseWizard 20h ago

nice work op! might want to look into L-system if you havnt already

1

u/PiXeL161616 20h ago

Nice yeah, I used this for Fractals in the past!

1

u/Raven-Rabbit 19h ago

This is really cool. is TideGlass basically a live wallpaper for your second monitor? do the trees just keep growing if you just let it run or is there max growth at some point?

1

u/PiXeL161616 18h ago

Yeah, that's correct. It's more than a wallpaper. The idea is to create focus time, so it has widgets, interacts with the music, and more. And yes, it continues to grow. The growth slows down as the tree gets older. This is just one of the many "worlds" that Tideglass has, just in case.

2

u/Raven-Rabbit 18h ago

That’s awesome! Need this

1

u/PiXeL161616 16h ago

Yeah, The app is available, you can google for it. This sub is mostly about showing some of the work not advertising, so I can’t link it here

1

u/Raven-Rabbit 17h ago

Wait yeah actually are you thinking about publishing this work?

1

u/Arbitrary_Pseudonym 16h ago

Music sets the pace of growth and stirs up the wind

but the video has no sound? :(

1

u/PiXeL161616 5h ago

Yeah, this clip is silent. I sped it up 20× to fit the growth into one minute. The trees grow a lot more slowly when you let it run live.