Search code examples
renderingtriangulationdirectx-9

Triangle rendering issue in directX


I am working with directX 9. I have a problem while rendering triangles using drawprimitive.
The problem is - When I am rendering the whole object made of several triangles, the triangle having all points on a single line shows gap in a whole closed object. I am showing the image below. The white dashed line is the problem.

alt text


Solution

  • you have try to order the all points in the object and then go to draw ,You can easily find the problem when draw like this.I think problem in precision varying.Try to check that..

    Regards

    Ratty