Polygon Sorting

Started by
0 comments, last by Scooter 23 years, 8 months ago
When It comes to sorting polygons and 3d graphics i''m only a beginner. My problem is that if I try to impliment a simple sort of the average z value of my triangles used to create a 3d cube they are sorted incorrectly at certain points. They seem to be in the right order untill just before they are backfacing and removed completly. When I created a cube using square polys instead of triangle ones the code worked fine. How can i properly sort triangles arranged into a 3d cube ?
We are here just like this,It really doesn't matter why.The world is here like it is,'We could laugh we could cry.Is it good or is it bad,Wright or maybe wrong?There's no use of being sad,Without a purpose within a song.
Advertisement
you''re always gonna have problems sorting just plain sorting by the average z values no matter what.. since you''re a beginner you shouldn''t worry about it to much though, the solutions that let the game run at a reasonable rate can get rather complex

This topic is closed to new replies.

Advertisement