I have a question about how to proper render 3d objects in a good order. I use blend states to render some 3d models with a transparent texture. This works but if there are multiple alpha objects in the scene it gets messed up because of the seemingly random render order.
Now I ask myself how should I do it?
The first theory I have in mind would be: When I render something I actually don't render it, I just save it in some sort of queue and sort it later at the final end call (expensive because I have to allocate / deallocate memory a lot and sort).
But even with this theory I still dont know how I should sort them. I cant just look how they are positioned because at some times they are kind of in each other so looking for these values would produce in wrong results.
I already guessed that i have to order in the way the camera is positioned or some way.
Hope you can help me