LDR Multi-Pass images with OCIO

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

Moderators: ChrisHekman, aoktar

Meet
Licensed Customer
Posts: 49
Joined: Thu Jan 07, 2021 10:59 am

aoktar wrote:Png is marked as sRGB for saving if you are using it with default sRGB. But any OCIO profile is assumed linear. Set it as linear on saving.
I am sorry, I don't quite understand what you mean, are you suggesting after the image is exported I change it to linear in a compositing software?
If not, then can you tell the steps to get final image + render passes with OCIO baked-in in png format?
Ryzen 9 5900x | 64GB RAM | 1x RTX 3090
Blender | C4D | Standalone
Win 10
User avatar
aoktar
Octane Plugin Developer
Posts: 16063
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

Pretty easy, you need to set it "LINEAR" because OCIO is linear internally. And always disable "ENABLE COLOR PROFILE" in PICTURE VIEWER. It's giving headhaches because it's not aware of the colorspace we're using.
Attachments
saving-PNG-with-OCIO-sRGB-and-Passes.jpg
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
Meet
Licensed Customer
Posts: 49
Joined: Thu Jan 07, 2021 10:59 am

aoktar wrote:Pretty easy, you need to set it "LINEAR" because OCIO is linear internally. And always disable "ENABLE COLOR PROFILE" in PICTURE VIEWER. It's giving headhaches because it's not aware of the colorspace we're using.
I am still not getting the expected results, the passes don't export with ACES OCIO - sRGB.

Sharing the c4d file along with the expected results which I got via file > save image as on the octane live viewer.
Now I am only asking how can I save the passes in png with ACES srgb baked in without saving it manually from live viewer
Attachments
The passes with ACES- sRGB baked in
The passes with ACES- sRGB baked in
Refraction.png
Beauty.png
OCIO test.rar
C4D file
(911.3 KiB) Downloaded 59 times
Cinema_4D_p2ivde7L5K.png
Ryzen 9 5900x | 64GB RAM | 1x RTX 3090
Blender | C4D | Standalone
Win 10
jayroth2020
OctaneRender Team
Posts: 487
Joined: Mon May 04, 2020 7:30 pm

Hello Meet,

Set up your Render Settings panel as I have in the screenshots. You will need to set up both the Main tab AND the Render AOV Group tab as you see in these images. When you do, you will end up with the image that matches the one I have included. DO NOT USE THE CINEMA 4D SAVER.

Cinema_4D_2021-12-06_12-12-34.png
Cinema_4D_2021-12-06_12-08-13.png
OCIO_Test_Main_0000.png
Puget Systems / Intel Core Z790 ATX / RTX 4090 / Cinema 4D
User avatar
aoktar
Octane Plugin Developer
Posts: 16063
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

+1 for Jayroth and +2 for: Why do you desperately trying to use PNG for render passes tooo?
It's wrong to insist to save render passes with sRGB. You cannot use these for comping. I see you're probably trying to just use "refraction" and "light direction". But don't apply sRGB colorspace before displaying something.

Please choose the ways we advice for render passes as much as possible.
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
Meet
Licensed Customer
Posts: 49
Joined: Thu Jan 07, 2021 10:59 am

jayroth2020 wrote:Hello Meet,

Set up your Render Settings panel as I have in the screenshots. You will need to set up both the Main tab AND the Render AOV Group tab as you see in these images. When you do, you will end up with the image that matches the one I have included. DO NOT USE THE CINEMA 4D SAVER.
Thank you Jay, but I have set the settings just as you suggested and I am not getting same result as you via the octane export. I am getting the same result on my c4d picture viewer though, with viewer color profile set to linear


aoktar wrote:+1 for Jayroth and +2 for: Why do you desperately trying to use PNG for render passes tooo?
It's wrong to insist to save render passes with sRGB. You cannot use these for comping. I see you're probably trying to just use "refraction" and "light direction". But don't apply sRGB colorspace before displaying something.

