Is it possible to import Material X presets?

   2564   9   2
User Avatar
Member
29 posts
Joined: Oct. 2015
Offline
Hi, daft question but are there any material x presets available in H19, similar to the ones found on e.g. the principal shader? Couldn't find any when I click the cog on a mtlxstandard_surface.

I can see some examples in the official materialx repo on github, is there a way to import those into houdini?https://github.com/materialx/MaterialX/tree/main/resources/Materials/Examples/StandardSurface [github.com]
Edited by Lyubomir Popov - Dec. 5, 2021 06:26:23

Attachments:
material-x-presets.jpg (175.4 KB)

User Avatar
Staff
3949 posts
Joined: Sept. 2007
Offline
They aren't presets on an HDA yet, but they do ship with Houdini since they are part of MaterialX. You can find them in $HH/materialx/resources/Materials/Examples/StandardSurface/
The MaterialX standard test geometries and hdr lights are also in $HH/materialx/resources.

You can use a Reference LOP to reference a specific material from a file; attached is a hip file that shows how to do this.

Hope that helps!

Attachments:
reference_materialx_examples.hip (392.5 KB)
screenshot_20211206_092847.png (1.1 MB)

I'm o.d.d.
User Avatar
Member
29 posts
Joined: Oct. 2015
Offline
Thank you!
User Avatar
Member
659 posts
Joined: July 2005
Online
This works when I reference in one of the .mtlx files from the Examples folder. However, when I Right-click > Save > MaterialX (on a Standard Surface node for example), the resulting .mtlx file gives me this "Unresolved reference path" warning and no material. Any thoughts?

Attachments:
hindie_vsKSytvjym.png (82.0 KB)

User Avatar
Member
6 posts
Joined: Nov. 2017
Offline
and how to edit the .mtlx referenced.
i drag the .mtlx from scene tree to path of edit materialnode.and then i press load and nothing happen.
what is correct method to edit the .mtlx ?
User Avatar
Member
5967 posts
Joined: Sept. 2011
Offline
microvswind
and how to edit the .mtlx referenced.
i drag the .mtlx from scene tree to path of edit materialnode.and then i press load and nothing happen.
what is correct method to edit the .mtlx ?

It's working for me. Are you filling in the path to the material prim on the edit material network node?
User Avatar
Member
6 posts
Joined: Nov. 2017
Offline
yes.and the .mtlx mateial can not works above attached by @goldeleaf.

Attachments:
22.gif (1013.1 KB)

User Avatar
Member
5967 posts
Joined: Sept. 2011
Offline
microvswind
yes.and the .mtlx mateial can not works above attached by @goldeleaf.
Image Not Found

The prim referenced in your scene is broken. there's nothing there to edit.
User Avatar
Member
6 posts
Joined: Nov. 2017
Offline
jsmack
microvswind
yes.and the .mtlx mateial can not works above attached by @goldeleaf.
Image Not Found

The prim referenced in your scene is broken. there's nothing there to edit.
How to fix the prim referenced.
i create a empty scene and reference the .mtlx with this setteing.

Attachments:
123.png (581.6 KB)

User Avatar
Member
5967 posts
Joined: Sept. 2011
Offline
microvswind
jsmack
microvswind
yes.and the .mtlx mateial can not works above attached by @goldeleaf.
Image Not Found

The prim referenced in your scene is broken. there's nothing there to edit.
How to fix the prim referenced.
i create a empty scene and reference the .mtlx with this setteing.
Image Not Found

That's correct. The same referenced prim works correctly for me. Which version of Houdini are you using?

Attachments:
mtlx_reference.png (1.1 MB)

  • Quick Links