Niagara / unreal GDC

Rotating copies around an arbitrary axis:

https://vimeo.com/268548073

I also need to start offering more explanation in my videos. I feel I’m presenting Niagara in a way that seems very different from Cascade. I don’t want people to get the wrong idea about its true purpose and my twisted usage of it.

https://www.youtube.com/watch?v=B-jeXkpwtU4

^ some of that in Niagara for sure.

1 Like

Just started with Niagara just a couple days ago… learning curve is a b***** but it seems well worth it! I hope to post some vids to the same quality as Mr.Cannabis in the near future!

Also, if anyone could help me find ways to digest data from audio tracks, that would be much appreciated!

Already sent you this info to steyrboy, but posted here in case anyone else is interested.

The Niagara team said they plan on releasing an audio data interface but that it likely won’t be available until 4.21. (If I remember correctly, don’t quote me.)

If you’re not willing to wait, there are a number of options:

  1. There are plenty of data interface examples in the source, so you could write your own to support audio. (Waste of effort if it’s coming down the pipe already.)
  2. Use the experimental Backchannel class to feed OSC messages from external DAWs. This seems like a better alternative than the older OSC community plug-in. I did a ‘hello world’ test using this plugin a while back but haven’t coupled it with Niagara yet.

Once OSC is hooked up, you can use your iPad to control parms.

  1. Use the new audio engine to drive values on a (Niagara) System which forwards those values to the Emitter.
  2. Use Houdini CSV to export FFT results to curve?

In other news, I’m looking for a part-time gig. I need a 2nd job to make ends meet. Sadly, not much of a market for making weird things. :slight_smile: But if you know of something that might be a good fit, send me a PM. Cheers!

1 Like

I received your message, thank you!

I can try the Houdini/CSV route. Is there no easy way to access things like Emitter.NumInstances in Blueprint? If not, I’ll just fake it for the time being.

Spline is easily the most crash-prone module I’ve encountered. It took FOREVER to get this simple thing working.

https://vimeo.com/272309832

4.20 Preview 1 is out.

Niagara is now available as Early Access. This means that we are far enough along in development that we want to share it with our customers and get as much feedback as possible before it becomes a standard engine feature.

  • Redesigned User Interface
  • New Modules. All of Niagara’s modules have been updated or rewritten to support commonly used behaviors in building effects for games.
  • GPU Simulation. We now have GPU simulation working on DX11, PS4, Xbox One, OpenGL, and Metal. Vulkan and Switch are currently not supported.
  • CPU Simulation & Compilation. CPU simulation should work properly for PC/PS4/Xbox One/OpenGL (ES3.1)/Metal. Vulkan and Switch are currently not supported.
3 Likes

Is there functionality inside niagara to make one system spawn particles at another systems particle position right now?

I was able to spawn particles from particles by adding a location event module to the first emitter and then a event handler to the second emitter. The event handler needs to be set to Spawned Particles execution mode and have a receive location module attached to it. So that works for two emitters in the same particle system. I’m not sure if you can have one particle system communicate with another particle system.

3 Likes

Would it be ok to post Niagara questions in this thread?
It would be nice to have a central place to keep the knowledge.

@cannabis.cod3r Great intro tutorial video! It brought me here. :slight_smile:

One example of some initial confusion that your video got me past: It was not obvious to me at the start that you needed to “Make new” variables everywhere. My initial impression was that variables that should be in scope should show up in a list to select from.

But, the real reason for me posting this is to ask if anyone has any insight into how/when we can access a DataInterface for sampling Textures/RenderTargets? It’s not there right now in the preview, as far as I can see. Can we expect to see it soon or might it be worthwhile to hack together at home?

1 Like

Texture Data Interface is in progress. No ETA but I have seen a working version on Olaf’s machine :slight_smile:

3 Likes

Please describe the sequence of the creation of the event and transfer it. It is desirable with pictures. Please

Hello RT VFX guys,

Now, we can get 4.20 preview 2! :smiley:
I did a function test,
UE4 Niagara Morphing Test (Particle Position)

  1. Get position through Static Mesh Location Module.
  2. Store added curl-noise for the first mesh.
  3. Blend 3 stored particle position using Lerp.

