Game Effects

Niagara Game Effects

I did a little job for a studio in Prague recently which consisted of a series of “spell” effects for a RPG. I can’t show any of those effects of course but along the way I made a number of other interesting little Niagara effects, here are a few:

The images below are a mixed bag, design wise. But they were fun to make. Oddly the brief was to make effects which were baked down into spritesheets, for a mobile release. It was strange, but it did allow me to up some particle counts and rely less on billboards in Niagara. I’m not sure I like the look but it was nice to be able to explore Niagara in this way.

 

 

 

Vector Fields in Niagara

The use of vector fields to set particle velocity is pretty well documented when one is using cascade, but Niagara is still something of a mystery for many users.
 
Vector fields are indeed supported, using the same .fga format, and their capabilities in Niagara are extended in a number of key ways. In Cascade a vector field can only influence velocity directly, but in Niagra support is built in to just as easily use the field to drive acceleration, which can result in a much smoother and more natural motion.
Niagara Vector Fields
 
Furthermore, Niagara’s open approach to, well, everything, allows users to dig in and perform much more advanced effects. With custom modules and a bit of hacking it’s possible to blend between multiple vector fields for instance, or use a vector field to control any attribute such as size or rotation of particles. Epic and Unreal have provided us a playground with a ton of potential.
Niagara Vector Field Stack
 
Here’s an example which barely scratches the surface, but should be enough to get anyone reading a head start into using vector fields in Niagara. In this very straightforward effect a vector field is used to break up the usually spherical shape of a bunch of particles emitted from a sphere by varying their velocities. The result is a more irregular, jagged blast of particles which looks much more natural than a simple firework, and for almost no extra effort.
 
All that was done was to place two pre-made modules in the “particle update” region.
 
The “Sample Vector Field” module specifies the vector field to be used (in this case one of hundreds which I am releasing on Unreal Marketplace, but note there are free vector fields both in Niagara and here on this site). It also has some very nice advanced options allowing you to scale and transform the vector field, fade out the influence by distance and so on.
 
Then the “Apply Vector Field” follows immediately and applies a considerable amount of velocity to the particles every frame. Bang, a nice irregular shaped explosion. That’s really it.
 
To control the effect to a greater degree I took things one (small) step further and created a custom module. I had some particles which were slowing almost to a stop, so I first wrote a simple logic which kills any particle below a user-defined minimum velocity. This however killed some slow particles at the beginning of the explosion I liked, so I added a factor which accumulates a value proportional to the particle’s age (Particles.AccumulatedDeltaTime thanks to a GDC presentation 2018) and used that to specify a user time threshold after which particles could be killed. Here’s a look at the graph:
Niagara Custom Module
 
I could have just as easily tweaked the vector field’s falloff to free up the offending particles, but this custom module is now saved and ready to go any time I need it. SWEET.
 
Niagara looks daunting at first, but it’s really very logical and straightforward, and allows for very deep customization. Vector fields are supported nicely, and have far greater potential under Niagara than the simple implementation in cascade. So don’t hesitate, dive in!

Vector Fields 2

While working on a release of 100+ vector fields for the Unreal community marketplace I built a few handy tools to generate vector fields from curves, surfaces etc, and to blend them with constants, noise, various forces, other vector fields and so on.

For example, here is a vector field using a spherical surface and a “pull” force to create a forcefield effect:

 

While this vector field uses a series of curves mixed with flow noise for a “jet exhaust” effect:

In Unreal a single cascade emitter can use these vector fields and GPU sprites to create a very broad range of looks:

So to celebrate and promote the upcoming release on the Unreal marketplace I’ve generated 10 free vector fields in .fga format for download here. Enjoy!

Vector Fields 1

Writing custom vector fields is pretty easy in VOPs. You can leverage the multiple noise functions Houdini offers, easily create vortices and whirling clouds, and with just a bit more effort bring in curves and use them as paths which the field can orbit around or follow along. Whip up an additive shader and you can get very nice results… or export the fields to use in Unreal or some other game engine. I plan on eventually offering a number of free static vector fields here on the site for game effects artists, but for now here are some basic test renders, cheers.