PDA

View Full Version : Animated colors along a spiral?



vector
01-11-2016, 02:33 AM
Hi

I guess it's a node related answer, so I need help. How could I get diferents colors running along a spiral shaped cylinder using a gradient?

pinkmouse
01-11-2016, 04:16 AM
I suspect the new IFW2 Remap node is exactly what you want:

http://forums.newtek.com/showthread.php?147479-IFW2-Textures-Update-v2-4&p=1461541&viewfull=1#post1461541

vector
01-11-2016, 05:00 AM
Thanks, pinkmouse

D'OH! If using an image: UV Cycler http://forums.cgsociety.org/archive/index.php?t-241660.html

pinkmouse
01-11-2016, 05:06 AM
You didn't mention an image! :D

vector
01-11-2016, 05:15 AM
:) Sure!! That's why I say 'if using an image' because I was playing with it while waiting for a gradient way. UV Cycler would be another way/technique if anybody wants to play with it


But gradient is my first option

JoePoe
01-11-2016, 08:19 AM
Make a UV with UV Creeper and a gradient will work great!

JoePoe
01-11-2016, 10:09 AM
Two things.

1) Apparently UV Creeper is broken in 2015. Which really really sucks.

2) UGHHH! Where's my brain!? Use a weight map. I made my spiral with Weight Extend so it was already there :foreheads.
If you need to make one use Weight Outward. Super simple to use. Animate key position/color etc.


131849

Edit: Sorry, you said spiral.

131851

vector
01-11-2016, 09:10 PM
It works, thanks. The only thing I forgot to say is those colours are animated. You know: red dissapears on the top=appears again on the bottom...

Sorry...

Shiny_Mike
01-12-2016, 03:42 AM
Maybe try taking your gradient and set "Pre" and "Post" to repeat. Tick "Show output" checkboxes on all keys. Then, write down the values for the keys in the gradient, add some Constant->Scalar nodes (one for each gradient key), and paste those values into the Scalar nodes. Add one more Scalar node to control the movement with an envelope, maybe set it to go from 0.0 at frame_0 to 1.0 at frame_40 (to start). Add in some Math->Scalar->Add nodes, one for each gradient key. Then plug the output of each key to one of the Add nodes, with the other input coming from the enveloped Scalar that controls the movement. The outputs of those Add nodes go into the respective "Key Pos" on the gradient.

Ok, ready back that sounds pretty confusing, so I made a simple box and screengrab for ya, heh!

vector
01-13-2016, 01:48 AM
Thank you, Shiny_Mike!!

JoePoe
01-13-2016, 11:49 AM
Very shiny Mike!! :D

Vector, if you want something very simple you can set one envelope to repeat, as mike said, and then use a channel follower modifier on all the others.
Within the modifier are some basic controls to vary timing and such. quick example: https://www.youtube.com/watch?v=1W4w3dtAbyY

Also... watch Pinkmouse's video here (https://www.youtube.com/watch?v=6sDFJ3Spo1A) about controlling gradient node positions with time itself via DPkit. I recommend to whole vid but at 8:00 specifically

pinkmouse
01-13-2016, 02:19 PM
Ooooh! I've never been cited before! :D