Archived

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

billybob

point sprites usage?

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