Particles, point sprites and quads
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?
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement