This topic describes how the gamma correction used to work previously and how it works currently.
The dialog for loading bitmaps had three options:
Similarly, the dialog for saving bitmaps had two options:
The following table defines these options:
Option | Description |
---|---|
Use image’s own gamma | Checks whether the file header contains a gamma value to use. If gamma value is not found, the Use system default gamma option is selected automatically. |
Use system default gamma | Uses the globally defined gamma value (the sRGB gamma of 2.2). |
Override | Allows a user override. |
In general, this gamma correction method worked well for loading files when the file type stored actual gamma value in the file header. However, if the file header did not contain a gamma value, the following issues occurred:
For saving files, this method always used the system default gamma value and ignored the file type being saved. For example, EXR files that must be stored linearly (= gamma 1.0) were saved as sRGB (= gamma 2.2). You had to either create an override for such files, or modify the output default.
Currently, both saving and loading dialog has the same options as shown in the following figure:
The gamma value in the file header is used when you choose the Automatic option for loading files. When file headers do not contain the gamma value, the file type is considered and 3ds Max checks whether the particular file IO plug-in prefers linear storage or not. For example, the plug-in for JPG files do not prefer linear storage, and is assumed to be sRGB (= gamma 2.2). The plug-in for HDR files prefer linear storage and is assumed to be linear (= gamma 1.0).
Similarly, when saving files, the file type is considered and 3ds Max checks whether the file IO plug-in prefers to be saved linearly. For example, a JPG plug-in is saved in sRGB (= gamma 2.2) by default, whereas an HDR plug-in is saved linearly (= gamma 1.0) by default.
You can override this default behavior using the Override option for loading and saving the files.
You rarely have to care about the gamma correction because it is automatically done based on the file type, bit depth, and so on.
It is no longer recommended to change the global file-input and file-output gamma values from their sRGB default value of 2.2 because of the automatic choice for loading and saving. Therefore, these options are removed from the user interface of the Gamma/LUT Setup dialog. However, they can still be changed by editing the .ini files.