-
Hi, Is meshopt_simplify correctly handling uv seams?
edge 2->5 is an uv seams, so, in the index buffer, triangle A is 1, 2, 5 and triangle B is 7, 6, 8, but the 3D coordinates of points 2 and 7 are identical (and the same for points 5 and 8) thanks for help, and for the nice library. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
What will happen in this case is that simplifier will automatically recognize the 2-5/7-8 edge as a seam, and 2,7 & 5,8 vertices as wedges of a single point. After this it will either always move both vertices along the seam, or move neither. This depends on the specifics of the topology - eg if your geometry is just two quads, then no movement will be performed, but if it's part of the larger mesh, simplifier can reduce the complexity of the UV seam by collapsing edges of that seam. No holes should appear. As for triangle list, this is currently not part of the API. I have a TODO list that I've yet to go through that has this and some other extensions; it's probably not very difficult to hack this up in the meantime... |
Beta Was this translation helpful? Give feedback.
What will happen in this case is that simplifier will automatically recognize the 2-5/7-8 edge as a seam, and 2,7 & 5,8 vertices as wedges of a single point. After this it will either always move both vertices along the seam, or move neither. This depends on the specifics of the topology - eg if your geometry is just two quads, then no movement will be performed, but if it's part of the larger mesh, simplifier can reduce the complexity of the UV seam by collapsing edges of that seam. No holes should appear.
As for triangle list, this is currently not part of the API. I have a TODO list that I've yet to go through that has this and some other extension…