2
votes
1answer
243 views

Software rendering 3d triangles in the proper order

I'm implementing a basic 3d rendering engine in software (for education purposes, please don't mention to use an API). When I project a triangle from 3d to 2d coordinates, I draw the triangle. ...
2
votes
2answers
192 views

Drawing multiple triangles at once isn't working

I'm trying to draw multiple triangles at once to make up a "shape". I have a class that has an array of VertexPositionColor, an array of Indexes (rendered by this Triangulation class): ...
6
votes
2answers
2k views

How do you triangulate an arbitrary polygon?

I need to triangulate a polygon for rendering in opengl es on android ( no glu triangulation available) Is there an already known algorithm for polygon triangulation? The polygon can be convex or ...