Sign in to follow this  
DvDmanDT

Point sprite problem

Recommended Posts

DvDmanDT    1941
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

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