Hi ,
I am looking for some starting tips and ideas how i can accomplish this .
First of all i have this slized UI image sprite who's height and width might change according to text
its a transparent image with white rectangle
the above image is more like a path for my particle/shader effect to follow .
is it possible to extract a path using above image and make an image or Vfx particle to follow this path ?
i am trying to accomplish this effect in the end
https://gfycat.com/nimbletalkativegermanspanieli want to achive this using shader forge. some starting tips and hints will help a lot
this will be the end result
Replies
what node can be used to make gradient follow this path ?
or are you asking me to make a rectangular gradient ? if this is true will it be continues loop ?
@Obscura thanks i will wait for those steps
I had several problems though, first off all I'm unable to download any of your images so I just used the snipping tool from windows to capture them. Second, a big portion of the grayscale gradient is pure black so there it a little jump in the beginning of the panning. It also isn't linear at all so panning speed varies. The grayscale gradient was supposed to be used as coordinates and when we subtract time from it, it acts pretty much like a panner node but in 1d in this case. Then this is hooked up to the colored gradient. So in short, we are doing gradient mapping here.
Edit - dont mind the cut of the gif.
Now issue is there is too much cutting of the line not sure due to bad gradiant file ?
Also line move very fast on the corners . what do you think can be do to have uniform speed for the line to move around the edges ?
- Then duplicate the two vertices at the edge of each quadrant: 0º, 90º, 180º and 270º. This will make the "straight lines" of the box, that join the round corners.
- All the geometry is made with quads, so you can give them UV coordinates that map them horizontally, so you can use a U-panning texture that will slide along the whole border.
Something like this, but not quite:
https://gist.github.com/olegknyazev/50dbe786ba14ec1a71af801856acaf7e