octane hair random color

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

Post Reply
juliancheung
Licensed Customer
Posts: 4
Joined: Sun Sep 23, 2018 1:44 pm

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.
Attachments
2022-03-29 091936.jpg
jayroth2020
OctaneRender Team
Posts: 488
Joined: Mon May 04, 2020 7:30 pm

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
Puget Systems / Intel Core Z790 ATX / RTX 4090 / Cinema 4D
juliancheung
Licensed Customer
Posts: 4
Joined: Sun Sep 23, 2018 1:44 pm

i have try you way to this but the result is not great.
Attachments
Screenshot 2022-03-30 094201.jpg
juliancheung
Licensed Customer
Posts: 4
Joined: Sun Sep 23, 2018 1:44 pm

i want the result like this. this picture not use the hair, but i want hair can make this result.
Attachments
Screenshot 2022-03-30 095823.jpg
jayroth2020
OctaneRender Team
Posts: 488
Joined: Mon May 04, 2020 7:30 pm

Remove the W Coordinate node from the setup then. That will force the hair to be the same color along the entire length.
Puget Systems / Intel Core Z790 ATX / RTX 4090 / Cinema 4D
juliancheung
Licensed Customer
Posts: 4
Joined: Sun Sep 23, 2018 1:44 pm

it still dosent work.
Attachments
Screenshot 2022-03-30 124620.jpg
User avatar
bepeg4d
Octane Guru
Posts: 10365
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

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
Post Reply

Return to “Maxon Cinema 4D”