ring explosion
ring explosion
hi,
i created a few explosions with the IParticleSystemSceneNode but i have no idea how to create a ring-explosion.
the ring should get bigger.
like an explosion of a spaceship in the space.
i have no idea how to create it.
can you help me please?
Thank You
Edwart
i created a few explosions with the IParticleSystemSceneNode but i have no idea how to create a ring-explosion.
the ring should get bigger.
like an explosion of a spaceship in the space.
i have no idea how to create it.
can you help me please?
Thank You
Edwart
-
dhenton9000
- Posts: 395
- Joined: Fri Apr 08, 2005 8:46 pm
here is particle coordinates calculation:
x=cos(angle)*radius+xcenter;
z=sin(angle)*radius+zcenter;
xcenter,zcenter is your explosion center.
radius is distance from center.you should add to radius every frame(with timer).
angle(in radians, degree*(PI/180)) is in what direction particle will move,make it random.
It is plane movement,if you want to create sphere explosion add y:
y=sin(angle)*radius+ycenter;
thats all..
x=cos(angle)*radius+xcenter;
z=sin(angle)*radius+zcenter;
xcenter,zcenter is your explosion center.
radius is distance from center.you should add to radius every frame(with timer).
angle(in radians, degree*(PI/180)) is in what direction particle will move,make it random.
It is plane movement,if you want to create sphere explosion add y:
y=sin(angle)*radius+ycenter;
thats all..
-
Guest
-
dhenton9000
- Posts: 395
- Joined: Fri Apr 08, 2005 8:46 pm
its only more efficient if you know how to do it, which I don't. I go for cheap. I got the animation off the Blender site, output it as pngs (for transparency) and was blowing things up within 30 minutes.GFXstyLER wrote:hi!
to dhenton:
isnt it more efficient to scale the "explosion ring" bigger in a loop instead of having 48 pictures of an explosion ring where each one is a little bigger? just a suggestion.
bye!
As they say in the trade, get it fast, get it cheap, get it right, choose 1 of 3.
-
dhenton9000
- Posts: 395
- Joined: Fri Apr 08, 2005 8:46 pm
The animation is at:
http://www.s-fonline.com/webhosting/dhe ... ssdemo.zip
Inside this zip is a folder called assets\explosions. Thats where the images are. If you run the exe you can see it working (sort of things bounce around so you won't get a good look at it)
http://www.s-fonline.com/webhosting/dhe ... ssdemo.zip
Inside this zip is a folder called assets\explosions. Thats where the images are. If you run the exe you can see it working (sort of things bounce around so you won't get a good look at it)
-
dhenton9000
- Posts: 395
- Joined: Fri Apr 08, 2005 8:46 pm
try
http://s-fonline.com/webhosting/dhenton ... xplode.zip
The source is scattered all over the other zip, but its just a texture animator, which should be in the demos.
http://s-fonline.com/webhosting/dhenton ... xplode.zip
The source is scattered all over the other zip, but its just a texture animator, which should be in the demos.
-
Guest
Pazystamo wrote:here is particle coordinates calculation:
x=cos(angle)*radius+xcenter;
z=sin(angle)*radius+zcenter;
xcenter,zcenter is your explosion center.
radius is distance from center.you should add to radius every frame(with timer).
angle(in radians, degree*(PI/180)) is in what direction particle will move,make it random.
It is plane movement,if you want to create sphere explosion add y:
y=sin(angle)*radius+ycenter;
thats all..
what type of particlescenenode would you use with that? or would you need to put that into a custom scene node to make it work?
thanks

