Particle Sprites and Transparency

Started by
2 comments, last by Paul77 21 years, 1 month ago
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
Advertisement
You want to draw your sprites with depth testing?
you got the man ! Unsing blending?

EnableBlend..

glDepthMask(GL_FALSE);

DrawYourParticule...

glDepthMask(GL_TRUE);

DisableBlend...

yeah that works great thanks alot!
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
http://www.8ung.at/basiror/theironcross.html

This topic is closed to new replies.

Advertisement