Skip to main content
GameDev.net gamedev.net
🔒 Locked

Point Sprites sizing problem ....

Started by keeman Aug 29, 2003 at 11:42 AM 0 replies 300+ views
Original Post
keeman
keeman
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 );

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.