Play material effect, stop then repeat

Hi,

I’m pretty clueless when it comes to materials and I’m trying to create a highlight wipe/fade effect on my pickups. Currently it just endlessly loops the effect but I want it to play the wipe across the entire mesh, stop then repeat again so that it’s not a constant effect like the vid

On the pickups I just change the overlay material
image

If it’s a pickup, then it’s presumably a blueprint? It would be easier to control the panning from the blueprint, in that case.

yes it’s a bp but not sure how I tell the bp to change the panner. Generally I’ve been able to change the Dynamic MI but I guess I can’t use something like this? (as it doesn’t work)

Ok never mind I kinda did it😊


The only thing I can’t seem to do is make the fade move in the same direction, any ideas?

Ah, totally different thing :slight_smile:

That all depends on the UV mapping.

If you pickups are all simple things like cubes, then you could just make some new props in Blender, and make sure the UVs are facing the same way.

Another, easier ( maybe ), way, is to use a world aligned material, which doesn’t pay attention to UVs

1 Like

Thankyou. Some are more complicated shapes than others and I’ve had a look at the latter method, seems I’m gonna have to change quite a bit

1 Like

It’s just the material. Gimme a shout if you can’t get it working :slight_smile:

1 Like

I keep get errors no matter where I plug the world aligned texture node

1 Like

Can you show me what you have in the material?

I tried a few things but now i reverted back to the pictures above or here if it’s easier

other methods i saw involved converting the texture sample but that just makes the panner unavailable as far as I can tell.

1 Like

I will come back tomorrow with a world aligned solutuion ( not on a machine rn ).

1 Like

I did the emissive like this

and you get

pickup

But it has the same problem with the cube ( as you can see ). You can fix this, by making the offset a vector 3, then you can choose the direction for each face, but that’s a bit of a pain.

A benefit is it does not depend on UVs, so you don’t get pinching on there sphere

nopinch

It’s really pros and cons…

1 Like

sweet thankyou. Do I remove the panner entirely, what’s the end of this plugged into?
image

1 Like

That end is plugged into emissive. You can make it a function and include it in the materials of pickups.

In the BP, I was just adding 1 to Offset :slight_smile:

1 Like

Brilliant, thankyou. Doesn’t look the best yet but it’s a decent start

Great :slight_smile:

If you increase the UV scale, it should look more like noise, if that’s what you want.

Try 500 or 750 etc.

1 Like

tbh I just want to replicate this from the evil within so I’m not far off I guess

1 Like

Yes, close :slight_smile:

1 Like

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