2
$\begingroup$

iam trying to make a procedural ring texture animation, i have managed to make the ring texture but the animation is not infinite. I use the mapping scale values but the textures just scales. Do you have any idea for different set up?

Here is an image of my node set up:

enter image description here

$\endgroup$
2
  • $\begingroup$ why 'modulo'? That only produces a repetition... Do you have any image of what you're trying to achieve? $\endgroup$
    – Secrop
    Apr 10, 2018 at 13:52
  • $\begingroup$ Yes. You can see the effect here:paperjs.org/examples/radial-rainbows $\endgroup$ Apr 10, 2018 at 13:57

1 Answer 1

2
$\begingroup$

After you answer in the comments, here's a simple setup: enter image description here The square root of the dot product is the distance to the center (in this case, the distance to an empty object). Adding some value to it before the module operation will just make the colors to cycle.

Scaling the rings loop is also possible by multiplying the distance with some other value, before the add node. Values less than 1 will produce wider rings, and values bigger than 1, thinner rings.

$\endgroup$
5
  • $\begingroup$ It works, thanks a lot, a small question, how i make it also work for negative values? $\endgroup$ Apr 10, 2018 at 14:54
  • $\begingroup$ plug a math-Absolute node between the value and the add node. $\endgroup$
    – Secrop
    Apr 10, 2018 at 15:01
  • $\begingroup$ I tried it, it just stops and goes from the other side, but i will find it thanks alot $\endgroup$ Apr 10, 2018 at 15:05
  • $\begingroup$ So you want it to start from the center, and then grow into a loop? Then you must use more than just the modulo function... for example: If val<0, then fac=[1-mod(abs(val+dist), 1)], else fac=[mod((val+dist), 1)] $\endgroup$
    – Secrop
    Apr 10, 2018 at 15:47
  • $\begingroup$ I was thinking about something like that.i think know I will check for meatball effect. $\endgroup$ Apr 10, 2018 at 22:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .