Niagara / unreal GDC

Yes I have Persistent IDs checked in the Color to Space project. But note, I have found errors in the fMod output itself.

Check the second part of my first post, I made a very basic script that just fMods 2 numbers and I still get the errors, even when I DO go back and check Persistent IDs. I just tried that out.

We have also see some bugs with FMod. We have a JIRA in to investigate and fix.
Though so far Iā€™ve only seen it on console and was assuming some optimization differences in the compilers.
Are you on Win64 here? Development or debug build?
Can you try a broken emitter in debug and see if that works? I still think it will be down to some optimization bug.
Could you also send me the assets youā€™re using?

However, looking more closely, in this case I think youā€™re falling foul of other issues.
ExecIndex != ArrayIndex. Nor is it persistent across frames for particles.
Checking ā€œPersistent IDsā€ will not make ExecIndex persistent across frames. It will create a Particles.ID payload which is persistent across frames.
The reason for the discontinuity at index 128 in your first post is because there is a disconnect :slight_smile:
On the CPU particles are handled in chunks of 128 and can run on different threads at different times.
Leading them to be in the actual buffer in places that donā€™t match their exec index.
If you also output the exec index to the particle payload I expect youā€™ll see the results you want.
If youā€™re still seeing issues, please can you give me a similar output but with exec index and the mod result displayed?

https://youtu.be/ArlJjkILxAU

1 Like

Cannabis.cod3r - This worked! Thank you. !Every time! I think I can skip a vid and go to the next I learn better :).

Simon_Tovey
Thank you as well, your explanation makes sense.

1 Like

Sorry to say, I cannot figure out how to set a dynamic material in Niagara to begin with, that can be driven by the dynamic material parameters. For Cascade I believe I could simply create a dynamic instance material in blueprint and set it on the particle system, but this approach does not seem to work in a similar way for Niagara.

Any pointers would be appreciated!

Iā€™ts actually pretty simple, you just need a material with the Dynamic Parameter node in itā€¦ The Dynamic Mat Params module in your Niagara Emitter, and then make sure your material is applied in the emitter. The Dynamic Mat Params module will throw errors if you have a material applied that does not have the correct Dynamic Parameter node within.

1 Like

Ahh! Many thanks! :slight_smile:

Also keep in mind too that Niagara supports 4x4 dynamic parameters. So thereā€™s an additional setting in the material node Dynamic Parameter where you have to set an index from 0 - 3.

dp_index

The namespaces for these are Particles.DynamicMaterialParameter0 - ā€¦1 and are Vector4ā€™s, so just set them with Set Variable module for instance.

Also, you can make sure they are linked under ā€˜Bindingsā€™ in the Renderer section.

3 Likes

I noticed you could add 4 modulesā€¦ seems a bit overkill :wink: but nice to have regardless.

Sure! Bunch of times working in cascade i wished I had more! We can even send in additional colour info. Before I tricked myself around the limit with hue shifting, but now I can just straight up send several colours at once! I love this addition, personally.

My first tutorial with links to files.

https://youtu.be/-7thw4yUByE

6 Likes

Hello guys, i am new in this forum and in Ue4 (Niagara). I did something whit niagara (a black hole circle), but i want ask on you guys if you know about the Liquid effect. Precisely on the foam (i need to replicate this image). Thanks and good day :smiley:

Soab

My next tutorial ) Simple Emitter with splineā€¦

3 Likes

Thanks!

Now we just need to create swirling splines on the fly using VR controllersā€¦
Iā€™m looking at you @steyrboy :slight_smile:

1 Like

Next tutorial about Ribbons with filesā€¦
https://youtu.be/tP8LgtfThKw

4 Likes

About creation simple track with Niagara component
https://youtu.be/X8kvWS3WY80

2 Likes

Event Handler for create simple tree

4 Likes

Next tutorial about creation 3dGrid and add spline as a attractor) I hope that for someone it will be useful
https://youtu.be/9RmzpsPB2RY

1 Like