Archived

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

Particle Sprites and Transparency

This topic is 5419 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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