Scaling of the point sprites (Direc3D 9)

Hello, friends. Tell me please what values should ??I set for D3DRS_POINTSCALE_A, D3DRS_POINTSCALE_B, D3DRS_POINTSCALE_? to point sprites scaled just like other objects in the scene. The parameters A = 0 B = 0 and C = 1 (proposed by F. D. Luna) not suitable because the scale is not accurate enough and the distance between the particles (point sprites) can be greater than it should be. If I replace the point sprites to billboards, the scale of the particles is correct, but the rendering is much slower. Help me please because the speed of rendering particles for my task is very important but the precise of their scale is very important too.

Direct3D computes the screen-space point size according to the following formula: [link=][/link] I can not understand what values ??should be set for A, B, C to scaling was correct

P.S. Sorry for my english I'm from Russia

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!