Chaos Corona Forum
Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: caezar on 2019-09-10, 17:52:43
-
i
I am using 3Ds Max 2019 with corona 3(Hotfix 1) and trying to set the Gamma to 2.2 in scripts. According to the corona script help from here [https://corona-renderer.com/wiki/maxscript][/url], the only function comes up with gamma from the renderer list of settings is
renderers.current.colormap_additionalGamma . Even when setting that to 2.2 it seems that is not working as I get this message while running the script :
***WARNING*** CORONA ERROR: 3ds max is configured to use incorrect gamma (1). Value of 2.2 is required for correct output.
and as a result, the rendered images are of very bad quality.
there any way I can force the gamma value to be 2.2 via the running script and not the GUI as I am running a batch script.
I will upload here the current script that is for a single image to demonstrate the procedure I am following
-
Do not change colormap_additionalGamma, leave it at 0. What you may want to do is setting/forcing Customize->Preferences->Gamma and Lut to be enabled with value 2.2 by script. See IDisplayGamma (https://help.autodesk.com/view/3DSMAX/2019/ENU/?guid=GUID-CF8EC7D0-7ED9-427F-AFB6-B537465B0D3D) interface. Would be:
IDisplayGamma.colorCorrectionMode = #gamma
IDisplayGamma.gamma=2.2
Good Luck