Jump to content
  • Advertisement
Sign in to follow this  
DvDmanDT

Point sprite problem

This topic is 3628 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 developing a 2d game using MDX for graphics. I'm currently trying to use point sprites for some particle effects, but I'm having problems with the positioning. It basicly seems like they ignore world/view/projection, or rather that they use their own. They act as if they were drawn in screen-space, but with the center of the screen as 0,0. I use ortho projection, can this cause problems? I set the PointSpriteEnable, PointScaleEnable, PointSize, PointSizeMax, PointScaleA/B/C renderstates. Can bad values for these cause problems? Does anyone have any ideas? [Edit] Never mind, it's just me being stupid. I forgot to reset the world matrix after rendering a quad at the center of the screen. [Edited by - DvDmanDT on August 11, 2008 9:58:01 AM]

Share this post


Link to post
Share on other sites
Advertisement
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!