Yin Yang FX in UE5 Niagara Tutorial

Yin Yang FX in UE5 Niagara Tutorial | Download Files
Yin Yang symbol made of black and white particles in UE5 Niagara

What is the Yin Yang FX in UE5 Niagara?

This Unreal Engine 5 Niagara tutorial shows how to arrange black and white particles into a rotating Yin Yang symbol by sampling a custom alpha texture across a planar GPU emitter, culling unused particles, and rotating particle positions with quaternions.

Use it for balance powers, martial arts skills, and magic circles, and see the related posts below for more shape effects.

More shape effects: Heart Shape Material · Lightning Ball FX · Rays Material FX

More like this: Unreal Engine 5 is Awesome Part 2 · Unreal Engine 5 | UE5 | Valley of the Ancient First Reaction

How is the Yin Yang FX structured?

The effect pairs planar texture sampling with alpha-based particle culling and a Scratch Pad quaternion rotation module for smooth performance and crisp black-and-white contrast.

Component / StageNiagara & Material SetupPurpose
Planar GPU EmitterGPU local Fountain emitter using a Planar shape (up to 10,000 particles)Spawns dense particles across a flat circular surface
Texture Sampling & UVsYin Yang texture with alpha sampled via Texture Sample 2D from particle positionMaps black, white, and transparent regions onto particles
Alpha Culling OptimizationDeletes particles outside the Yin Yang alpha maskImproves performance by rendering only visible symbol particles
Scratch Pad RotationQuaternion rotation applied to particle positionsKeeps the full Yin Yang pattern rotating smoothly
Material & Twinkle PolishParticle color multiplied by texture color/alpha plus randomized scale twinklePreserves sharp contrast with subtle brightness variation

Yin Yang FX Breakdown

  • Texture Preparation: Prepare a Yin Yang texture with an alpha channel for transparency (created in Photoshop or sourced with alpha).
  • Niagara Emitter & Planar Setup: Create a Fountain emitter set to GPU local for performance, using a Planar shape with up to 10,000 particles and tuned particle size.
  • Texture Sampling & Tiling: Load the Yin Yang texture into a Texture Sample 2D module using particle position for UV mapping, then adjust scale and offset with a float value to control tiling.
  • Material Creation: Build a simple material that multiplies particle color with the texture’s color and alpha so both black and white halves display cleanly.
  • Particle Rotation via Scratch Pad: Use a Scratch Pad module to apply quaternion rotation to particle positions for smooth continuous rotation—more accurate for complex shapes than vertex rotation.
  • Alpha Optimization: Use the texture’s alpha channel to delete unwanted particles outside the Yin Yang shape so only visible particles are rendered.
  • Twinkle & Final Adjustments: Add a twinkling effect by adjusting particle size and uniform scale with randomized speed, then fine-tune spawn rate, rotation speed, and brightness.

Tutorial Access & Project Files

Frequently asked questions

How are particles arranged into the Yin Yang symbol in UE5 Niagara?

Particles spawn in a Planar layout on a GPU local emitter and sample a Yin Yang alpha texture through a Texture Sample 2D module using particle position for UV mapping.

Why delete particles using the alpha channel?

Removing particles that fall outside the Yin Yang alpha mask ensures only visible particles are rendered, improving performance when using high particle counts.

Why does this tutorial use quaternion rotation instead of vertex rotation?

Applying quaternion rotation to particle positions in a Scratch Pad produces smoother, more accurate rotation across complex multi-particle patterns like the Yin Yang symbol.


Discover more from CGHOW

Subscribe to get the latest posts sent to your email.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.