Hello,
I've created an MDL file based on the "flake paint" material, available in Substance Designer by default. I've created all the necessary parameters to get a great looking carpaint. It looks perfect in the Substance Designer 3D View, as well as exports to file without any errors.
I created the MDL in Substance Designer 2018.3.4 because any version thereafter creates the MDL with MDL core v1.5 or newer, which to the best of my ability to find, is not supported in VRay. It's important for my pipeline work to be able to use the same MDL file in Maya/Vray and UE4.
When I try to import this file to UE4 4.26.2, or to Maya 2020.4 with VRay 5.0, I get errors and it fails to import.
I've attached my working sbs as well as the exported MDL module. Any help on this topic would be greatly appreciated!
The error messages:
In UE4 4.26.2:
C:\Users\xxxxx\xxxxx\xxxxxx\xxxxxx\nvdia_flake_paint\Nvidia_Flake_Paint_Template.mdl(120,11): 'nvidia::core_definitions' is not a package or module name
C:\Users\xxxxx\xxxxx\xxxxxx\xxxxxx\nvdia_flake_paint\Nvidia_Flake_Paint_Template.mdl(17,10): could not find module '::nvidia::core_definitions' in module path
No materials are present in the MDL module!
In Maya 2020.4/VRay 5.0:
// Error: V-Ray : Error while loading MDL module from 'C:/Users/xxxxx/xxxxx/xxxxxx/xxxxxx/nvdia_flake_paint/nvdia_flake_paint/Nvidia_Flake_Paint_Template.mdl': [MDLIntegrator::loadModule] -2: Could not load module "::Nvidia_Flake_Paint_Template" (-2) //