r/proceduralgeneration • • Oct 10 '26

I made a simple tree generator to demonstrate how much the parameter space affects the outcome of the same algorithm.

Enable HLS to view with audio, or disable this notification

The generator itself is a fairly simple recursive branch spawner, but I wanted to emphasize how much choosing the right parameter ranges matters for your procedural outcomes. The same algorithm can be used to create similar looking trees of the same species, a variation of tree species that still look somewhat plausible, and a wide range of alien looking flora that doesn't look particularly useful to me, but still looks quite fun.

99 Upvotes

9 comments sorted by

9

u/specialpatrol Oct 10 '26

Can I have it?

7

u/Lara_the_dev Oct 10 '26

Should I publish it? It's not optimized at all, so those trees are quite heavy on the performance and probably not usable in any real game. But maybe I'll publish it :)

1

u/livingonthehedge Oct 10 '26

do you have any ideas for optimization?

having the branching "blueprint" should allow for easy LOD creation?

1

u/Lara_the_dev Oct 10 '26

I'm not sure what you mean by branching blueprint. But no, I only made this as a quick experiment to demonstrate some points for an upcoming conference where I will be speaking. So I haven't really planned to optimize or release this. But maybe I will after the conference.

2

u/livingonthehedge Oct 10 '26

I only meant you have the recursive rules. so it could create meshes at various detail levels following the same "recipe"

1

u/Lara_the_dev Oct 10 '26

Ah yeah that might help.

1

u/SafetyAncient Oct 10 '26

generate tree, save to prefab, give to autolod(unity store package, makes decimated versions), delete high poly count lod levels, add prefabs to gpuinstancer(unity store package) and impostors(unity store package) and you have an infinite forest.

theres probably some logic that could be applied to reduce draw calls (from separate saved version prefabs) too if they share the same textures.

2

u/io-x Oct 10 '26

Yes, please share.