I understand it isn’t smart way, just functions test. :sweat:
But I’m pretty sure Niagara is really powerful FX tool!

10 Likes

Hey Braen, maybe you sent message on youtube. I hope the below would be an answer for your request.

I set 3 particleposition on this module, then made curve like this figure,
MS-Morph1-Module

Here is module script for morphing. ( on particle update.)

And here is the module script that can get final position. It just modified stuff of Static Mesh Location.(on particle spawn)


(Hmm, could we make a module script that has 2 sampled mesh??)

So, the below is better way. It just need to store final paticle position in advance. very simple.



I want to know much better way, do someone give us suggestion?

1 Like

Hi Braen,

like this?
https://www.youtube.com/watch?v=WmhHZ9t91Ks

You need to attach Generate Location Event on Particle Update of parent emitter, also add Event Handler Properties on Event Handler of child Emitter. Then you have to chose parent emitter at ‘Source’ on Event Handler Properties.
Receive Location Event is optional module.

I am not sure why it has leaked smoke particles on the world center. :confounded:

Functions test,

Getting Actor Position, and using that as force center.
When player makes impact ( with sample cascade explosion), noise strength and range multiply by 10.
Definitely it works.

Some modules don’t work for GPU for now such as Mesh Location, is it correct?

2 Likes

That is correct. We’ll be equalizing functionality between CPU and GPU over the next few months.

3 Likes

Cool, I can’t wait.:grin:

MeshMorph

I’ve got some simplified, and hopefully easy to digest info on how to create something similar to what @Wataru has created. I’ll be using simple shapes, and no fancy meshes… but feel free to replace with what you want. This is meant for people who are fairly new to Niagara (like I recently was) but will require a little bit of know-how from toying around beforehand.

Before adding the stuff below, there are a few basic things you want to do like turn off the Spawn Rate module and replace with a burst emitter with the amount of particles you want. Remove the default forces that are applied to the Update and Spawn modules (but keep “Solve Forces and Velocity” module for Curl Noise). Add your Curl Noise Force to the Update module and make sure it works before you add all the stuff below. I’m using a lifetime of 4 seconds and size of 1 for all particles.

The first thing to do is add the two Static Mesh variables you wish to morph from, and to, labeled Particles.StaticMesh1 and Particles.StaticMesh2 below (using the + in the top-right of this field) into your emitter. Also add the Particles.NewCurve (Will show as “Curve for Floats” in context menu… also, bad name, I know) and Particles.StaticMesh2InitPos variables. Once those variables are created, drag the NewCurve, StaticMesh1, and StaticMesh2 variables into the “Set Variables” module under the Particle Spawn category (blue arrow). The category header will be outlined with a green dotted box while dragging. You can now access these variables in your Niagara Module Scripts (don’t forget to set your meshes after adding).

Below is a screen-cap of my Spawn script. This is simply assigning a random point on a tri to spawn on initially for each particle (Particles.Position). It is also saving off a random point on a tri of the 2nd mesh that we will lerp to in the Update module using the Particles.StaticMesh2InitPos variable that was created in the emitter. Note: Even though you created these variables in the Emitter already, they will not show up automatically and you will have to expand the “Particles” category, click “Make New”, then select the correct variable type (in this case Vector and Static Mesh) and assign it the exact name as listed in the emitter. Use the + at the bottom to make these variables. This will need to be done on the “Map Get” as well as the “Map Set” nodes.

My update module script is fairly simple, it is just lerping the particles from their current positions (Pin A) back to the stored location set in the spawn module (Pin B) based on their normalized lifetime (Pin C). The following curves and their timing are important, as I am triggering the Curl Noise Force to eject the particles away from their initial position in the emitter, then the update script will lerp them back to their new home after using the “NewCurve” data.

The screenshot below shows the Curl Noise Force module and the curve I’ve added to briefly add force. Take note of the timing on the top of the curve, and the force value on the left side.

If you don’t know how to add a curve, click the triangle below and select “Float From Curve”

image

This “NewCurve” drives the lerp in the Update module to send the particles back to the stored locations we set in the Spawn module.

I hope this info helps newcomers to Niagara. If this is too confusing I can just make a video walking through all the steps from beginning to end. I’ve also added my end-result assets to the link here for anyone to toy around with:

10 Likes