Original Post
Hi,
I'm working on this XNA 4.0 Windows based game in which there is a jet flying around the city. What i want to implement are particle systems for when my jet throws a bomb in the city. For now I took a look at tutorials. They are way easy to implement. So i tried to integrate a SmokeParticleSystem derived from DefaultTexturedQuadParticleSystem. The only problem is that I can't see any smoke. I have provided it with a smoke texture. But still im lost. here is what i did in my code:
//Global Variable:
SmokeParticleSystem smokeps = null;
//Load Content Method:
smokeps = new SmokeParticleSystem(this);
smokeps.AutoInitialize(this.graphicsdevice, this.content, null);
//Update Method:
smokeps.SetWorldViewProjectionMatrices(Matrix.Identity, viewMatrix, projectionMatrix);
smokeps.SetCameraPosition(cameraPosition); smokeps.Update((float)gameTime.ElapsedGameTime.TotalSeconds);
//Draw Method:
smokeps.Draw();
I would appreciate your help. =)
Regards,
Rayyan Tahir
I'm working on this XNA 4.0 Windows based game in which there is a jet flying around the city. What i want to implement are particle systems for when my jet throws a bomb in the city. For now I took a look at tutorials. They are way easy to implement. So i tried to integrate a SmokeParticleSystem derived from DefaultTexturedQuadParticleSystem. The only problem is that I can't see any smoke. I have provided it with a smoke texture. But still im lost. here is what i did in my code:
//Global Variable:
SmokeParticleSystem smokeps = null;
//Load Content Method:
smokeps = new SmokeParticleSystem(this);
smokeps.AutoInitialize(this.graphicsdevice, this.content, null);
//Update Method:
smokeps.SetWorldViewProjectionMatrices(Matrix.Identity, viewMatrix, projectionMatrix);
smokeps.SetCameraPosition(cameraPosition); smokeps.Update((float)gameTime.ElapsedGameTime.TotalSeconds);
//Draw Method:
smokeps.Draw();
I would appreciate your help. =)
Regards,
Rayyan Tahir