Is there a way to stop the time node when it reaches the period time? I understand I could have a blueprint update a scalar parameter with time but this time node is more convenient for my goal. How do I stop the Time node from looping?
Finally an explanation on what this node actually does. I didn't know if the value looped, or infinitely went up or whatever but now it makes a lot more sense with whats actually coming out of that node. Got a small problem. I'm using a material to animate a flipbook for a widget animation on one of my UI widgets. I need to be able to tell the animation when to start and stop it when it ends. I've got my flipbook set up and I'm using Time to get my image index of my spritesheet. Only problem is I'm not sure how I can use some kind of parameter to basically reset the time variable to play from the start, so when I need to show it, I can reset the time output value and set my image as visible in my widget. Any ideas on how to do this?
Thx, a great addition to this I think would be how to control the minimum of the cycle. Starting from 0 isn't always ideal. To go off your example, it would be a nicer glowing effect if it started at say .5 and furthermore if you could made SINE cycle only between .5 and 1. You could use clamp and set a floor, but that floor would remain a constant value until the timer surpasses it causing a frozen effect... maybe its just some maths to do this but I am terribad at that.
I actually just figured out quite a bit. Add debugtimesine node to your mat BP and then double click it and play around and look at the preview and you'll start to understand the sine more. So in my case I wanted a bright, slightly strobing light, but not fading out. I did: time > linearsine > constantbiasscale > output hold 1 and click the graph to add a constant, you can connect this to the sine "period" pin. Navigation of the sine wave is faster over 1 and slower under 1, affecting the speed of lighting change. Also you can attach a static boolean to "-1 to 1" pin to decide whether it cycles 0 to 1 or -1 to 1. You can double click on linearsine itself and see how the spaghetti code works if you dare. :) You'll find that setting 0 to 1 setting is done thru the constantbias node. Why I used it within the function and then again after the function, I can't wrap my head around, but it works how I need it.
thanks to MrFantasticGhost who share the link to this great channel , I'm going to watch all these videos :) , thanks Mathew Wadstein for your great work .
More than likely you would use something like a Material Parameter and just change it from a timeline, delay, or something else that runs over time. The Material Parameter would just be the color you want to change in the material.
I guess it would just depend on what you are trying to accomplish. Is this like a rainbow fading effect or is it just one color to the other without any overlapping or blending? IF you have some more info on what you are trying to accomplish I can try and come up with something that might work.
Is there a way to stop the time node when it reaches the period time? I understand I could have a blueprint update a scalar parameter with time but this time node is more convenient for my goal. How do I stop the Time node from looping?
Finally an explanation on what this node actually does. I didn't know if the value looped, or infinitely went up or whatever but now it makes a lot more sense with whats actually coming out of that node.
Got a small problem. I'm using a material to animate a flipbook for a widget animation on one of my UI widgets. I need to be able to tell the animation when to start and stop it when it ends.
I've got my flipbook set up and I'm using Time to get my image index of my spritesheet. Only problem is I'm not sure how I can use some kind of parameter to basically reset the time variable to play from the start, so when I need to show it, I can reset the time output value and set my image as visible in my widget. Any ideas on how to do this?
May you find the solution after two years but I would use set parameter inside a blueprint class with a timer.
Thx, a great addition to this I think would be how to control the minimum of the cycle. Starting from 0 isn't always ideal. To go off your example, it would be a nicer glowing effect if it started at say .5 and furthermore if you could made SINE cycle only between .5 and 1. You could use clamp and set a floor, but that floor would remain a constant value until the timer surpasses it causing a frozen effect... maybe its just some maths to do this but I am terribad at that.
I actually just figured out quite a bit. Add debugtimesine node to your mat BP and then double click it and play around and look at the preview and you'll start to understand the sine more. So in my case I wanted a bright, slightly strobing light, but not fading out.
I did:
time > linearsine > constantbiasscale > output
hold 1 and click the graph to add a constant, you can connect this to the sine "period" pin. Navigation of the sine wave is faster over 1 and slower under 1, affecting the speed of lighting change. Also you can attach a static boolean to "-1 to 1" pin to decide whether it cycles 0 to 1 or -1 to 1.
You can double click on linearsine itself and see how the spaghetti code works if you dare. :) You'll find that setting 0 to 1 setting is done thru the constantbias node. Why I used it within the function and then again after the function, I can't wrap my head around, but it works how I need it.
remember trigonometric equations? " A + Bsin(Cx+D) ". Thats how you control the limits between 0 and 1!
thanks to MrFantasticGhost who share the link to this great channel , I'm going to watch all these videos :) , thanks Mathew Wadstein for your great work .
Doesn't it get "overheated" when you have like 4 hours of gameplay? Imagine the size of the number that is doing all the math for the material!
want emisive 8 colors to loop one from another, how to do that?
More than likely you would use something like a Material Parameter and just change it from a timeline, delay, or something else that runs over time. The Material Parameter would just be the color you want to change in the material.
well i done with multiple lerps but still isnt that good..
I guess it would just depend on what you are trying to accomplish. Is this like a rainbow fading effect or is it just one color to the other without any overlapping or blending? IF you have some more info on what you are trying to accomplish I can try and come up with something that might work.
LED strip behind white glass
you can setup time node into sine, then put that into hue, value with a default input of a 3 vector 1,0,0
Hi , how do i syc time serveur to clients ?