Original Post
Can anyone give me a good well written explanation of the different methods of sorting polygons for an indoor/outdoor based engine? I''m currently writting my own, but im not entirely sure how to group the polys. I see myslef coming across a few different problems.
1 - Which should have priorety? Sorting polys in a front to back order or sorting them by texture/material?
2 - How do I handle polygons that need to be drawn with multiple textures? I considered sorting them by ''materials'' like in 3ds max, where a 3ds max material can have a diffuse texture, bump maps, etc. but even that is complicated to sort.
3 - When I sort would I be better to add all of these polys into an index/vertex buffer that holds the group? And then render the whole group from one vertex buffer? Or should I just make the group class hold a list of structures that tell it which vertex buffers to render from and where to begin and end?
Please help me out with this.
Thanks
~Vendayan