Sign in to follow this  
bovinedragon

Particles

Recommended Posts

In a particle engine what is the fastest way to render particles? If the particles are small images, you would have to use two billboarded triangles. Since it is so little vertexes, things like vbo seem like overkill. Is there any way faster than just intermediate mode, or is culling the only way to speed it up.

Share this post


Link to post
Share on other sites
Don't think about individual particles, but about the whole effect (or system). You should try to minimize draw calls by grouping the particles together by type to few batches (In ideal case you would have just one VBO or array with all your particles). The best way to do so is offload the particle calculations to the shaders, you can then pass information about size,color etc. as vertex attributes. If you have multiple textures for particles you should create texture atlas and calculate the texture coordinates in your shader.

Share this post


Link to post
Share on other sites
I do not have a graphics card that supports GLSL, its old :(

that extension looks useful, ill try using that

What kind of culling techniques are there for particles. I would just sort them from to back, and render them in that order. Is that good? Any good articles maybe?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this