D3DXSPRITE Problem

Started by
3 comments, last by Flimflam 18 years, 3 months ago
Hy! I'm trying to make my particle system's drawing function sprite based with ID3DXSprite, but the final image on the screen is terrible. What's the problem? here's the code: SpriteObject->Begin(D3DXSPRITE_OBJECTSPACE | D3DXSPRITE_BILLBOARD | D3DXSPRITE_ALPHABLEND); ... LOOP ... D3DXMatrixScaling(&Mat1,Particles.Scale,Particles.Scale,Particles.Scale); D3DXMatrixRotationZ(&Mat3,Particles.Rotation); D3DXMatrixTranslation(&Mat2, Particles.Pos.x,Particles.Pos.y,Particles.Pos.z); FINAL = Mat1 * Mat3 * Mat2; SpriteObject->SetWorldViewRH(&FINAL,NULL); SpriteObject->Draw(Textures[Particles.TextureID],NULL,NULL,NULL,Particles.Color); ... LOOPEND
Advertisement
What are the symptoms? A screenshot would help.
www.fexsoft.fw.hu/PROBLEM.PNG
Well other than the background being buggy.. I don't really know what to look for.. make sure that you clear the backbuffer each frame. Other than that I don't really know what to look for...

What is buggy about it? Like the above poster, the particles look fine, but the background is a bit odd... Is the background not supposed to look like that..?

This topic is closed to new replies.

Advertisement