Original Post
Hello !
I''m trying to make a particle system using point sprites. Everything goes well except i cannot change the size of the particle. (size between 0 and 1 works but not greater !!!).
Someone got an idea ?
m_pd3dDevice->SetRenderState( D3DRS_POINTSPRITEENABLE, TRUE );
m_pd3dDevice->SetRenderState( D3DRS_POINTSCALEENABLE, TRUE );
// things like that have no effect
m_pd3dDevice->SetRenderState( D3DRS_POINTSIZE, FtoDW(25.0f) );
m_pd3dDevice->SetRenderState( D3DRS_POINTSIZE_MIN, FtoDW(0.0f));
m_pd3dDevice->SetRenderState( D3DRS_POINTSCALE_A,FtoDW(0.0f));
m_pd3dDevice->SetRenderState( D3DRS_POINTSCALE_B,FtoDW(10.0f));
m_pd3dDevice->SetRenderState( D3DRS_POINTSCALE_C, FtoDW(1.0f));
m_pd3dDevice->SetTexture( 0, g_pTexture );
m_pd3dDevice->SetStreamSource( 0, m_pVB, 0, sizeof(CUSTOMVERTEX));
m_pd3dDevice->SetFVF( D3DFVF_CUSTOMVERTEX );
m_pd3dDevice->DrawPrimitive( D3DPT_POINTLIST, 0, 3 );