Convert V-Ray Displacement modifier to V-Ray Proxy or 3ds Max geometry

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

  1. Select the object in the 3ds Max viewport. The object should have a V-Ray Displacement modifier in 3D Mapping mode.
  2. Open the 3ds Max MAXScript Listener from the Scripting menu.
  3. In the Listener, run: 

    $.VrayDisplacementMod.write_vrmesh="C:\\path_to_file.vrmesh" 

    Replace the path and file name with your desired .vrmesh output.

  4. Start the V-Ray Rendering process to export the .vrmesh file during the pre-rendering stage.
  5. Stop the Render once the .vrmesh has appeared in the folder.
  6. 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.

Was this article helpful?
1 out of 3 found this helpful