Refraction Exit Color

Hey there, as we have been in Vray 5 for a couple months, one thing my team has noticed and is missing is Refraction Exit Color.

When dealing with complex refraction, it was common for artists to set this color to magenta or some other bright color to help diagnose issues with refraction depth. Is there a similar feature inside vray 5 somewhere?

Or, may we request to add this feature back in?

Thank you!

Hi,

This option is removed in V-Ray 5, but there’s still a couple of different ways to use it.

You can use a BRDFVRayMtl created from V-Ray plugin, instead of the built-in VRayMtl material, the plugin node will have all legacy options.
You can create it from the V-Ray menu > Tools > Create V-Ray Plugin node > BRDF material and search for BRDFVRayMtl.
Or create it from the V-Ray shelf:

Alternatively, you can use our post-translate python script to modify the material. This way you can use the built-in VRayMtl material and modify it before rendering.
Here’s an example script that finds a material by its Maya name, in my example “myMaterial”, enables refraction exit color and sets the color to magenta:

from vray.utils import *

mtl_name = 'myMaterial'
suffix = '@vraymtl'
m = findByName(mtl_name+suffix)[0]
m.set('refract_exit_color_on', True)
m.set('refract_exit_color', Color(1.0, 0.0, 1.0))

You can find the post-translate script in the render settings > Common tab > MEL/Python callbacks.
https://docs.chaosgroup.com/display/…ed+V-Ray+Scene

I hope that this helps.

Thank you Alex, this is great.