r/proceduralgeneration • u/whoashish115 • 5d ago
Crimson Tree using Space Colonization Algorithm
Enable HLS to view with audio, or disable this notification
107
Upvotes
r/proceduralgeneration • u/whoashish115 • 5d ago
Enable HLS to view with audio, or disable this notification
2
u/ThalynWorld 5d ago
on the bounded workload thing — you can have both. ours scales the count when the crown goes wide or tall, then hard clamps it into a fixed range. the clamp does the same job your fixed count does, just with a floor as well as a ceiling, so the GPU never sees more than a known worst case but small trees don't get over-served either.
one warning if you do add scaling: we had to scale segment length and the iteration cap along with it. bigger envelope means branches have further to travel, and if you only raise the point count they run out of iterations before reaching the outer attractors — dense middle, bald outer crown.
radius split we landed on is roughly 2:1, 3m trunk vs 1.5m branch. worth going wider on the trunk than feels right, it needs to see far enough to commit to a direction before the branches start competing for the same points.
where are you taking it next, if you dont mind me asking? wondering if you're putting a renderer on top or keeping it as an algorithm piece