Page 1 of 1

RGB color picker not works

Posted: Thu Nov 10, 2016 4:31 pm
by belly80naz
Hi,
I'm using Cinema4D R17.055 and Octane 3.03.4-R3 and I have an issue using an Xpresso tag to control the diffuse color of a Octane material.

I got 2 materials: the first diffuse color is a RGB value that I can choose, the second diffuse color is controlled by an Xpresso that take the color from an user data. When I choosed the same color from the first diffuse color material (using the color picker) from the user color data, the second material appears brighter than the first. Is this a bug? Is it my fault? I don't understand. You can find the scene at this link: https://1drv.ms/u/s!AjYjAZhvVLBEgblVc85VNuEgY_btog

Re: RGB color picker not works

Posted: Thu Nov 10, 2016 4:47 pm
by aoktar
I don't understand what you do but check image. It explains how works the color system. There is a Linear<->SRGB conversion and it depends to your scene color profile.
So simply you can't give picked values to color values for SRGB color profiles.

Re: RGB color picker not works

Posted: Fri Nov 11, 2016 11:54 am
by Liketheriver
Hi Aoktar,

I'll try to explane this in a different way, for example if we need to choose some colors from a styleguide, they are in rgb format, or hex code, usually we pick the value from photoshop, with the picker of c4d, and it works well in both c4d or octane materials, in this case we need to pilot some materials colors from an user data node, linking in Expresso the outpout rgb values of the user data, to the input rgb values of various octane materials, so we can control those all in once from one single node, this works flawless in c4d, but as you can see from the example here:
Color data RGB issue.PNG
in octane the output values differ, 0 is 0, and 255 is 255, but the conversion of the value inbetween is wrong (or, maybe it work by default in different way, but the result is wrong) there is a workaround to resolve this issue?
thanks for your reply
A.

Re: RGB color picker not works

Posted: Fri Nov 11, 2016 12:17 pm
by aoktar
Did you checked my explanation?
Simply you need divide colors to 255 and apply a SRGBtoLINEAR conversion.

Re: RGB color picker not works

Posted: Fri Nov 11, 2016 6:54 pm
by Liketheriver
Hi!

thanks Aoktar, we'll try this solution, let you know if it work