Page 1 of 1

octane hair random color

Posted: Tue Mar 29, 2022 1:20 am
by juliancheung
how to render random color on hair? i try many ways, i downloaded this project(viewtopic.php?f=30&t=68785),but i got the wrong result.

Re: octane hair random color

Posted: Tue Mar 29, 2022 2:34 am
by jayroth2020
Try this — its a little bright, but just replace the gradient with something more preferable. For more realistic hair, use the Melanin and Pheomelanin inputs, described here: https://docs.otoy.com/cinema4d/HairMaterial.html
Random_Hair_Gradient.png
Random_Hair_Gradient_Nodegraph.png

Re: octane hair random color

Posted: Wed Mar 30, 2022 2:00 am
by juliancheung
i have try you way to this but the result is not great.

Re: octane hair random color

Posted: Wed Mar 30, 2022 2:03 am
by juliancheung
i want the result like this. this picture not use the hair, but i want hair can make this result.

Re: octane hair random color

Posted: Wed Mar 30, 2022 2:34 am
by jayroth2020
Remove the W Coordinate node from the setup then. That will force the hair to be the same color along the entire length.

Re: octane hair random color

Posted: Wed Mar 30, 2022 4:47 am
by juliancheung
it still dosent work.

Re: octane hair random color

Posted: Wed Mar 30, 2022 7:56 am
by bepeg4d
Hi,
Random-Color node works with render-Instance objects, not Hair.
Try to replace it with a simple Octane Noise (Perlin).
The Hair are taking the color from the root.

ciao,
Beppe