Original Post
im trying to render a simple cube composed of 12 triangles. i get the average z of each polygon, then sort these values and draw the polygons in that order. im am not using backface culling (because i want to see if the sort algo works, and if the backfaces were gone, then i couldnt do that.) i wind up with a considerable number of weird occurances where the wrong polygon is drawn first. i have also tried sorting by the minumum z or maximum z of the polygon. is painter''s algo capable of handling a cube? if so, what am i doing wrong? if not, what is a good way to do visibility determination. by good i mean simple (im not too concerned with speed just yet.) it must also be able to handle chancing objects (so bsps are out.)
thanx.
fsb_