Predict Omniverse uses standard USD Material prims. To create one, either go to Create > Material and pick a material, such as OmniPBR, or drag an drop an existing MDL file (.mdl) on the Stage window. Then assign it to your geometry from the Materials on selected models fields in the Property panel.
In addition to MDL, Predict Matter supports materials that Omniverse does not, such as spectral AxF materials for instance. See the Spectrums and the Polarization sections for more explanations on the spectral and polarized aspect of the light and the materials.
To edit a material, select its Shader prim in the Stage window. Its settings appear in the Property panel:
Inputs lists the parameters defined in the material's MDL file, such as Albedo, Reflectivity and Emissive, with their default values. You can change any of them to override the default.
Uvr Material Properties controls how Predict renders the material:
Material Mode: choose MDL to render the MDL material, or AxF to use an AxF file instead.
AxF Filepath: the .axf file to use when Material Mode is set to AxF.
Material Mode is set to MDL by default, so Predict Engine renders the ful MDL material, including materials such as car paint, metal or wood.
Built-in Omniverse materials such as OmniPBR work without any setup. To use your own MDL mateirals, you first need to point out to Predict Engine where they are:
Go to Edit > Preferences > Material.
Under Custom Paths, add the folder(s) that contains your MDL library and the folder of any other MDL files that your library imports.
Finally click Save and restart USD Composer.
When the session starts, Predict uploads everything in these folders, including subfolders, to the Predict server. The server can only use MDL files that were uploaded this way. If a material, or an MDL file it depends on, is outside these folders, the server can't find it and Predict renders that object with a simple diffuse material instead.
Every file in these folders is uploaded each time a session starts, so choose folders that only hold your MDL files and their textures. A large folder such as C:\ would make the session very slow to start.
The textures are not supported yet for the Emissive Color feature, only the color will be fitted.
Measured materials are defined by the way they reflect light depending on the direction of observation, and the direction and wavelength of the light arriving on the material. This behaviour can be characterized by a function called BRDF (Bidirectional Reflectance Distribution Function). The BRDF can be measured and it can be simulated in Predict Engine.
NB : most measured materials are opaque, they only reflect the light. Depending on their definition, measures stored in a .axf file can also transmit light and be transparent.
Examples of measured materials
Example use case of measured materials
Predict Engine can simulate materials stored in X-Rite material format AxF (Appearance eXchange Format). These materials are representations of measured complex materials such as textured surfaces or car paints for instance. They are stored in one single *.axf file.
AxF files are not natively supported by USD Composer. In order to use AxF materials, you need to create a dummy material first. Inside its Shader prim, load the material filepath to AxF Filepath inside Uvr Material Properties, and then switch Material Mode to AxF. If the source file still exists on the machine, Predict Engine will use it as the representation for this material, reading the entire .AxF content to use the full, spectral data contained inside. If not, Diffuse mode will represent the material instead.
// See the source file management section bellow for more details.
Predict Engine currently supports the following AxF features (either in RGB or in Spectral depending on the Path Tracer type) :
SVBRDF (with simple clearcoat),
Carpaint (with simple clearcoat),
Volumetric (with simple clearcoat) but without absorption & scattering inside the volume (coming in future plugin).
Height maps are not currently supported.
The Emissive Color defined on materials using an AxF representation is ignored, the material will not be emissive in Predict Engine. The only data that will be used by Predict Engine is the one contained inside the .AxF file.
Spectral emissive materials in their current form are just an alpha feature. The definition of emissive materials will be updated and properly implemented in future plugins.
Instead of the Emissive Color for RGB Area light, it is also possible to use a Spectrum for the emissive part of the material in Predict Engine. To do so, you can add the spectral light filepath inside Spectral Light File. The spectral emission representation should be defined with a .XML material containing the spectrum of the light.
A material using the XML representation will be defined as follow :
The diffuse properties of the material will be fitted from the Diffuse material (see the Diffuse material section above for more details),
The emissive properties of the Diffuse Material will be ignored (except for Emissive Intensity), the spectrum defined inside the XML material will be used instead. An addition setting for the Intensity is available in the UVR Material tab to adjust the light intensity. Textured spectral emissions are not supported yet.
The xml file should be formatted as follow:
<material type="Spectral">
<entry k="1.306" n="1.422" wavelength="206.64" />
<!-- ... -->
<entry k="15.5" n="1.205" wavelength="2479.7" />
</material>
Each entry contains the sampled quantities at the specified wavelength in nanometer.
The "wavelength" is a reserved and mandatory keyword. For the corresponding quantities, there exist common keywords such as "n", "k", "value", "x", "y", "z", "r", "g", "b" but custom ones are accepted too.
If there are several quantities defined in a single .xml file (k and n in the example above), only the first one will be used in Predict Engine for Unreal Engine.