VRayRefraction

This page gives some basic details about the Refraction render element and how it is used in compositing.

Overview

The Refraction Render Element stores refraction information calculated from materials--such as glass or water--that refract objects behind them in the camera's view. This means the brightness, coloration, etc. of the refractions can be adjusted without the need to rerender.

Any material in a scene that has a value set for its Refraction parameter will generate refraction information that can be seen in this render element. A surface with no refraction values set in its material(s) will contain no information in the render element and therefore render black.

The Refraction Render Element is a key component in the main Beauty Element and can easily be used to control the refractions in the Beauty composite.

The Refraction Render Element itself is already a composite of the VRayRawRefraction render element multiplied by the VRayRefractionFilter render element. When finer control over refractions is needed in the composite, add these additional two channels to the output along with the VRayRefraction render element channel.

images/download/attachments/38573195/refraction_MainHero_v01.VRayRefraction.png



UI Path:


||Render Setup window|| > Render Elements tab > Add button > VRayRefraction


Parameters

This render element is enabled through the Render Elements tab of the Render Setup window in 3ds Max and displays its parameters in a rollout at the bottom of the window:



images/download/attachments/38573195/max2018_NEXT_REfractionRE_params.PNG


vrayVFB – When enabled, the render element appears in the V-Ray Virtual Frame Buffer.

deep output – Specifies whether to include this render element in deep images.

color mapping Applies the color mapping options specified in the Color mapping rollout of the V-Ray tab in the Render Setup window to this render element. This option is enabled by default.

multiplier – Sets the overall intensity of the render element, where 1.0 is the standard multiplier.

denoise Specifies whether to denoise this render element.


Common Uses

The Refraction Render Element is useful for changing the appearance of refractive elements after rendering in a compositing or image editing application. Below are a couple of examples of possible uses.

images/download/attachments/38573195/refraction_MainHero_v01.VRayRefraction.png
Refraction Render Element

images/download/attachments/38573195/refraction_MainHero_v01.RGB_color.png
Original Beauty Composite

images/download/attachments/38573195/refraction_refractionexamples_brihtened_v01.png
Brightened Refractions

images/download/attachments/38573195/refraction_refractionexamples_Tinted_v02.png
Tinted Refractions


Compositing Formula

VRayRawRefraction x VrayRefractionFilter = VRayRefraction


images/download/attachments/38573195/VRayRefraction_Graph_v02_00000.png