godot/scene
Arseny Kapoulkine 18d6ae1161 Fix LOD generation for meshes with tangents & mirrored UVs
When UVs are mirrored in a mesh, collapsing vertices across the
mirroring seam can significantly reduce quality in a way that is not
apparent to the simplifier. Even if simplifier was given access to UV
data, the coordinates would need to be weighted very highly to prevent
these collapses, which would penalize overall quality of reasonable
models.

Normally, well behaved models with mirrored UVs have tangent data that
is correctly mirrored, which results in duplicate vertices along the
seam. The simplifier automatically recognizes that seam and preserves
its structure; typically models have few edge loops where UV winding is
flipped so this does not affect simplification quality much.

However, pre-processing for LOD data welded vertices when UVs and
normals were close, which welds these seams and breaks simplification,
creating triangles with distorted UVs.

We now take tangent frame sign into account when the input model has
tangent data, and only weld vertices when the sign is the same.
2024-07-23 16:35:46 -07:00
..
2d Merge pull request #94147 from MovaUA/fixes/node-configuration-warning-dialog-text 2024-07-11 00:27:39 +02:00
3d Fix newly baked lightmap can't override previously baked at same path 2024-07-23 12:38:20 +08:00
animation Merge pull request #94420 from TokageItLab/player-seek-internal 2024-07-23 13:08:05 +02:00
audio Fix audio samples not being able to be "finished" 2024-07-17 10:45:38 -04:00
debugger Reduce and prevent unnecessary random-access to List 2024-05-04 16:08:55 +02:00
gui Merge pull request #94439 from kitbdev/fix-reopen-hscroll 2024-07-23 15:55:32 +02:00
main Merge pull request #94230 from CrazyRoka/optimize-gdscript-get-position 2024-07-19 11:10:43 +02:00
resources Fix LOD generation for meshes with tangents & mirrored UVs 2024-07-23 16:35:46 -07:00
theme Style: Optimize .svg files with svgo 2024-06-23 08:15:19 -05:00
property_list_helper.cpp Fix a bunch of orphan StringName errors at ProjectSettings/Editor exit 2024-07-09 19:38:52 +03:00
property_list_helper.h Fix a bunch of orphan StringName errors at ProjectSettings/Editor exit 2024-07-09 19:38:52 +03:00
property_utils.cpp Fix storing of Node Array properties 2024-06-21 15:49:48 +02:00
property_utils.h Fix default NodePaths saved in scene 2024-06-03 13:10:23 +02:00
register_scene_types.cpp Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
register_scene_types.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
scene_string_names.cpp [Scene] Add SceneStringNames::text/value_changed 2024-06-19 09:44:38 +02:00
scene_string_names.h [Scene] Add SceneStringNames::text/value_changed 2024-06-19 09:44:38 +02:00
SCsub Add ThemeDB, expose previously static Theme methods 2022-08-26 19:23:05 +03:00