I have a question with alpha blending in openGL…
I’ve tried some stuff for drawing transparent objects… I’ve seen a nice (ideal) result by disabling GL_DEPTH_TEST before drawing the transparent faces and re-enable GL_DEPTH_TEST again back after drawing the transparent face…
Obviously I’ve noticed that depending on the order that I draw the different faces I got a result or another…
However I’ve decided simply to draw solid faces first with GL_DEPTH_TEST enabled and after the transparent faces with GL_DEPTH_TEST disabled…
So, obviously if I draw transparent faces with GL_DEPTH_TEST disabled I see transparent faces which are inside, (for example a cube), then
So, my question is… Is this correct? Does OpenGL have a “magic” way to order the opaque and transparent faces automaticly?
Despite it is not the ideal result I got nice results by drawing first opaque faces and then transparent faces…