Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a sample code for particle explosion here. I tried to move the camera away and zoom explosion 10 times. This is my code. In my code I changed following:
In class ExplosionParticleSystem.cs. I changed:

settings.MinEndSize = 700;
 settings.MaxEndSize = 1400;

In class ExplosionSmokeParticleSystem.cs. I changed size:

settings.MinStartSize = 70;
 settings.MaxStartSize = 70;

 settings.MinEndSize = 200;
 settings.MaxEndSize = 400;

And class Game1.cs. I changed the camera position:

Matrix view = Matrix.CreateTranslation(0, -25, 0) *
                     Matrix.CreateRotationY(MathHelper.ToRadians(cameraRotation)) *
                     Matrix.CreateRotationX(MathHelper.ToRadians(cameraArc)) *
                     Matrix.CreateLookAt(new Vector3(0, 1000, -cameraDistance),
                                         new Vector3(0, 0, 0), Vector3.Up);

The problem is when I zoom it up.The explosion was drawn worse. You can see when you run my code.Have any solutions for this problem??
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900