Issue with World Aligned panning Material (solved)

Hey guys,

I need a Material that pans a bar of light from bottom to top of a mesh that ideally shifts its hue when reaching the top. I don’t have any textures, a simple float3 for the colors is good enough.

Right now I have this setup


…and it was what I want it to do, but only in editor.

Here’s the comparison of in-editor vs in-game


After a while, I starts behaving like it should in-game too, so I figured that the Time node needs to go past a certain threshold for this to work but I don’t know what to do to have it function as expected at Begin Play.

Thanks for your input(s) !

Try putting a ‘frac’ here

image

There’s a difference now ( never was in previous engines ) between the time node in material preview, and in game.

The only way I could get around it was by using a parameter, which I set to ‘time - gametime’ via blueprint.

Thanks for you suggestion, sadly the Frac node gives me the same result.
I’ve added 1 to time and now it takes a much shorter amount of time before it starts behaving as intended.

Edit : I ended up adding 40 to Time and this way the proper behavior is on right at Begin Play… Maybe dirty, but it’s worky ! :laughing:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.