Gamma correction controls are helpful for users to make sure they are working in radiometrically linear space (also called 'linear workflow'). Linear workflow ensures that all of the elements interacting in a scene (light colors, textures and shader colors) correspond linearly with actual amounts of light so that the renderer does proper light computations in a physically accurate way, since light works linearly in the physical world (if you double the amount of photons, the color values are also doubled).


While all the calculations need to happen in a linear color space, all viewing devices (input and output) will need to be shown in a gamma corrected space (like sRGB gamma).

The main problem when rendering without a proper linear workflow is that lights look overblown and colors look unnatural. The artist then tries to adjust the scene lighting, including falloff, colors, etc. However, this is only possible to a certain extent.


The images below show common mistakes artists make when rendering out images with differing gamma outputs:

It is recommended that you output rendered images as EXR (linear floating point format) to maintain a linear workflow. 


The rendering pipeline can be broken down into the following steps:

How to make inputs linearly


Images rendered to disk (using Team Render for example) need to be viewed with a LUT capable image viewer. When viewed through a standard non LUT capable viewer, the rendered images will look too dark in comparison.


Color Profiles

C4DtoA supports the following color correction settings:


Edit > Project Settings...
 
  • Only the Linear Workflow is supported which means that all inputs (light and shader colors and textures) are converted to linear space before computations.
  • Input Color Profile: controls display of color pickers. Default is sRGB which means all colors are displayed gamma corrected in Cinema 4D.


Edit > Preferences... > View > Display Color Profile

  • Display Color Profile: defines color correction of the Picture Viewer, IPR Window, material previews and the viewport. Default is sRGB.


Render Settings > Save

  • Image Color Profile: defines the color space of the image written to the disc when using the native C4D save options.

Textures

If the Color Space of an image shader is set to auto, then Arnold linearizes 8 and 16-bit images automatically. Arnold scans the contents of a texture (it does not rely on the extension), and anything that is not float is considered to have a gamma baked even if the image has a different color space embedded. The list of color spaces depends on the selected Color Manager.

Tx texture format

You can convert your textures to linear space with the Tx Manager dialog. This way you can ensure that all of your textures are linear before rendering. You can choose between linear, sRGB and Rec709. For example, the following command:

maketx --colorconvert sRGB linear C:\Program Files\MAXON\CINEMA 4D R17\plugins\C4DtoA\arnold\bin\crayons.jpg

Crayons.jpg image color space converted using the make tx tool

Drivers

Arnold drivers are responsible for managing outputs, for example, to write image files to disc (e.g. jpeg, png, tiff, etc.). These drivers have a Color Space option to define the color space of the output file. Auto means linear space.


  • No labels