-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve auto lod by comparing every attribute #73734
Conversation
@akien-mga do you think a pr that only increases the minimum to 256 triangle and or exposes the setting would be acceptable for 4.0? |
I don't know, that depends on the scope of the actual change and whether it's tested to fix reported critical issues. |
3ee7c86
to
c968fd3
Compare
2f2a4a6
to
75accff
Compare
IMO this is definitely 4.1 material. LOD changes are support difficult for us to test as the surface area for testing is huge. |
Can this break projects between 4.0 and 4.1? |
353538d
to
271874a
Compare
@clayjohn the only alternative that I can think of is set autolod to off and mark as experimental? |
This fixes critical issues which is why I think it should go into 4.0, otherwise practically every user importing animated models will have broken results. The other alternative as mentioned is to have autolod be off by default and marked as experiment, but in that case then this should also be merged anyway. Testing this is not as complicated as it seems, just need to open a sizeable project (like the TPS demo) and reset the generated autolods and see if the game's assets look ok. |
Out of band conversation. We agreed to have no change. |
c530160
to
5ea6aa5
Compare
Expose minimum_triangle_count and max mesh error property.
I tested this on the TPS demo a few weeks ago and found that this resulted in almost no LODs being generated. Additionally the base LOD had way more vertices. The net effect was that the scene consistently had way more geometry than needed, even if LOD bias was set to always use the worst quality |
Can you provide some test case? |
All I did is re-import the main meshes in the 4.0 branch of the TPS-demo https://github.com/godotengine/tps-demo. You can reproduce my finding with any one of the meshes in the project (i.e. just reimport the robot if you want to save time) |
Thoughts on extracting this pr to add hard overrides to the lod import with minimum_index_count and maximum_mesh_error. |
Sounds like it could be helpful. But we definitely need to investigate a bit more. I have a feeling we should be able to produce better meshes with the default settings. |
I tried a few of the test cases and after the AABB test fixes they're not failing anymore. Can reopen if there's a need. |
Fixes for some of the issues in #57416