Author Topic: Setting the gamma value to 2.2 with corona renderer using MaxScript  (Read 4819 times)

2019-09-10, 17:52:43

caezar

  • Active Users
  • **
  • Posts: 7
    • View Profile
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

2019-09-11, 10:54:30
Reply #1

Frood

  • Active Users
  • **
  • Posts: 2001
    • View Profile
    • Rakete GmbH
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 interface. Would be:

Code: [Select]
IDisplayGamma.colorCorrectionMode = #gamma
IDisplayGamma.gamma=2.2


Good Luck





Never underestimate the power of a well placed level one spell.