This has literally been plaguing me since December of 2009 on UDK and seems I can’t get past it in UE4 either.
I’m trying to make a tutorial on how to make a fireworks particle system and the most important aspect of it is that the bursts be random colors. However, it is critical that the system choose a random color and then every particle be that same color.
I cannot for the life of me figure out what combination of random seeds, dynamic parameters, dynamic instances, color parameters, hueshifts, scalar parameters…etc…to achieve this. All I can do is two things.
-
Every particle is a random color in a single burst. So it’s a big stupid rainbow of sparkles.
-
Use a parameter collection with 65,536 entries and 65,536 separate materials and 65,536 separate emitters and 65,536 entries in a random switch. (Otherwise all the emitters are sharing the same parameter and swap mid sentence). Sure, I could pick the primary colors and just do 6 copies of all those things, but that doesn’t change the fact that this problem will have defeated me. Much in the same fashion as the waffle house defeats the purpose of the weight watchers clinic next door.
I see that there is a “Set Color Parameter” that you can drag off of a particle system…but what is that tied to? It’s not the particle color in the material. It’s not the dynamic parameter in the material either. I can’t get that thing to affect anything at all.
I can create a dynamic material instance from the spawned emitter but nothing works on that and it doesn’t make any sense anyway because which actual emitter in the system is using this? A particle system can have multiple emitters, all with different materials assigned…how can you determine which of those is what your MID is talking to? Better yet, can you even use MIDs for particle systems? I can’t figure it out.
I would of expected a Dynamic Parameter (SEED) to be the answer here but I cant’ get that thing to do anything differently than a regular Dynamic Parameter. I can tell it to only choose randomly at spawn time, but it’s done at the spawn of every particle in the emitter, so again it’s a rainbow. Not an awesome burst of green, then an awesome burst of blue and then a really uncomfortable burst of pink.
Also, what is that thingie at the top of the Dynamic SEED even doing. The one called “Parameter Name” with all the options like “Get Seed From Instance” and stuff. It doesn’t have any values associated with it. It can create an array of seeds and has a bunch of settings and stuff but none of them appear to be tied into anything at all. I get no change with any of it. It doesn’t tie into anything I can do in the level blueprint and the name I type there seems to just be arbitrarily cast out into oblivion with no reason for its existence…like nipples on a male anything.
So here’s the challenge:
A particle system that randomly chooses a color before being fired off and every single particle that gets spawned uses that same color throughout its lifetime. Multiple spawned instances of the same particle system being fired must be a different random color. Basically, the challenge is make fireworks.
I appreciate any and all help and advice you guys can give me as this has been like my nemesis for far too long now.