Quote:Original post by YogurtEmperorQuote:How can I tell to directx the rendering order ?
Sort the triangles based off distance from the position of the camera transformed by the inverse of your world-view matrix.
Since you already know how to sort them I don’t why you are asking this, as you already answered your own question and you know how to do it.
Per-triangle sorting has always been the known and common method for solving this problem.
L. Spiro
Hey.... but what does it mean sorting ??? "Just sort the triangles" is not an answer to my question ^_°
I have a sorting algoritm, but WHERE and HOW do I have to output the sorted list ?
Quote:Original post by Exorcist
@OP:
You're right, you can just sort the IB. The Index Buffer by definition defines the order in which the verticies are used.
This is a kind of question I was waiting for. Anyway, can I reaily assume that the order of IB determines the actual rendering order ?