friggog / tree-gen

Procedural generation of tree models in blender
GNU General Public License v3.0
827 stars 74 forks source link

Speed up leaf generation using DupliVerts #8

Closed samipfjo closed 5 years ago

samipfjo commented 6 years ago

I was reading through the Sapling source code and noticed something cool; it uses DupliVerts to place the leaf meshes. I haven't tested it for speed, but given that it's a built-in feature of Blender, I'm betting it's faster than the current method.

I don't know if this would be straying too far from the intent of the project (an implementation of code from the source papers), but perhaps it could be provided as a toggleable option? If it is indeed faster, it could make generating conifers more bearable.

friggog commented 6 years ago

This certainly seems sensible, and if I had known about it I would have used it! Definitely give it a go - as you say, I would expect performance improvements and it will simplify the code too.

samipfjo commented 5 years ago

Found a different way to solve the issue in #11