How does the "Time" node in the material editor work?
I initially thought it 'ticked' inside the material, and that the timer started when the material was spawned, but this doesn't seem to be the case.
What I'm trying to do is have my shield material start playing right when it's created, that way I can delete it after it's finished. How can I do this?
It doesn't matter when I spawn the material, they are all synced up to the same time.
Video to show what I mean:
Ok here is how I would do this. It's a much more literal way of controlling the ring.
First, you use a spheremask to create a gradient for the "Final Size" of your effect. Param "Final Size" defines the size of your ring at its largest, or the end of the animation:
Next, do "1-x" on that SphereMask and then place another spheremask node connected like so:
In this example "Phase" is the parameter that moves the ring along the gradient. It should be in the range of 0 to 1. 0 means the very center of the circle (as a soft dot), and 1 means the outer edge. Phase could either be timeline driven or Time-SpawnTime with a divide for speed and clamp to keep 0-1.
Notice that Phase is multiplied by 1-RingWidth. That is to keep the black area outside of the radius of the initial gradient from turning white when the ring reaches the outer edge (aka phase=1). It's really rescaling the circle by however wide your ring is to maintain the full animation range of the given gradient.
Follow this question
Once you sign in you will be able to subscribe for any updates here