Please give me advice if what I think below is right.
Case 1: Environment particle effect (Firework, rain,...)
I think it just like in the Ogre Particle effect sample
Case 2: Fire gun effect
First, create a particle effect that automatically end, like this Explosion effect
Second, restart the effect when needed
Case 3: Blood effect
Imagine you shoot a guy 5 time, it's supposed to have 5 blood effect from this guy. I can't use the restart method in case 2 because restart only do 1 blood effect - still 4 blood effects to go. If I create 5 new blood effects, then I have responsibility to destroy them (or it will consume the memory), but I don't know when the blood effects will end to destroy them. Please give me advice about this case.
Ok, so here is the ideal, we have an array of max blood effect, so each time the guy get shoot, we create new particle system. when it reach max, we delete the old one to create new one. see here.
Ways to do particle system in Ogre
-
- Gremlin
- Posts: 152
- Joined: Sat Aug 12, 2017 4:16 pm
- x 4