V-Ray for Maya Linear Workflow Guide
Quick guide to proper color management in V-Ray for Maya.
Linear workflow is among the first topics I researched when I started playing with Maya. Coming from 3DS, I figured that linear workflow (LWF) in Maya would be equally straightforward. However this turns out not to be the case. EDIT: This is the manual way to do LWF in Maya. I think it is important to understand how to do it, but there are many scripts that would automate this process.
This is not an explanation as to what is LWF and/or why it is important. There are plenty of well written articles on that. The Beginners Explanation of Gamma Correction & Linear Workflow is a good primer on the topic. This post will try to explain the way I do linear workflow in Maya with V-Ray.
Here is an image rendered with LWF:
Compared to the same image without proper gamma correction:
Summary of the workflow
Under VRay > Color mapping tab in Render Settings window:
Type: Linear multiply
Dark multiplier: 1.000
Bright multiplier: 1.000
Affect background: ON
Subpixel mapping: OFF
Don’t affect colors (adaption only): ON
Linear workflow: OFF
Clamp output: OFF
Affect swatches: ON (this way the swatch samples in Hypershade are displayed correctly)
For sRGB textures, go to the file node and add Texture input gamma under Attributes > VRay
For procedural colors/textures within Maya, plug the node into a Gamma Correct node with these settings:
I always output my files in OpenEXR files for use in Nuke. If you want to output in an sRGB format straight from Maya then you’ll have to turn Don’t affect colors (adaption only) option off.
And don’t forget to press the sRGB button in the V-Ray frame buffer window to display your image properly (this is if the Don’t affect colors (adaption only) option is on).
Here are a few extra images to demonstrate the process:
Below is an image with proper gamma correction settings applied in the Render Settings window. However the file textures and procedural swatches/ramp are not corrected yet. You can clearly see from the rectangle with the procedural ramp shader and the materials with file textures that they are going through double gamma correction (midtones are too bright).
Using Gamma Correction nodes (set to 0.455) to fix the procedural colors/textures. File textures still render incorrectly:
By adding the Texture input gamma attributes in the file nodes, file textures now render correctly:
Finally here is the effect of enabling Affect swatches option: