---
title: "Using OCIO and LUT Settings in the VFB for Nuke"
canonical: "https://documentation.chaos.com/space/VRAYNUKE/110626780/Using%20OCIO%20and%20LUT%20Settings%20in%20the%20VFB%20for%20Nuke"
format: markdown
---
This page provides a guide on using OCIO and LUT settings in V-Ray for Nuke to match OCIO and LUT settings used in 3ds Max and Maya.


## **Overview**

---


## **Part I: Creating a LUT in the VFB**

---

In this first section we will render out an image in 3ds Max and save color correction settings from the VFB as a LUT, to be later applied to the render in Nuke.  


### Applying** the LUT in 3ds Max**

1.  Open the Correction controls in the VFB.


![image](media://b59063e9-ad32-4d8f-b4d2-cb671eedccf5)



2.  Set your VFB Color corrections to the desired visual look.  In the case of this example, a combination of **Exposure**, **White Balance**, **Hue / Saturation**, **Color Balance** and **Curve** adjustments have been made.


![image](media://cb6c7c8f-da83-4acc-9475-88857f469307)



3. To save this set of color corrections out to a LUT, click on the **Globals** button at the top of the **Color Corrections** panel on the right of the **VFB **UI, and then click on the **Save** button to save the LUT to you desired location. Be sure to set the file type to *.cube*.


![image](media://7f84038a-2dfa-4fca-a961-aadfb629384d)




Next, we'll see how to correctly apply the LUT in Nuke to match the Render with that LUT applied in 3ds Max.  The render used has a background image applied in the VFB in 3ds Max, so that has been added also to the Nuke script as well.


### Applying** and the LUT in Nuke**

1.  Read in the beauty render (ensuring that the **colorspace** of the **Read** node is using the *default (linear)* setting).


![image](media://1db55648-ef77-4893-a7ab-316863ab9046)



2. Create a **Merge** node set to *over,* and connect the background image to this node--note that in this case, a Reformat node was used to ensure the correct size. This ensures that the background image is visible as we work.


![image](media://3d5ba8f6-8590-4a34-8a1d-6d3483ca1052)



2.  Ensure that the Nuke Viewer Process is set to *sRGB*.


![image](media://524b2b37-757f-4a38-9b56-701f583254b6)



3. Create a **VectorField** node after the merge node.  Browse for the exported LUT in the **vectorfield file **field.


![image](media://1b927c8d-c20d-4fc7-b4e3-a01d2ecc807a)



4. Set **colorspace** **in** to* linear* and **colorspace** **out** to *linear *as well.  This makes sure that the match to any LUT in the VFB (whether in 3ds Max or other V-Ray supported applications) is 100% correct.  If the **colorspace in** and **colorspace out** are not set correctly, the LUT will be applied incorrectly.  


![image](media://3026cbb7-1ef8-4fed-b495-c3c0c8bb1f6e)


> ℹ️ If the **colorspace in** and **colorspace out** fields in the **Vectorfield** node are not set correctly, the LUT will not be correctly applied. Similarly, the Nuke Viewer Process must be set to *sRGB*, or the LUT applied will look incorrect in the viewer.

> ⚠️ It is possible to use externally created LUTs in the V-Ray Frame Buffer. However, if the LUT is expecting a log space, turn on **Convert to Log Space Before Applying LUT** and turn off the** sRGB correction**.
> ⚠️ 
> ⚠️ ![image](media://d22df309-5bc4-44db-8c3e-5afda4293fef)
> ⚠️ 
> ⚠️ ![image](media://5c5e2d60-e7fe-4122-9e27-20896d3ddee8)


## **Part 2: Applying an OCIO correctly in 3ds Max and Nuke**

---

In this section, we see how to correctly apply an OCIO in both 3ds Max and Nuke, so that the output from Nuke will correctly match the 3ds Max VFB render with LUT applied.  The render used has a background image applied in the VFB in 3ds Max, so that has been added also to the Nuke script as well.


### Applying** an OCIO in 3ds Max**

1.  Open the Correction controls in the VFB.


2.  Turn on **Use OCIO Correction** and browse for the required OCIO.  (In this case, a spi-vfx OCIO file has been used in the following examples).


3. Ensure that **Input Colorspace** is set to** *****Inf***, **Display Device** is set to** *****DCIP3***** **and **View Transform** is set to*** Film***.


4. Make sure that** Display colors in sRGB space** is turned off.


![image](media://3767f1b8-6a2b-4864-a82a-a2e5d2c05405)




### Applying** an OCIO in Nuke**

1.  Read in the beauty render. Please ensure that the **colorspace** of the **Read** node is using the *default (linear)* setting.


![image](media://1db55648-ef77-4893-a7ab-316863ab9046)



2. Create a **Merge** node set to *over,* and connect the background image to this node. In this case, a Reformat node has been used to ensure the correct size. This ensures that the background image is visible as we work. 


![image](media://3d5ba8f6-8590-4a34-8a1d-6d3483ca1052)



3. Open the Nuke Project Settings and change to the Color tab.


4. Change the **color management** to *OCIO *and the **OCIO config** to *custom,* then load the OCIO file in the **custom OCIO config** field.


5. The  **Nuke Viewer Process** should have now set itself to *Film (DCIP3)* and completely match the same OCIO applied in the VFB in 3Ds Max (or any other V-Ray supported applications Frame Buffer). 


![image](media://6d0a9b86-9c0b-407c-ba35-a7330dfbaa9f)