Easimer / trigen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UV unwrapper generates degenerate triangles

Easimer opened this issue · comments

The atlas generator sometimes assigns UVs to triangles' vertices such that the vertices become colinear in UV space.
I think that increasing the number of projection planes used in the unwrapper may solve this problem (use the 14 faces of a tetradecahedron instead of the 6 faces of a cube).
Another solution would be to make another pass on after all UVs have been assigned and detect all degenerate triangles. Put these triangles into their own charts and regenerate all UVs.