I was able to do subdivision on a triangle mesh with midpoints but then I get polygons with too many faces. How do I convert to triangles after?
Similar to this picture:
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.
Sign up to join this communityI was able to do subdivision on a triangle mesh with midpoints but then I get polygons with too many faces. How do I convert to triangles after?
Similar to this picture:
I found the solution.
Each edge in the old model is subdivided and we keep a lookup of the edge to the new vertex it generates. Then we can loop through the triangles and generate the new edges.