# USD and MaterialX

**URL:** <https://forums.unrealengine.com/t/usd-and-materialx/1337085>\
**Category:** Virtual Production\
**Tags:** unreal-engine, Rendering, question\
**Created:** [October 18, 2023, 8:40pm UTC](https://forums.unrealengine.com/t/usd-and-materialx/1337085 "2023-10-18T20:40:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gladiator\_FX95](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gladiator\_FX95](https://forums.unrealengine.com/u/Gladiator_FX95)\
**Post date:** [October 18, 2023, 8:40pm UTC](https://forums.unrealengine.com/t/usd-and-materialx/1337085/1 "2023-10-18T20:40:26Z")

</div>

Hi everyone!

I recently tested the usd/materialx workflow, unfortunately still unsuccessful.  
I exported from 3ds max 2023 to a simple plane, a materialX shader to which I linked a .mtx file created with QuiltiX. In the end I exported everything as USD, exported materialX and unchecked USD preview.

I imported everything into Unreal Engine 5.3.1 using USD stage, created the cache and set “render context” to mtx (I even attempted to set it before opening the usd file) but the geometry didn’t have the material assigned.  
However, I noticed that when I tried to import the .usd file, unreal created the material I had made in QuiltiX, also importing the textures. The point is that I have to assign it manually, which would be out of place on a very complex scene.

Is there anyone who has had the opportunity to use USD stage and materialX successfully and who can give advice and tell their experience?

---

<div class="post-metadata">

**Author:** ![UE\_FlavienP](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ue_flavienp/32/1194546_2.png) [@UE\_FlavienP](https://forums.unrealengine.com/u/UE_FlavienP)\
**Post date:** [October 19, 2023, 8:15am UTC](https://forums.unrealengine.com/t/usd-and-materialx/1337085/2 "2023-10-19T08:15:18Z")

</div>

Can you share the sample USD + mtlx + textures with us so we have a look?

---

<div class="post-metadata">

**Author:** ![Gladiator\_FX95](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gladiator\_FX95](https://forums.unrealengine.com/u/Gladiator_FX95)\
**Post date:** [October 19, 2023, 10:00am UTC](https://forums.unrealengine.com/t/usd-and-materialx/1337085/3 "2023-10-19T10:00:24Z")

</div>

sure, here’s the link:

> **[usd\_mtx.rar](https://onedrive.live.com/redir?resid=F203D3066F78BA05%2114231&authkey=%21AAhGHy-atv1VWlU&e=LPqhKL)**
>
> Compressed (zipped) Folder

---

<div class="post-metadata">

**Author:** ![UE\_FlavienP](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ue_flavienp/32/1194546_2.png) [@UE\_FlavienP](https://forums.unrealengine.com/u/UE_FlavienP)\
**Post date:** [October 19, 2023, 1:04pm UTC](https://forums.unrealengine.com/t/usd-and-materialx/1337085/4 "2023-10-19T13:04:58Z")

</div>

Something looks either badly formed or in a way UE is not expecting.  
I will check with dev. thanks for the sample

---

<div class="post-metadata">

**Author:** ![Gladiator\_FX95](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gladiator\_FX95](https://forums.unrealengine.com/u/Gladiator_FX95)\
**Post date:** [October 20, 2023, 7:16am UTC](https://forums.unrealengine.com/t/usd-and-materialx/1337085/5 "2023-10-20T07:16:04Z")

</div>

Thanks for your interest. I would like to understand if there is at least a work around to solve the problem.

---

<div class="post-metadata">

**Author:** ![UE\_FlavienP](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ue_flavienp/32/1194546_2.png) [@UE\_FlavienP](https://forums.unrealengine.com/u/UE_FlavienP)\
**Post date:** [October 20, 2023, 8:26am UTC](https://forums.unrealengine.com/t/usd-and-materialx/1337085/6 "2023-10-20T08:26:04Z")

</div>

Got it to work by adding the remaining part of the path “/Materials/USD\_Default” in the material binding in the USD file

rel material:binding = \</root/mtl/Material\_\_25/Materials/USD\_Default\>

---

<div class="post-metadata">

**Author:** ![gruenberger1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gruenberger1](https://forums.unrealengine.com/u/gruenberger1)\
**Post date:** [December 1, 2023, 9:36pm UTC](https://forums.unrealengine.com/t/usd-and-materialx/1337085/7 "2023-12-01T21:36:49Z")

</div>

I just downloaded the sample file from @Gladiator_FX95.  
And followed @UE_FlavienP advice to change

> rel material: binding = \</root/mtl/Material\_\_25\>

to

> rel material: binding = \</root/mtl/Material\_\_25/Materials/USD\_Default\>

I also changed the texture path of the three files that are included at the carpaint.mtlx  
Afterwards I go in Unreal to Virtual Production \> USD Stage → Render Context → mtlx  
Loading \usd\_mtx\usd\test\_usd\_carpaint.usd

But I don’t see any material:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/6/f/26f5057faf917dcfbcd357a44f8401c4c5ae46ab.jpeg)

Version: 5.3.1-28051148+++UE5+Release-5.3

---

<div class="post-metadata">

**Author:** ![UE\_FlavienP](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ue_flavienp/32/1194546_2.png) [@UE\_FlavienP](https://forums.unrealengine.com/u/UE_FlavienP)\
**Post date:** [December 4, 2023, 10:37am UTC](https://forums.unrealengine.com/t/usd-and-materialx/1337085/8 "2023-12-04T10:37:49Z")

</div>

The material is applied on a plane that loads inside the floor.  
If you just need the material, you can import the mtlx directly.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/3/2d38a9ba643289a0c874bdac2498f9493b41117b.jpeg)

---

<div class="post-metadata">

**Author:** ![SamSayonara](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SamSayonara](https://forums.unrealengine.com/u/SamSayonara)\
**Post date:** [February 22, 2024, 10:34am UTC](https://forums.unrealengine.com/t/usd-and-materialx/1337085/9 "2024-02-22T10:34:17Z")

</div>

We are conducting tests with **USD** and **MaterialX**. I’ve taken the file from this forum post, but I haven’t been able to make it work. When we import the complete USD, Unreal Engine is able to read the material, but it doesn’t automatically connect the textures, and we can’t connect them unless we import them from outside.

However, we’ve successfully read the same USD file in **Maya 2024** using **LookdevX** , and it works flawlessly, recognizing the textures and everything. Back in Unreal Engine, if we automatically create the **USDPreview** in **Maya 2024** , the USDPreview material can indeed read the textures, but the MaterialX material still doesn’t connect them.

We’ve also conducted tests with a predefined asset using **USDPreview** , and it works without any issues. However, when we try to read the MaterialX material within the context, it doesn’t correctly create the MaterialX attributes.

We understand that having the `.mtlx` file is a necessary step, but even with the examples from [materialx.org](http://materialx.org), we haven’t been able to replicate its use in USD.

Is there any example where USD works with MaterialX, USDPreview, and different contexts in **UE5.3**? This would help us analyze and identify where we might be going wrong. Thank you.

---

<div class="post-metadata">

**Author:** ![UE\_FlavienP](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ue_flavienp/32/1194546_2.png) [@UE\_FlavienP](https://forums.unrealengine.com/u/UE_FlavienP)\
**Post date:** [February 26, 2024, 2:33pm UTC](https://forums.unrealengine.com/t/usd-and-materialx/1337085/10 "2024-02-26T14:33:32Z")

</div>

The Open Chess Set example here [assets/full\_assets/OpenChessSet at main · usd-wg/assets · GitHub](https://github.com/usd-wg/assets/tree/main/full_assets/OpenChessSet) that combines USD + mtlx works in UE5.3.

---

<div class="post-metadata">

**Author:** ![DAZEOFHEAVEN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DAZEOFHEAVEN](https://forums.unrealengine.com/u/DAZEOFHEAVEN)\
**Post date:** [March 1, 2024, 2:03am UTC](https://forums.unrealengine.com/t/usd-and-materialx/1337085/11 "2024-03-01T02:03:17Z")

</div>

No luck with the chess set. Comes in without textures and throws a ton of errors. This is the top-level USDA file in the directory and loads into Houdini Solaris without issue. No idea what I’m doing wrong.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/f/0/bf068573f3933c8ad45a2749e03afa262f5f5e79.png)

---

<div class="post-metadata">

**Author:** ![UE\_FlavienP](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ue_flavienp/32/1194546_2.png) [@UE\_FlavienP](https://forums.unrealengine.com/u/UE_FlavienP)\
**Post date:** [March 1, 2024, 11:37am UTC](https://forums.unrealengine.com/t/usd-and-materialx/1337085/12 "2024-03-01T11:37:15Z")

</div>

Did you enable the materialx render context?  
By default UE is not using it

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/4/2d4ff7df6643e0396ae42512c31fc26281ca9c1a.jpeg)

---

<div class="post-metadata">

**Author:** ![DAZEOFHEAVEN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DAZEOFHEAVEN](https://forums.unrealengine.com/u/DAZEOFHEAVEN)\
**Post date:** [March 2, 2024, 12:12am UTC](https://forums.unrealengine.com/t/usd-and-materialx/1337085/13 "2024-03-02T00:12:08Z")

</div>

Sorry, I did, and it totally works now, thank you, my mistake.

I do have a related question about the chess set (this may be a shot in the dark?) : How does Unreal know to use the standard surface shader in this chess set rather than the preview shaders that show up in the USD project settings? Whenever I try to bring my own assets in, it will use an automatically assigned preview shader from Houdini instead of the material X standard surface model …and when I bypass the auto-generation of the preview shader in Houdini , my stage shows a mtlx standard surface assigned to the asset similarly to the chess set, but I get basically empty materials inside of unreal when switching to the mtlx context.  
To clarify the preview shaders only display textures in the unreal or universal render context despite being autogenerated from a material X shader in Houdini. Anyway, super confusing but if you have any recommendations about how to solve this or where to look for answers I would greatly appreciate it.

---

<div class="post-metadata">

**Author:** ![UE\_FlavienP](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ue_flavienp/32/1194546_2.png) [@UE\_FlavienP](https://forums.unrealengine.com/u/UE_FlavienP)\
**Post date:** [March 4, 2024, 11:34am UTC](https://forums.unrealengine.com/t/usd-and-materialx/1337085/14 "2024-03-04T11:34:26Z")

</div>

In USD you can have several material definition for a material and UE allows you to switch between them. In USD stage you can see them in Options \> Render context \> Universal/Unreal/MaterialX/MDL. In USD import you have it in the USD Import Options dialog \> USD Options \> Render Context to Import.

- Universal: is reading the default material definition in the USD
- Unreal: is the **default option** , and is reading either an Unreal Material if it is specified or else will default to the same than universal.
- MaterialX: if your material is using a MaterialX definition (as external file and not embedded in USD)
- MDL: if your material is using an MDL definition.

**Unreal** material is basically reference to a path to an unreal asset in your project. When you export USD from UE you will always get the Unreal Material definition exported.  
This is what you see in your case: you exported from UE so the Unreal material definition is present in the USD + UE default render context is “Unreal” so UE reads the USD and then tries to load the unreal material path that is empty because you did not copy your unreal material in the new project.

> [@USD round trip- can you export from/to UE perfectly?](https://forums.unrealengine.com/t/usd-round-trip-can-you-export-from-to-ue-perfectly/1388735/2):
>
> Hello in USD you can have several material definition for a material and UE allows you to switch between them. In USD stage you can see them in Options \> Render context \> Universal/Unreal/MaterialX/MDL. In USD import you have it in the USD Import Options dialog \> USD Options \> Render Context to Import. Universal: is reading the default material definition in the USD Unreal: is the default option, and is reading either an Unreal Material if it is specified or else will default to the same than…

If your materials look empty when switching to MaterialX, that means there is an issue in UE reading MaterialX info from your USD. Either how the materialX is defined or how it is referenced inside the USD file.

Is your MaterialX referenced in your USD as an external MaterialX file or is it all embedded inside the USD file?

Do you get any warnings / errors?  
Did you try to load the MaterialX file directly in UE and see if it comes properly?

---

<div class="post-metadata">

**Author:** ![C\_A\_N\_S](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@C\_A\_N\_S](https://forums.unrealengine.com/u/C_A_N_S)\
**Post date:** [March 19, 2024, 1:34pm UTC](https://forums.unrealengine.com/t/usd-and-materialx/1337085/15 "2024-03-19T13:34:24Z")

</div>

I am having the same issues as above with USD and MTLX. I have a feeling that I might be misunderstanding how unreal is reading the files. It appears that my USD Preview material is appearing with appropriate maps assigned(also applied to the mesh) but my mtlx standard surface shader is not. The mtlx is within the usd and not a standalone mtlx file.

---

<div class="post-metadata">

**Author:** ![UE\_FlavienP](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ue_flavienp/32/1194546_2.png) [@UE\_FlavienP](https://forums.unrealengine.com/u/UE_FlavienP)\
**Post date:** [March 19, 2024, 2:22pm UTC](https://forums.unrealengine.com/t/usd-and-materialx/1337085/16 "2024-03-19T14:22:28Z")

</div>

Hello, is it a sample you could share with US?  
Which software generated that USD?

---

<div class="post-metadata">

**Author:** ![C\_A\_N\_S](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@C\_A\_N\_S](https://forums.unrealengine.com/u/C_A_N_S)\
**Post date:** [March 21, 2024, 1:02pm UTC](https://forums.unrealengine.com/t/usd-and-materialx/1337085/17 "2024-03-21T13:02:36Z")

</div>

Hi thanks for the reply. Ill share two samples now, neither of which i have gotten working. We used maya for modelling and then Houdini for material assignment for the tree( the mtlx file is within this usd). For the cube, I just mede it in maya and used quiltx to assign the external mtlx.

I will also attach screenshots showing how each appear in maya vs unreal, Im a new account so i cant add them in this post. I have the same issue with both files:

[Here are the files:](https://we.tl/t-mp2CNR0ddC)

In each folder The USD i am loading is in Export\USD\master

I appreciate the help.

---

<div class="post-metadata">

**Author:** ![C\_A\_N\_S](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@C\_A\_N\_S](https://forums.unrealengine.com/u/C_A_N_S)\
**Post date:** [March 21, 2024, 1:03pm UTC](https://forums.unrealengine.com/t/usd-and-materialx/1337085/18 "2024-03-21T13:03:51Z")

</div>

This is how they appear in maya vs unreal

 ![Unreal_Issue_external_mtlx_Maya](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/c/95c90d8b0fe0dd3160ef1ee64dde8f4c678508bc.png)

---

<div class="post-metadata">

**Author:** ![C\_A\_N\_S](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@C\_A\_N\_S](https://forums.unrealengine.com/u/C_A_N_S)\
**Post date:** [March 21, 2024, 1:04pm UTC](https://forums.unrealengine.com/t/usd-and-materialx/1337085/19 "2024-03-21T13:04:35Z")

</div>

![Unreal_Issue_external_mtlx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/4/3/f43448eacdd4105df7f34557774197072fc026a0.jpeg)

---

<div class="post-metadata">

**Author:** ![kwagongowl](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kwagongowl/32/971594_2.png) [@kwagongowl](https://forums.unrealengine.com/u/kwagongowl)\
**Post date:** [May 7, 2024, 5:17am UTC](https://forums.unrealengine.com/t/usd-and-materialx/1337085/20 "2024-05-07T05:17:52Z")

</div>

how did you do this, I loaded the same usd and got this.

 ![Screenshot 2024-05-07 131639](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/3/18303cae195bf2cb30ea5bc81192fea212e4d0ae.jpeg)

[Next page](https://forums.unrealengine.com/t/usd-and-materialx/1337085.md?page=2)
