Original Post
Hi! I wrote a system with an effect file. I added a a particle system but I can't see any particles :( I think the problem is that I use an effect file and DX9 want it to render all the scene, is it possible? Like in the DX9c examples I render my objects in this way: m_pEffect->SetTechnique( hRenderScene ); m_pEffect->Begin( &cPass, 0 ); for( p = 0; p < cPass; ++p ) { m_pEffect->BeginPass( p ); for( DWORD m = m_Mesh.m_dwNumMaterials-1; m<10; --m ) { m_pEffect->SetTexture( hTexture, m_texture ); m_pEffect->CommitChanges(); m_Mesh.GetLocalMesh()->DrawSubset(m); } m_pEffect->EndPass(); } m_pEffect->End(); And it works! But when I want to draw a particle I use this function: pd3dDevice->SetRenderState( D3DRS_POINTSPRITEENABLE, TRUE ); pd3dDevice->SetRenderState( D3DRS_POINTSCALEENABLE, TRUE ); hr = pd3dDevice->DrawPrimitive( D3DPT_POINTLIST, m_dwVBOffset, dwNumParticlesToRender) And I can't see any particle! Is there a way to draw particles in the effect file?