Zylann / godot_tree_generator_plugin

Tool for generating trees in Godot Engine
Other
161 stars 12 forks source link

How do I make less polys? #5

Open Favkis opened 2 years ago

Favkis commented 2 years ago

Awesome addon, but what's up with poly counts? Even bare lowish poly tree gets over 10k fast, and adding leaves makes each tree have 100k polys, is there anything I am missing? image

MGilleronFJ commented 2 years ago

The tree shown on your screenshot seems quite low poly already, they can almost be counted by hand (the leftmost branch has roughly 74 triangles). I dont believe it has 10K triangles. Each leaf is a single quad for now, so if you use one quad per leaf and you use many leaves, that can go up quite fast. A possible technique is to use a leaf texture that contains multiple leaves and thin branches. I think there are also options to reduce number of subdivisions but it might look bad if it's too low. In worst case, maybe you could export the tree so you can tweak it in Blender (might need another addon or export to GLTF). And if you plan to render a whole forest, you may need to bake some LODs and impostors (both of which aren't yet handled in this plugin but can be done with other tools). Where did you see polycount on these details overlay? It only shows drawn vertices, which is how many times a vertex is used in a triangle (the vertex could be shared but will be counted sereval times anyways!) and if your test scene has shadows, it will multiply the amount by the number of shadow cascades, which is not representative of the amount of triangles the model actually has.