![]()
A VFX Artist I know asked for button to merge emitters in nigara. being unfamiliar I asked him about why? He spends alot of his job as a contractor on Fortnite merging emitters, and would like a button to do it.
Niagara Systems with more emitters tend to be more expensive: Merging emitters is the act of trying to take at least two different emitters and merging them into one. This is accomplished by multiple tools including. partitions,
My solution is fairly straight forward write a set of rules on how to merge two or more of the same modules. each module type has a rule
While working on this I obviously learned alot about how Niagara is structured.
While I think this problem can be solved with one but and rules for how each module merged I think this solution only serves to shift the work load to engineering or tech art. The solution requires a rule for each module which there are many of writing a starting version of this plugin would take a significant amount of time.
Additionally that list of modules can be added on too or adjusted by VFX artist or technical artists very easily. require a new rule or an adjustment to a preexisting tool. This could probably be band aided with more logging and communication to users. But I still don't feel like this is a good solution.
I do however feel like this could be a good place for a Machine Learning Solution
Given Two fairly straight forward emitters an effects artists can merge the two using Spawn Groups and the Partition Module. And with many effects you can get similar visuals while having significantly better performance. The task of merging emitters is tedious and takes longer the more emitters and or modules each emitter has.
A Visual Effects Artist in a conversation told me they wished there was a plugin that could automate the processes. It seemed like a fun project and this is the result. It was a tough problem to solve with the only documentation I could find being the GitHub repository for Unreal Engine. If there's interest I might write a deep dive what a learned and how my process in the future. Additionally, I plan to upload the plugin to GitHub for free.
The effect demoed was made by me using textures created with Houdini, a camera, and some acrylic paint.
![[Portfolio/Projects/DCC-Tools/Unreal-Engine-Niagara-Merge-Emitter/MergeEmitterSnippet_01.png]]
In this high level overview we first need to find the focus Niagara system when any number of editor tabs can be open.
![[Portfolio/Projects/DCC-Tools/Unreal-Engine-Niagara-Merge-Emitter/MergeEmitterSnippet_02.png]]
We then create a new empty emitter to start the merge process, and start looping through every selected emitter in the system and adding their modules to it through a rule dictionary.
![[Portfolio/Projects/DCC-Tools/Unreal-Engine-Niagara-Merge-Emitter/MergeEmitterSnippet_03.png]]
An example structure of the dictionary used to store the rules.
![[Portfolio/Projects/DCC-Tools/Unreal-Engine-Niagara-Merge-Emitter/MergeEmitterSnippet_04.png]]
Example snippet from the Merge rule used for the Scale Color Module.