V-ray maps baking script. v0.04
I would like to share an script I’ve been working on lately. It simply bakes textures from V-Ray shaders (VRayBlends, multisub etc)
Bakes texture maps: Diffuse, Reflection, Refraction, Reflection Glossiness, Refraction Glossiness, Normal Bump, Fresnel IOR, Opacity, Illumination.
Creates VRayMtl with all textures correctly assigned.
Can convert exr to jpg using djv_converter.exe (part of the http://djv.sourceforge.net/ )
Ability to load custom render settings preset for baking. It reverts back to old preset.
It turnes this:
– Renders faster. When all this mess is baked into maps, you get simplified result that in general render faster.
– Easier to share. This also opens up options to convert your shader to VRMat and use it in Maya / Modo etc.
– More flexibility. Baked maps could be used for other things like exporting model to real time engine or other renderers.
Use the same BRDF model on all the shaders you’re working on. Recommended: WARD
Camera based maps like falloff won’t work.
This script will bake complex VRayBlend shaders down to Single VRayMtl, but reflections, glossiness etc will be averaged and result may be different than original.
Proper UVW mapping is required. No overlapping, No inverted faces. By default it looks for mapping at channel 10 (as usually lower channels are used for shading, and it can get messy)
Doesn’t work with SSS.
You don’t need lights / shadows / GI in your scene.
This Script is free of charge. I just hope it will help your pipleline in the way it helps us. You can modify it, but please let me know and share your code. So we can improve it further. Just remember: this Script cannot be resold in anyway.
You can find the script in Category: Dabarti in Customize/Customize User Interface