Since V-Ray 5, V-Ray has an experimental option that allows converting scene objects with a V-Ray Displacement modifier to a V-Ray Proxy (.vrmesh) file. Once converted to а V-Ray Proxy object, the geometry can be also imported as native 3ds Max mesh.
Export displaced geometry to a V-Ray Proxy file
- Select the object in the 3ds Max viewport. The object should have a V-Ray Displacement modifier in 3D Mapping mode.
- Open the 3ds Max MAXScript Listener from the Scripting menu.
-
In the Listener, run:
$.VrayDisplacementMod.write_vrmesh="C:\\path_to_file.vrmesh"Replace the path and file name with your desired .vrmesh output.
- Start the V-Ray Rendering process to export the .vrmesh file during the pre-rendering stage.
- Stop the Render once the .vrmesh has appeared in the folder.
-
Revert to the normal rendering behaviour by running:
$.VrayDisplacementMod.write_vrmesh="disable"
Import the .vrmesh back into 3ds Max
After exporting, you can bring the proxy into your scene and convert it to a native mesh if needed.
- Drag and drop the .vrmesh into the viewport, or use the V-Ray Proxy Importer.
- To convert the proxy to an Editable Mesh, use the Import as mesh option in the V-Ray Proxy.
-
If some edges appear hidden after import, select the edges and enable the Visible option in the Editable Mesh modifier.
Limitations
Currently, only V-Ray Displacement with 3D Mapping type can be converted with this script.
2D mapping and Subdivision types do not work with it.