Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

billybob

point sprites usage?

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

is it more effficient to use lots of small point sprites or fewer but bigger ones. i want to make trails of dust from cars skidding. i know how to control the location of it, and give it some randomness of movement, but can i set things like the scale of the sprite, the opacity, and the color? or maybe even a tiny texture(8x8 or so)? also, are they automatically blilboarded with teh camera? that would save a LOT of calculations with lots of little dust sprites from the cars.

Share this post


Link to post
Share on other sites
Advertisement
yes you can, try checking out these states

D3DRS_POINTSIZE
D3DRS_POINTSIZE_MIN
D3DRS_POINTSPRITEENABLE
D3DRS_POINTSCALEENABLE
D3DRS_POINTSCALE_A
D3DRS_POINTSCALE_B
D3DRS_POINTSCALE_C

as for the opacity,well, you can change the diffuse color,

Share this post


Link to post
Share on other sites

  • 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!