Jump to content
  • Advertisement
Sign in to follow this  
Headkaze

Particles, point sprites and quads

This topic is 3623 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!