Please choose the ways we advice for render passes as much as possible.
I understand and agree that EXR workflow would be ideal, but I am was using octane with blender before and this workflow was working pretty fine so I thought I was making a mistake in C4d to get the same results, so to clarify I made a forum post.



Okay so after previewing the message before submitting I understood that there is some issue on my end/understanding as the same exported photo looked different to me on my image viewer as compared to the same photo I uploaded on this post (probably something to do with HDR buffer?)
Now I can verify that I was getting the right result all along, just was viewing it in the wrong place.
For example both these png images look same inside fusion
explorer_dqUle07AFs.png
explorer_dqUle07AFs.png (32.63 KiB) Viewed 1246 times
All are the same image opened via different softwares
All are the same image opened via different softwares
Thank you.
Ryzen 9 5900x | 64GB RAM | 1x RTX 3090
Blender | C4D | Standalone
Win 10
elsksa
Licensed Customer
Posts: 784
Joined: Sat Jul 24, 2021 1:06 am

aoktar wrote:+1 for Jayroth and +2 for: Why do you desperately trying to use PNG for render passes tooo?
It's wrong to insist to save render passes with sRGB. You cannot use these for comping. I see you're probably trying to just use "refraction" and "light direction". But don't apply sRGB colorspace before displaying something.

Please choose the ways we advice for render passes as much as possible.
Hello Meet, I have been "secretly" following this thread, since I am not a Octane-Cinema-4D user (Standalone only), I was curious about it.

+1 with what aoktar wrote, which I even did mention on many occasions. The AOVs/"Passes" should not be "display-referred", among the usage of an appropriate file format.
Instead of PNG as the OpenEXR alternative (which is highly not recommended), TIFF is recommended as (shortly) mentioned and covered on this page: https://www.elsksa.me/scientia/cgi-offl ... mat-debunk
Meet wrote: I understand and agree that EXR workflow would be ideal, but I am was using octane with blender before and this workflow was working pretty fine so I thought I was making a mistake in C4d to get the same results, so to clarify I made a forum post.
A lot of people think it is "working fine" and "looks correct" while it is not due to a lack of knowledge on the mathematical logic behind scene-linear compositing and digital imagery in general.

This thread was a great initiative (I do remember that you did post on Discord as well) and is (hopefully) an eye-opener for you and others in regard to proper file format, correct viewing and "best practices".
elsksa
Licensed Customer
Posts: 784
Joined: Sat Jul 24, 2021 1:06 am

aoktar wrote:+1 for Jayroth and +2 for: Why do you desperately trying to use PNG for render passes tooo?
It's wrong to insist to save render passes with sRGB. You cannot use these for comping. I see you're probably trying to just use "refraction" and "light direction". But don't apply sRGB colorspace before displaying something.

Please choose the ways we advice for render passes as much as possible.
Hello Meet, I have been "secretly" following this thread, since I am not a Octane-Cinema-4D user (Standalone only), I was curious about it.

+1 with what aoktar wrote, which I even did mention on many occasions. The AOVs/"Passes" should not be "display-referred", among the usage of an appropriate file format.
Instead of PNG as the OpenEXR alternative (which is highly not recommended), TIFF is recommended as (shortly) mentioned and covered on this page: https://www.elsksa.me/scientia/cgi-offl ... mat-debunk
Meet wrote: I understand and agree that EXR workflow would be ideal, but I am was using octane with blender before and this workflow was working pretty fine so I thought I was making a mistake in C4d to get the same results, so to clarify I made a forum post.
A lot of people think it is "working fine" and "looks correct" while it is not due to a lack of knowledge on the mathematical logic behind scene-linear compositing and digital imagery in general.

This thread was a great initiative (I do remember that you did post on Discord as well) and is (hopefully) an eye-opener for you and others in regard to proper file format, correct viewing and "best practices".
Post Reply

Return to “Maxon Cinema 4D”