Not correct transparent textures in GL_POINT_SPRITE_OES

Need help to display a particle in 3D!
Correctly handle transparent textures of particles in GL_POINT_SPRITE_OES only when enable GL_DEPTH_TEST and glDepthFunc (GL_ALWAYS) or when the disable GL_DEPTH_TEST, in other cases, the transparency does not work well, but I am interested to work properly transparent particles enable GL_DEPTH_TEST and glDepthFunc(GL_LESS). tried different options glBlendFunc not help. 'll Show how to do? or where to see the source? I studied library OOLONG for the iPhone but there is an example where enable GL_DEPTH_TEST and glDepthFunc(GL_ALWAYS).

If you need particles to properly occlude each other (for many types of particles that’s not necessary, by the way), then you need to sort them back-to-front. OpenGL ES does not provide an automatic way to do this.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.