View Full Version : fireworks
yihoo86
07-19-2006, 12:58 PM
hi, im trying to simulate a fireworks explosion in which the particles explode in a spherical fashion. I've been using the Mel command's emit function, making the particles explode at the location where the leading particle's velocity reaches zero due to a gravity field. But so far, the explosion is very random and there is no spherical shape that is needed for some of the fireworks effect. Is there anything in MEL script, or some algorithm that could make about 40 particles fly out at the exact same velocity and time, but at different angles from the origin?
sunder
07-19-2006, 01:04 PM
You can make a mel script but before we get to that, did you take a look at the Effects menu Create Fireworks command?
glick_c
07-20-2006, 08:53 AM
when your first particle dies have it spawn another particle. Can you control the second particles emitter? Well, nonetheless the way to make a spherical shape is to set your emiter to very high for one frame then keyframe it to 0. What should happen is you get a large amount of particles going the same speed away from the emitter.
yihoo86
07-24-2006, 02:19 PM
yea. thats a good idea, but the problem is, i need to make a lot of fireworks. so keyframing it would be a huge hassle. my original idea is to have just one emitter shooting out particles, and when those particles reach a y velocity of zero due to gravity, they would emit particles with the emit function in mel script. that way, making lots of fireworks would be very easy. so using mel script, is there a way to make the particles explode in a spherical fashion?
soskeh
08-30-2006, 05:33 AM
hi I'm kinda new but i know what you need to do
1. get your particles to collide withe object
2. set the particle event to Emmet and disappear
3. set the new particles to go in all directions
4. see that the new particles don't collide with the object
5. hide the object and that's all
green
08-30-2006, 07:28 AM
Have you looked at Maya's Fireworks preset? In the Dynamics menu, go to Effects > Create Fireworks. There are tons of options that let you choose the number of Rockets, size of explosion, trail and explosion colors, ect.
It might be a quick way to get the effect you need.