I'm basically trying to recreate this image with Arnold in C4D on a cloner: Radial rainbow pencils
Notice how each colored pencil has a color that is one part of the gradient that combines to create a nice rainbow gradient of colored pencils. This is what I want. Unfortunately, I cannot figure out how to do this. The closest I got was Greyscalegorilla creating RANDOM rainbow colors on legos. I managed to produce a random mess via the tutorial with the utility and ramp_rgb nodes where each pencil is just randomly colored like this. I would share a screenshot of my work for reference but Arnold Answers isn't letting me upload/link images right now for some reason ("Error parsing the uploaded file.").
I do not want random. I want a nice smooth gradient created from all the pencils.
How can I do this with Arnold? Thanks!
Solved! Go to Solution.
Solved by peter.horvath6V6K3. Go to Solution.
Have you tried projecting a Radial Ramp?
@Lee Griggs I should probably mention that the cloner objects are going to be animated somewhat complexly and so I think simply projecting a ramp isn’t going to work.
Can't you create shaders for the pencils (only 20)?
@Lee Griggs I definitely can. That was my first idea. I’m only trying this other method now because I wanted to be smart about it and not have to create a whole lot of shaders with only a color correction change on the diffuse color for each. Trying to be efficient but it ironically is causing me to take up much more time!
Check out this thread. Since C4DtoA 2.5.1 you can read the index of the clones via a user_data shader, which you can convert to a [0;1] interval with the range shader and control a ramp.
Thanks, Peter! Your advice was perfect and I've got it working now with just those 3 nodes. The hardest part was figuring out that I had to set the Range node Input Max to the total number of cloned objects in order for any actual color gradient to show up (unless there's a better way to do it?).
That thread contained info that was useful up to a point where I just started to get confused with a lot of stuff. Turns out I'm not very good at creating shaders.
Regardless, thanks again!