Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page provides information on the MDL Material.

 


Overview

...

Section
Column
width50%

The VRayMDLMtl material loads NVIDIA Material Definition Language files (.mdl) and renders them directly with V-Ray.

V-Ray supports NVIDIA Material Definition Language, version 1.57.2. 


 
UI Expand
titleUI Path: ||Material Editor|| > Material/Map Browser > Materials > V-Ray > VRayMDLMtl


 
Column
width5%


Column
width45%

Installed Material Library

...

The following MDL material files are included when installing V-Ray, starting with V-Ray for 3ds Max 3.5. They are located in Local Disk (C:) > Program Files > Chaos Group > V-Ray > 3dsmax 20xx for x64 > mdl

 


Section
Column
width5%

 


Column
width30%

 
Aluminum Anodized 


Column
width30%


Architectural

 


Column
width30%


Asphalt

 


Column
width5%

 


Section
 
Column
width5%


Column
width30%


Carbon composite 


Column
width30%


Carpet Berber White 


Column
width30%


Ceramic Tiles Small 


 
Column
width5%


Section
 
Column
width5%


Column
width30%

 
Chrome

 


Column
width30%

 
Coated Flipflop Paint 


Column
width30%

 
Coated Flint Glass 


Column
width5%

 


Section
Column
width5%

 


Column
width30%

 
Colored Wax

 


Column
width30%

 
Concrete

 


Column
width30%

 
Concrete Polished 


 
Column
width5%


Section
 
Column
width5%


Column
width30%

 
Copper 


Column
width30%

 
Granite Black

 


Column
width30%

 
Mahogany Floorboards

 


 
Column
width5%


Section
Column
width5%

 


Column
width30%

 
Marble White

 


Column
width30%

 
Metal Examples

 


Column
width30%

 
Noise Flow Glossy

 


 
Column
width5%


Section
 
Column
width5%


Column
width30%

 
Noise Perlin Glossy

 


Column
width30%

 
Noise Worley Glossy

 


Column
width30%

 
Pattern Blended 


 
Column
width5%


Section
 
Column
width5%


Column
width30%

 
Pattern Checker Glossy

 


Column
width30%

 
Porcelain

 


Column
width30%

 
Resin Polyurethane Matte

 


 
Column
width5%


Section
 
Column
width5%


Column
width30%

 
Rubber Studded Black 


Column
width30%

 
Stucco 


Column
width30%

 
Walnut Semi Gloss

 


 
Column
width5%

 



General

...

Section
Column
width60%

The General rollout holds parameters that control common shader characteristics.

MDL filename – Specifies the .mdl file. This button control also supports a context menu with the following options:

Clear – Unloads the current shader and restores the plug-in as if no shaders have been loaded.  
Open Containing Folder – Reveals the shader location in Explorer.
Open in External Editor – Opens the shader in an appropriate text editor.
Copy File Path – Puts the full path of the currently loaded file in the clipboard.
Copy Folder Path – Copies the parent directory of the currently loaded file into the clipboard.
Recent Files – Holds a list of the recently loaded shaders and an option to clear the history list.

Expand
titleClick here to see the shortcut keys for the context menu options
Shortcut KeyCommand
CClear
OOpen Containing Folder
XOpen in External Editor
FCopy File Path
PCopy Folder Path
TRecent Files
1-0The first 10 items of the Recent Files submenu have assigned shortcuts from 1 to 0

MDL material – Displays the material name.

Max ray depth – Specifies the maximum reflection/refraction depth for the shader.

Show preview – Determines whether to render a shader preview in the material editor.

Clamp shader result – Determines whether to force the result in the [0, Clamping limit ] range or not.

Clamping limit – Specifies the upper clamp limit if Clamp shader result is enabled.

Viewport color – Specifies the diffuse component of the material used in the viewport shading.

Wrap texture coordinates – Automatically wraps the texture coordinates for the MDL material passing only values in the [0.0, 1.0] range.

 
Column
width5%


Column
width35%

Compiler Diagnostics

...

Section
Column
width60%

The Compiler Diagnostics rollout holds shader compilation and manipulation result messages.

 
Column
width5%


Column
width35%

 


Parameters

...

Any additional material-specific parameters (if any) are listed in this rollout. 

 


MDL Search Paths

...

Section
Column
width60%

The MDL Search Paths rollout hosts the system paths to available mdl modules, as well as options for manually adding and removing additional paths.

System paths are the ones defined with the V-Ray environment variable VRAY_MDL_PATH_3DSMAX20YY_x64 and NVIDIA environment variables MDL_SYSTEM_PATH and MDL_USER_PATH. Additional Paths are used to add root locations that will be searched when the given mdl module is not found in available system paths. Mdl modules can also reside in a sub-folder and will be automatically searched for without the need of adding the sub-folder's explicit path name. If an mdl module is loaded from a location that is not present in an already listed path, a pop-up window prompts you to add it to the list of Additional paths (or else it will not be loaded and rendered). All path lists are stored on a global level and are not scene specific.

UI Text Box
typenote

 The MDL modules are cached when loaded. If two or more mdl modules with the same name are used this may cause only the first one to be actually loaded.

 
Column
width5%


Column
width35%

...


MAXScript Usage

...

The MDL Search Paths lists can also be accessed and controlled through MAXScript.

A single VRayMDLMtl object has to be pointed to reach its properties and methods. This can be done by collecting the available VRayMDLMtls in the scene:

...

VRAY_MDL_PATH_3DSMAX2018_x64=C:\Program Files\Chaos Group\V-Ray\3dsmax 2018 for x64\mdl;%PROGRAMDATA%\NVIDIA Corporation\mdl;%USERPROFILE%\Documents\mdl

...


Importing MDL Files from Substance Designer

...

Fancy Bullets
typecircle
  • material_emission.mode is ignored
  • material.backface is ignored
  • df::diffuse_transmission_bsdf is not supported
  • df::backscattering_glossy_reflection_bsdf is not supported
  • df::measured_bsdf is not supported
  • From the “alternative distribution functions”, only df::microfacet_ggx_smith_bsdf is implemented
  • df::measured_edf and df::spot_edf are not supported
  • df::anisotropic_vdf is not supported
  • 3D textures are not yet supported
  • The multiscatter_tint parameter in simple_glossy_bsdf, microfacet_ggx_smith_bsdf, ward_geisler_moroder_bsdf is ignored.
  • The tint (color reflection_tint, color transmission_tint, bsdf base) modifier overload for separate tinting of the reflective and transmissive light paths is not supported.

References

...

Fancy Bullets
typecircle