virtualx-engine/scene/resources/3d
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
..
box_shape_3d.cpp Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
box_shape_3d.h Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
capsule_shape_3d.cpp Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
capsule_shape_3d.h Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
concave_polygon_shape_3d.cpp Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
concave_polygon_shape_3d.h Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
convex_polygon_shape_3d.cpp Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
convex_polygon_shape_3d.h Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
cylinder_shape_3d.cpp Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
cylinder_shape_3d.h Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
fog_material.cpp Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
fog_material.h Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
height_map_shape_3d.cpp Add HeightMapShape3D update with Image data 2024-04-04 02:10:00 +02:00
height_map_shape_3d.h Add HeightMapShape3D update with Image data 2024-04-04 02:10:00 +02:00
importer_mesh.cpp Fix LOD generation for meshes with tangents & mirrored UVs 2024-07-23 16:35:46 -07:00
importer_mesh.h Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
mesh_library.cpp Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
mesh_library.h Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
navigation_mesh_source_geometry_data_3d.cpp Fix thread-use causing navigation source geometry data corruption 2024-06-21 08:06:14 +02:00
navigation_mesh_source_geometry_data_3d.h Fix thread-use causing navigation source geometry data corruption 2024-06-21 08:06:14 +02:00
primitive_meshes.cpp Use Vector* component-wise min/max/clamp functions where applicable 2024-03-20 13:47:42 +01:00
primitive_meshes.h Expose PrimitiveMesh's request_update` method 2024-03-06 19:18:01 +08:00
SCsub Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
separation_ray_shape_3d.cpp Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
separation_ray_shape_3d.h Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
shape_3d.cpp Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
shape_3d.h Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
skin.cpp Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
skin.h Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
sky_material.cpp Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
sky_material.h Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
sphere_shape_3d.cpp Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
sphere_shape_3d.h Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
world_3d.cpp Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
world_3d.h Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
world_boundary_shape_3d.cpp Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00
world_boundary_shape_3d.h Move 3D-only resources to their own folder 2024-02-26 05:23:04 -06:00