Panning Material

I have a basic panning material with a parameter to control the speed of the scroll. The idea is to have this material work like a moving belt. When I try to slow it down so it slowly comes to a halt, it doesnt work as intended.

For example, I have the scroll speed at 1. and i set a key to bring it down to 0, the texture scrolls backwards and returns to it’s original position. I kind of understand what is going on here… the UVs are pretty much returning to its original value. How do i make it so it doesn’t move back to origin. Is there a way to simply adjust he speed so it slows down or “pauses” if that makes sense.

I tried adjusting the time value too thinking it would work, but it also behaves the same way as adjusting the ScrollDirection value.

121624-capture.jpg

Thanks for that… certainly a much more simplified way of scrolling. But it seems to be behaving the same way.

So I’m actually controlling the Time Parameter in Sequencer. using a linear curve to bring it from 1 to 0 over 2sec. as i scrub frame by frame, i noticed that everytime it moves a frame forward, It resets the position of the UVs at every frame. Resulting in a very staggered transition to it’s stop.

Any ideas?

This is all you need:

You can replace the time parameter with a material parameter collection, or connect to it trough blueprint.
then just keep increasing the value to make it pan one way, decrease to pan other way, and slow the count down to a halt to make it stop.

(edit, was using the multiply to test,that can be removed)

There is no once lick solution for that. You are not controlling the time value, but multiplying it, thus any subtle change in multiplier will cause inconsistency in your animation. Using time in material is acceptable when you want simple start/stop animations. What Luos posted solves the issue, by allowing you to manipulate time directly. Material work is done at this point and it is up to your blueprint to feed proper value to that Time Scalar Parameter.

Yeah, I managed to get it to slow down using blueprints. But still not working exactly how i wished it to. It pretty much just slows down the scroll and then moves it backwards till it reaches 0 (I’m still a beginner with blueprints) But it managed to get the job done.