Display Color to Octane Material?

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

Moderators: ChrisHekman, aoktar

Meshmashuk
Licensed Customer
Posts: 5
Joined: Mon Jan 25, 2016 2:13 pm

Hi there,

I'm wondering if there's a way to get Octane materials to use an object layer's Display Color (in the Basic Tab) to output multiple colors for different objects from just one material? With C4D you can use the MoGraph Color Shader because, without a cloner or other mograph generator, it respects the Display Color of each object and will render that.

I have an AI file with many many layers that have succesfully imported using CV-ArtSmart, assigning the AI fill colors to each object layer's Display Color. They display perfectly using a C4D Shader with a MoGraph Color Shader applied to the Color channel. But if I create the same setup using Octane - Creating an MGColor Node and attaching it to the diffuse channel - it doesn't work. It only works when Mograph Generators are used.

Hope that makes sense!
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

If you can transfer color to mograph color shader, the plugin will recognize that.
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
Meshmashuk
Licensed Customer
Posts: 5
Joined: Mon Jan 25, 2016 2:13 pm

aoktar wrote:If you can transfer color to mograph color shader, the plugin will recognize that.
I thought C4D kind of worked the other way round. MoGraph effectively alters the display color which is what an MGColor shader looks at to get its color information. This is why a C4D MoGraph shader will work with either a MoGraph generator based color or the simple Display Color, set in the Basic Tab - because, in the end, it's always reading the Display Color.

I don't know how to make MoGraph read the Display Color as wouldn't this cause a kind of recursive loop?! I have tried but I can't see a way to do it. If someone knows how to use Fields or something to get that Display Color across into Mograph and not cause the universe to reformat I'd be delighted to know!
Ignaco
Licensed Customer
Posts: 2
Joined: Wed Apr 26, 2017 10:27 am

I actively come back to Redshift for projects, because I can't use Display color in Octane which is kind of sad.
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

Ignaco wrote:I actively come back to Redshift for projects, because I can't use Display color in Octane which is kind of sad.
On latest builds you can use Display color by using octane tag
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
jalejune
Licensed Customer
Posts: 6
Joined: Thu Jun 25, 2015 3:19 am

@aoktar Could you explain the steps how?
Gregor.Zimmermann
Licensed Customer
Posts: 50
Joined: Mon Jul 16, 2018 8:18 pm
Location: Cologne, Germany

It would be amazing to know, how to use this feature, @aoktar
Thanks a bunch!
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

You need to use displaycolor OSL and object tag as in this scene. Check it out!
Attachments
display-color.zip
(111.71 KiB) Downloaded 365 times
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
pxlntwrk
Licensed Customer
Posts: 445
Joined: Sat Mar 23, 2013 2:21 pm
Location: France
Contact:

Thx , nice tip :D
:::::::::::::::::
pxlntwrk.net
tobefree
Licensed Customer
Posts: 1
Joined: Wed Oct 25, 2017 12:00 pm

Awesome this feature is included now,
I just realized, that there is a color shift betweenn having a color defined in the octane object tag and using the osl node (or using the custom object color) and using an RGB spectrum with the exact same color. Any idea how to fix that?

Cheers,
Tobi
Attachments
ColorOffset.png
Post Reply

Return to “Maxon Cinema 4D”