Random Ribbon Life in UE4 Niagara Tutorial

Random Ribbon Life in UE4 Niagara Tutorial | Download Files
Wings effect made from randomized ribbons in UE4 Niagara

Download – https://www.patreon.com/posts/61529749
Random Ribbon Life in UE4 Niagara Tutorial | Download Files

Random Ribbon Life in UE4 Niagara

This tutorial shows how to randomize ribbon length, life and other properties to build a wings effect in Unreal Engine 4 Niagara, and the project files are available to download.

Use it for angel wings, flowing trails and varied ribbon effects, and see the related posts below for more ribbon effects.

More ribbon effects: Sword Slash · Lightning Ball FX · Attack FX

Video Title: “Randomizing Ribbon Parameters in Unreal Engine | Wings Effect Tutorial”

Script:



[Music plays briefly]


Step-by-Step Tutorial:

  1. Setup and Material Creation:
    • First, subscribe to my YouTube channel if you haven’t already and click on the bell icon for notifications.
    • For this effect, we will use a ribbon emitter. Let’s start by creating a basic effect with a ribbon in Unreal Engine.
    • We’ll also create a basic material for the ribbon to make it visible. I’ll use a simple particle color material, which will make the ribbons bright and easy to see.
  2. Creating the Ribbon:
    • To start, I’ll add an Initialize Ribbon and a Velocity module to control how the ribbon behaves.
    • If you try to randomize the life directly in the Life module, it doesn’t work well. I’ll show you how to fix that.
  3. Randomizing the Ribbon Life:
    • To randomize the life and other parameters, we need a way to vary properties across particles.
    • I’ll duplicate the ribbon emitter and replace the ribbon with a sprite renderer. Then, I’ll set up a particle burst system with five particles, and the particle positions will be fixed to zero initially.
    • To make the spawn locations random, I’ll offset the positions based on the execution index for each particle.
  4. Fixing the Issue with Randomized Particle Spawn:
    • After setting up the spawn, we use a Spawn Particle from Other Emitter module to connect the particles to the ribbon emitter. This will allow us to spawn ribbons from five different positions.
    • To resolve any issues with spawning, I’ll use a Persistent ID and set the particle ID to connect the ribbons properly.
  5. Adding Randomization:
    • In the Sample Particle from Other module, I’ll access the particle ID and use it to create a randomized ID for each ribbon.
    • We’ll create a Scratchpad module to handle the randomness. By assigning each particle a unique ID, we can control the ribbon’s properties like size and life using this ID.
  6. Fine-Tuning the Randomization:
    • Now that we have the IDs, we can use them to randomize the Life parameter and adjust the ribbon’s behavior.
    • We can also use a curve to make the ribbons in the center larger and the ones on the sides smaller, giving the wings effect a more natural look.
  7. Enhancing the Effect:
    • To make the effect look even better, we can add a Velocity Rotator to give the ribbons some movement and make them appear more dynamic.
    • I’ll adjust the Period of the velocity, and by multiplying it with the particle ID, I can add random fluctuations to the movement.
  8. Finalizing the Effect:
    • I’ll also adjust the size of the ribbons and use a curve to control the size and life of each ribbon.
    • Lastly, I’ll duplicate the emitter to create the other half of the wings and adjust the positions and velocities to create a balanced effect.
  9. Connecting the Effect to the Character:
    • To make the wings move with the character, I’ll link the effect to a Third Person Character using the Niagara component.
    • I’ll connect the ribbon system to the spine bone of the character and adjust the positioning so that the wings follow the character’s movements.

And there you have it! You now have a dynamic, randomized wings effect with ribbons. This technique can be easily modified for various effects, and it’s a simple, efficient way to randomize properties like life, size, and velocity.

Frequently asked questions

Why doesn’t randomizing ribbon life directly in the Life module work as expected?

Randomizing life directly inside the Life module does not properly vary properties across individual ribbons. Instead, the tutorial pairs the ribbon emitter with a five-particle burst sprite emitter using Persistent ID, Spawn Particle from Other Emitter, Sample Particle from Other, and a Scratchpad module so each ribbon receives a unique randomized ID for life, size, and velocity.

How are both sides of the wings built and attached to a character?

After shaping one wing with curves and a Velocity Rotator driven by the particle ID, the emitter is duplicated and its positions and velocities are adjusted to create the matching opposite wing. The Niagara component is then attached to the spine bone of a Third Person Character so the wings follow the character’s movement.

Where can I download the UE4 Niagara project files for this wings tutorial?

The project files for the Random Ribbon Life in UE4 Niagara tutorial are available to download on CGHOW Patreon.


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.