Particle Sprites and Transparency
Is it possible to create tranparent sprites within a scene without the need for depth sorting evrything?
At the moment am drawing the sprites last with the depth buffer disabled and using blending functions but this doesnt work! anyone have any suggestions?
cheers
You want to draw your sprites with depth testing?
you got the man ! Unsing blending?
EnableBlend..
glDepthMask(GL_FALSE);
DrawYourParticule...
glDepthMask(GL_TRUE);
DisableBlend...
you got the man ! Unsing blending?
EnableBlend..
glDepthMask(GL_FALSE);
DrawYourParticule...
glDepthMask(GL_TRUE);
DisableBlend...
just a tip instead of building an animated sprite out of X images id use a large image to avoid unnecessary texture switching that will increase performance a lot
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement