Applying random color to generated structure

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

Moderators: ChrisHekman, aoktar

Post Reply
Jugro
Licensed Customer
Posts: 6
Joined: Wed Sep 07, 2016 2:28 pm

Hi guys,

I'm having trouble applying the random color node to generated geometry using sweep nurbs and a tracer.
Please have a look at the attached file.

I want to apply a different color for each generated "cable" but for some reason it wont work as it doesnt generate seperate "objects".
Any ideas?


Thx
Attachments
Octane_Test.zip
(55.3 KiB) Downloaded 170 times
User avatar
bepeg4d
Octane Guru
Posts: 10328
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Hi Jugro,
since the sweep nurbs is a single mesh, the Octane Random color cannot work.
You need also to have the Render Instance option active to make it works properly:
Screen Shot 2017-06-30 at 13.09.13.jpg
Octane_Test_B.c4d.zip
(68.92 KiB) Downloaded 209 times
ciao beppe
mrwig
Licensed Customer
Posts: 23
Joined: Tue May 05, 2015 1:26 am

Is there a way to apply the random color to hair? I remember inlifethrill covering this in a tutorial, but I've followed his method and haven't been able to get it to work.

For reference, I'm trying to apply a random color gradient to the diffuse channel on x-particle trails using the octane object tag with render as hair checked.

I've checked the hair example scenes for version 3.0 and they all appear to use C4D materials to achieve color gradients. I'd prefer to do this with an octane material, if possible.
Multimedia Designer

ASUS Rampage V Edition 10, Intel 5960x @ 4.2GHz, 3x nVidia GTX1080, 64MB 3000 Corsair Dominator, Win 7
Intel 7800x, 16GB Ram, 2x nVidia GTX 1080, Win 7 (Netrender)
User avatar
aoktar
Octane Plugin Developer
Posts: 16063
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

mrwig wrote: I'd prefer to do this with an octane material, if possible.
Use any textures in diffuse of Octane material. It will give colors by taking account from uv coordinates for per hair strands.
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
Post Reply

Return to “Maxon Cinema 4D”