How to Render Per-Frame Segmentation Masks for Niagara Fluid (Smoke) Alongside RGB in UE5?​

How to Render Per-Frame Segmentation Masks for Niagara Fluid (Smoke) Alongside RGB in UE5?​

Hi everyone,

I’m working on a project in Unreal Engine 5 and have run into a challenge that I haven’t been able to solve after considerable research and experimentation. I’m hoping to get some guidance from the community.

My Goal:​

I have a scene with a Grid3D_gas_master_emitter(a Niagara fluid simulation for smoke). I can successfully render a sequence of RGB frames. However, I need to ​simultaneously render a segmentation mask​ for the smoke element for each corresponding RGB frame.

  • Segmentation Mask:​​ This would be a separate image (e.g., a PNG sequence) where the smoke is represented by a specific color or grayscale value (e.g., white, 255) and the rest of the scene is another (e.g., black, 0).