Feed Octane RGB values to C4D RGB values?

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

Moderators: ChrisHekman, aoktar

Post Reply
edensoto
Licensed Customer
Posts: 10
Joined: Tue Apr 22, 2014 3:23 pm

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!
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

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
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
edensoto
Licensed Customer
Posts: 10
Joined: Tue Apr 22, 2014 3:23 pm

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 (:
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

Check this bonus scene;)
Attachments
1.rar
(98.1 KiB) Downloaded 245 times
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
edensoto
Licensed Customer
Posts: 10
Joined: Tue Apr 22, 2014 3:23 pm

aoktar wrote:Check this bonus scene;)
Virtual toast! You are amazing. Thank you again.
Post Reply

Return to “Maxon Cinema 4D”