Niagara Light renderer material

Hello !

I’m using Niagara to spawn particles and I’d like to have a light along them. No problems for that, however I’d like to have some logic on each light particles thanks to a light material. Sadly I cannot see anything in the details one. Is adding a material something possible or is it technically impossible because of the particle nature of the light ?

The videos shows how I’d like to make it works. Data from the fog will be used as a mask for the emitted light.

Thanks for your time, Have a good day!

Hi Jerome,

The light renderer uses simple lights, these have a highly cut down feature set so do not support light functions, shadows, etc.

You should be able to use the component renderer, set the template to the light type you want (i.e. point, spot, etc) and set the material that way. It’s a bit more fiddly to setup as you have to manually setup all the property bindings, but should hopefully work.

Thanks,

Stu

Hi Stu,

So it’s about using a scratch module and doing stuff with it ? (I cannot see anything related to the render component )[Image Removed]Or is it about using a BP event to get the light particle when it spawn and then modify the render ?

Have a good day !

Hey,

It’s a specific renderer type, i.e. component renderer.

Once you add one you can set the component type to PointLightComponent (for example), then bind properties like you see below where I bound the Source Radius to a per particle attribute Light Radius.

[Image Removed]So everything can be done all inside Niagara, you can control pretty much any component type this way. it’s just not as efficient as our native renderers.

Thanks,

Stu

Thank you so much ! As you mentioned the performance is really low but that’s a start to include light to niagara systems with the fog active on them. I guess I can add some code to completely disable the light when it’s to deep in the fog to gain some performance. I was worried about doing this at first as the light would pop in and out without the light function.

Anyway thanks again for your time, have a good day!