Home Technical Talk

Use systems default gamma maxscript

I can't find anywhere in the Maxscript reference to do with the "use systems default gamma" when you load a bitmap into a material.

I need all my bitmaps to load in as "use systems default gamma" but it uses 'use image's own gamma' instead by default.

Below is my code for loading in an material and applying the material to the selected object.
meditMaterials[1].name = $.name
 meditMaterials[1].diffuseMap = Bitmaptexture fileName: exportName
 meditMaterials[1].selfIllumAmount = 100
 meditMaterials[1].showInViewport = on
 $.material = meditMaterials[1]

Replies

  • renderhjs
    Offline / Send Message
    renderhjs sublime tool
    you can access the 3 gamma settings in maxscript, just look in the script reference. It should give you access to the display, export, import gamma multipliers.
  • eddybrown
    Basically my script's purpose is to speed up the texture baking, since we want to use standardised settings in Vray. The script has a button which loads the gamma settings and sets the renderer to Vray with certain settings. The system is set up for gamma 2.2 images, so gamma 2.2 display, gamma 2.2 input and gamma 1.0 output.

    Whilst modelling and texturing this setup works well. However when I load the bitmap that has been baked it needs to be changed to use system default instead of using the images own gamma otherwise the gamma is incorrectly displayed.

    I have tried different combinations of gamma settings but none seem to make a difference unless I'm overlooking something?
Sign In or Register to comment.