Category Archives: Scripts

Vray to Blender PBR/FBX

Im often exporting models from 3dsmax to Blender and this is a fast way to import the models so that the material is automatically converted and imported into Blender with PBR materials applied with correct default settings.

What does it do?

It takes a Vray Material with Roughness workflow, converts it to Standard (Legacy) material and is ready for export to FBX. You can extend on the script or modify it for your needs. This is the workflow:

Blender to GLB/GLTF for real-time:

A secondary benefit to this workflow is that once the file is imported into Blender as FBX it can be directly exported to GLB/GLTF for real-time workflow. If you want to include ambient occlusion you will have to do this manually for now. I might create a script in future, no promises on that one since its usually very simple with two additional nodes in the shader editor as shown in the Blender manual.

Converts:

  • Diffuse texture, Diffuse Color, VrayColor in Diffuse
  • Roughness texture
  • Metal texture
  • Opacity texture
  • Normal texture
  • Normal DirectX to OpenGL (3dsmax uses DirectX & Blender uses OpenGL, its done via naming convention – Optional)
  • Sets the correct Specular level for Blender
  • Sets Reflection to White
  • Sets Dielectric or Metallic material for Blender (depending on if Metal texture is used)
  • Sets Gamma settings for sRGB and Linear images
  • Can convert VrayMtl, Vray2SidedMtl, Multi-Material. You can edit the functions in the script to add more material types if you use them

Export Options in FBX:

Comparisons:

3dsmax Vray Roughess Material:

Standard (Legacy) Material – Converted with Script

Blender Principled BRDF Shader – Imported FBX (Automatic Settings)

Download the maxscript here

Advertisement