Skip to main content
gamedev.net
🔒 Locked

D3DXSPRITE Problem

Started by CastorX 3 replies 700+ views
Original Post
CastorX
CastorX
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
jamesw
jamesw
What are the symptoms? A screenshot would help.
CastorX
CastorX
www.fexsoft.fw.hu/PROBLEM.PNG
Armadon
Armadon
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...

Flimflam
Flimflam
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..?

Topic Locked

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

Sign in to reply to this topic.