Skip to content Skip to sidebar Skip to footer

Drawing Many Textured Particles Quickly In Opengl Es 1.1

I'm trying to render some particle effects in Android using OpenGL. Each particle will be a billboarded textured quad and each particle is rendered with a rotation (i.e. around the

Solution 1:

Random idea. May or may not work well. Use one draw call, or at least batch particles together into groups (say, 32 per group). You can construct every group per frame on the CPU and then send it down. Just construct one big array with GL_TRIANGLE_FAN (IIRC you an "terminate" fan by adding the same vertex twice).

One of the challenges, I believe, is to create this buffer. Is this Java or JNI? Are you using a java.nio buffer? From what I read in the forums, modifying those buffers in Java can be terribly slow. (Btw - I'm not that familiar with the internal buffer handling on Android, you may or may not need to double-buffer them.)

Post a Comment for "Drawing Many Textured Particles Quickly In Opengl Es 1.1"