Page 1 of 1

Feed Octane RGB values to C4D RGB values?

Posted: Thu Dec 08, 2016 12:18 am
by edensoto
Having a hard time wrapping my head around an issue... what I'm trying to do is convert an Octane Diffuse channel's Color RGB values to C4D's RGB value with no success. My closest attempt was feeding the Octane's RGB value (0 to 1) through a Range Mapper using a min/max of 0 and 255 to Octane's 0 to 1 and that didn't quite work... doing that gave me a properly range mapped number, but apparently the Octane 0 to 1 value doesn't really map to C4D's 0 to 255 to give me the correct RGB value.

I hope I explained that well enough for someone to figure out what I'm getting at and hopefully have a solution... I have a feeling it's something obvious that I'm missing (or perhaps not)... dabbled with float conversions and stuff like that and was way off.

Anyone who's got some insight to my conundrum would be greatly appreciated!

Re: Feed Octane RGB values to C4D RGB values?

Posted: Thu Dec 08, 2016 12:35 am
by aoktar
Make a color tranform with python
linear -> srgb
or
srgb -> linear
don't forget to multipy octane values by 255.0 for 8bit color outputs

https://developers.maxon.net/docs/Cinem ... sformColor

Re: Feed Octane RGB values to C4D RGB values?

Posted: Thu Dec 08, 2016 12:41 am
by edensoto
aoktar wrote:Make a color tranform with python
linear -> srgb
or
srgb -> linear
don't forget to multipy octane values by 255.0 for 8bit color outputs

https://developers.maxon.net/docs/Cinem ... sformColor
THANK YOU! I will give that a shot, but given that post comes from you, I'm confident it will do the trick (:

Re: Feed Octane RGB values to C4D RGB values?

Posted: Thu Dec 08, 2016 12:47 am
by aoktar
Check this bonus scene;)

Re: Feed Octane RGB values to C4D RGB values?

Posted: Thu Dec 08, 2016 12:50 am
by edensoto
aoktar wrote:Check this bonus scene;)
Virtual toast! You are amazing. Thank you again.