Sign in to follow this  
Headkaze

Particles, point sprites and quads

Recommended Posts

Headkaze    607
I have been working on a basic particle system but would like to be able to rotate the particles as well as scale. Point sprites cannot be rotated it seems. So I'm thinking of using quads instead. I'm curious will there be a performance hit going from point sprites to quads? Is moving to quads the only option to have rotating particles?

Share this post


Link to post
Share on other sites
scratt    102
You could in theory rotate point sprites with the texture matrix.
I have never done it, but am going to try that today coincidentally. I am sure the theory is sound.

Another option is to use QUADS, and put them in an efficient buffer format.
Then either draw them from that buffer on the GPU, or with glDrawArrays from a fast client side cache.
I doubt you will notice much performance difference between that and PointSprites proper.

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