Hi,
We maintain a MaterialX 1.39 / OpenPBR (open_pbr_surface) material library. The same .mtlx files render consistently with Arnold and V-Ray in Maya and 3ds Max, and in usdview. To get the same look in UE 5.8, we load them through a USD stage actor with render context mtlx, or import the .mtlx directly. In both cases the materials Interchange generates (Substrate, Adaptive GBuffer) need the following changes before they match.
We currently apply all of these by editing the generated UMaterial graphs after import. We'd like to know which of them are known issues or planned fixes, and whether there's a supported hook for them.
- Texture coordinates use Unreal's V convention
- The USD importer flips mesh UVs (USDGeomMeshConversion.cpp, "Flip V for Unreal uv's which match directx").
- Interchange translates texcoord as a plain TextureCoordinate (ConnectTexCoordInputToOutput) and samples images at the computed coordinates unchanged.
- A plain lookup still comes out right because the two flips cancel. Any UV transform in the graph is mirrored, though:
- rotate2d or a rotation built from math nodes turns the other way (+10° becomes −10°);
- V offsets move the other way;
- non-integer V tiling shifts.
- ramptb/splittb/ramp4 with an unconnected texcoord run upside down.
- Our workaround: insert v → 1 − v after every TextureCoordinate, and again on the UVs of every texture lookup that doesn't read a TextureCoordinate directly.
- Anisotropy follows Unreal's convention, not OpenPBR's
- MF_Substrate_OpenPBR_Opaque / _Translucent pass specular_roughness_anisotropy (and coat_roughness_anisotropy) only clamped into the Substrate slab's Anisotropy, and specular_roughness into Roughness.
- Substrate uses ax = α(1 + A), ay = α(1 − A) (BRDF.ush, GetAnisotropicRoughness).
- OpenPBR defines {{α_t = r²·√(2 / (1 + (1 − A)²))}} and α_b = (1 − A)·α_t.
- The result: anisotropic metals render too stretched and too sharp across the stretch.
- Our workaround converts the pair before the function call: A_ue = A / (2 − A), {{r_ue² = r²·√(2 / (1 + (1 − A)²))·(2 − A) / 2}}. This is exact, and the identity at A = 0.
- normalmap is passed through without decoding
- With scale = 1, ConnectNormalMapInputToOutput connects in straight to the target input.
- That is only correct when in is a texture that Unreal samples as a normal map.
- A computed vector, such as a geometry_tangent built from a direction texture, arrives still encoded in 0..1 and in MaterialX's +Y tangent frame.
- Our workaround: (2x − 1, 1 − 2y, 2z − 1) on such inputs.
- Normal maps are imported without a green flip
- Textures feeding normalmap don't get bFlipGreenChannel.
- Our maps are OpenGL-style (+Y), as usual for MaterialX/Arnold/V-Ray content, so the relief renders inverted.
- Our workaround: set bFlipGreenChannel on textures that feed a normalmap directly.
- <position> arrives in metres
- ConnectPositionInputToOutput multiplies LocalPosition/WorldPosition by a constant 0.01, regardless of the USD stage's metersPerUnit.
- Graphs authored for centimetre scenes come out 100× too large: noise patch sizes, flake sizes, height thresholds.
- Our workaround: replace the 0.01 with the stage's scale (1.0 for cm).
We can provide minimal .mtlx and USD repro files for each point.
Thanks!