Jump to content
  • Advertisement
Sign in to follow this  
tokaplan

Point sprites

This topic is 4689 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

Hi everyone, I'm using point sprites to render a particle system. The problem is that when the system is close to the camera the size of point sprites stops increasing having reached some value. I guess there's a GPU limit for point size. Is it solvable? Or should I just switch back to traditional quads? Thank you

Share this post


Link to post
Share on other sites
Advertisement
You could try D3DXSprite as a third option. It doesn't seem to share the point sprite's scaling problem, and gives you extra functionality such as automatically batching and sorting sprites by texture or depth.

Share this post


Link to post
Share on other sites
My primary objective is performance and I don't need to sort sprites or anything like that. As far as I know, D3DXSprite just creates quads so I might as well do the same myself.

Share this post


Link to post
Share on other sites
You can do that if you like, but the reason for D3DXSprite is to avoid having to go through all that effort. It performs very well, and for particle systems you generally should sort particles from back to front. It helps to avoid certain depth-buffer/alpha-blending problems that are common in particle systems.

Share this post


Link to post
Share on other sites
Hmm... Which problems are you referring to exactly? I just blend the particles in arbitary order with z-buffer test turned on and z-buffer writing turned off. It looks very well so far, I don't see any problems with this. Of course, I draw opaque geometry before I draw particle systems.

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!