Mental Ray bake sequence

1. Create shading network with mib_lightmap_write node.
Plug data that you need to bake into INPUT of mib_lightmap_write node.
IMPORTANT: do not create mentalrayTexture via hypershade create bar,
push checker button in texture field of mib_lightmap_write node!!!



2. In render globals common tab enter PRe render Frame MEL script:
string $myFrame = "c:\\Temp\\lightmap" + `currentTime -q` + ".tif";setAttr -type "string" mentalrayTexture1.fileTextureName $myFrame;
3.In render globals set the render mode to "lightmap only" on the features tab.

Render framerange that you need.

Moving from Mentalray to VRay


LINEAR WORKFLOW SETUP


1) check "convert image to sRGB for renderview " in VRay common render settings
2) setup LWF in VRay render settings:



PASSES (VRay render element)

lighting- diffuse*color
GI- indirect
diffuse-color
materialID- material MASKS (add VRay materialID attribute to Shading Group)
multiMatte-object MASKS (add VRay objectID attribute to transform, shape or group node)