Community
Arnold for Cinema 4D Forum
Rendering with Arnold in CINEMA 4D using the C4DtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Color gradient on cloner objects that is NOT random?

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
AJUKking
638 Views, 6 Replies

Color gradient on cloner objects that is NOT random?

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!

Tags (2)
Labels (2)
6 REPLIES 6
Message 2 of 7
lee_griggs
in reply to: AJUKking

Have you tried projecting a Radial Ramp?

Lee Griggs
Arnold rendering specialist
AUTODESK
Message 3 of 7
AJUKking
in reply to: AJUKking

@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.

Message 4 of 7
lee_griggs
in reply to: AJUKking

Can't you create shaders for the pencils (only 20)?

Lee Griggs
Arnold rendering specialist
AUTODESK
Message 5 of 7
AJUKking
in reply to: AJUKking

@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!

Message 6 of 7

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.

Message 7 of 7

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!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report