Archived

This topic is now archived and is closed to further replies.

Paul77

Particle Sprites and Transparency

Recommended Posts

Paul77    122
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

Share this post


Link to post
Share on other sites
Daivuk    413
You want to draw your sprites with depth testing?
you got the man ! Unsing blending?

EnableBlend..

glDepthMask(GL_FALSE);

DrawYourParticule...

glDepthMask(GL_TRUE);

DisableBlend...

Share this post


Link to post
Share on other sites
Basiror    241
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

Share this post


Link to post
Share on other sites