How to control more than 1 post process material in the PPV?

Hi and thanks for having me,

(not sure if this thread is correctly placed in programming & scripting. If not please feel free to move to where it belongs moderators, thank you)

So here is my situation:

I have 2 materials applied in the post process volume (PPV) which means 2 array elements in section “Rendering Features” → “Post Process Materials”.

(Workflow 1:) From one of my blueprints I set up the first PPV material by having set it up as “Create dynamic material instance”, promoted it to a variable, followed by “Make Weighted Blendable” → “Make Array” → “Make Weighted Blendables” → “Make Post Process Settings” to end up in the node “Set Post Process Settings” receiving the exec node from the promoted “Set” DynMat node and target first person camera from the “Event Begin Play” node.

This I then control with the nodes “Set Scalar Parameter Value” and a timeline to nicely fade in and out in the same bllueprint by using “On Begin Overlap” and “On End Overlap” col boxes. That’s all good and it’s working.

However, I noticed that, whenever I do another setup like explained in “Workflow 1” in another blueprint (eg first person char BP), but for the 2nd material applied in the PPV, it seems things are biting each other and none of my materials applied in the PPV get to work anymore. Let alone the fact that I don’t know how to control PPV material #2 as well.

So my question is how do I need to set things up correctly for both materials to be control-able and how do I control more than one of the PPV materials? In my personal case it’s “PPV material #1” to show water drops when walking under a shower and “PPV material #2” distorting the screen when going under water.

Please let me know if you need more details in case my explanations so far aren’t an easy follow.

In any case I look forward to your responses and your help :slight_smile:

Thank you,
Chris

1 Like

In answer to the part of your question about manipulating more than once material:

MUCH easier than fiddling with nodes within nodes within…

As for the superimposition, you might be able to do it by adding them both the volume, and then fiddling with the blend weight for each.

1 Like

So … did I get that right that material collections are kind of variables that can be accessed from anywhere at any time?

And that, instead of using scalar params in materials I’d just hook up those collections’ “value parameters” up so I can control the values?

1 Like

Yes, you can talk to the materials without needing instances, or fiddling with that PP code.

1 Like

LOL … what the hell … I just tried that out and it all works … without any special setup at all …

Jesus how stupidly simple is that lol

Thanks for pointing me into the right direction :raising_hands:

Edit: Now how do I flag your initial reply in here for being the solution? oO

1 Like

I think it has to be a question, maybe you did this as a discussion?

1 Like

Ahhhhh ok, I see now :slight_smile:

1 Like