I am trying to draw two triangulated pointclouds, made with ofxDelaunay.
Since I am drawing one and then the other, I think my triangles are overlapping. Should I try grabbing the triangles separately and the sort them, drawing the rear ones first and then the front ones, or should I combine the two meshes so they get all drawn together as a unit. I am worried that the points will not sort properly since they would no longer be in order.
Here is an image that indicates the problem. The chair in the background (blue) is part of the second Kinect point cloud triangles , so it overdraws the first kinect point cloud triangles.
I am colouring the triangles (usually white) before drawing the lines as a way of ‘hiding’ the stuff in the background, but this doesn’t seem to be working either.