BlenderUSDHydraAddon icon indicating copy to clipboard operation
BlenderUSDHydraAddon copied to clipboard

Cannot load materialx graph

Open fire opened this issue 3 years ago • 9 comments

https://github.com/AcademySoftwareFoundation/MaterialX/blob/main/resources/Materials/Examples/GltfPbr/gltf_pbr_boombox.mtlx

fire avatar Jun 23 '22 03:06 fire

  1. Install usd hydra https://github.com/GPUOpen-LibrariesAndSDKs/BlenderUSDHydraAddon/releases/tag/v1.1.1
  2. Install blender 3.2
  3. Enable
  4. Import materialx
  5. No change.
  6. Cannot put material on the mesh in blender.

fire avatar Jun 23 '22 03:06 fire

Hi, The implementation of the glTF PBR material has been added since MaterialX 1.38.4 (Add glTF PBR #861) Currently, BlenderUSDHydraAddon supports MaterialX 1.38.0.

VascoPi avatar Jun 24 '22 12:06 VascoPi

@VascoPi please make a task to update to latest MaterialX

bsavery avatar Jun 25 '22 00:06 bsavery

Sure, here's the ticket.

VascoPi avatar Jun 25 '22 06:06 VascoPi

blender_hfuCmOJdc5 blender_kVvckbhEUx

Quick review. I was successful in building HdRpr using MaterialX v1.38.4. Importer and render (Full and Interactive) work well, at the moment no issue is observed.

A discussion with HdRpr devs is needed to update MaterialX version.

VascoPi avatar Jun 25 '22 13:06 VascoPi

@bsavery An approach without updating MaterialX version, adding a single file gltf_pbr.mtlx and generating mx classes work as well.

VascoPi avatar Jun 25 '22 14:06 VascoPi

Can you post some instructions and sample blend project files?

I wanted to tell others this workflow works today without release, and whenever the version is updated, we can forward update.

fire avatar Jun 26 '22 02:06 fire

Here's the blend scene. gltf_pbr_blend_scene.zip

Here are the files you need to put into BlenderUSDHydraAddon_1.1.1_Blender_3.1_Windows.zip before installing the addon. gltf_pbr_materials.zip copy gltf_pbr.mtlx -> BlenderUSDHydraAddon_1.1.1_Blender_3.1_Windows.zip\hdusd\libs-3.10\libraries\bxdf
copy gen_gltf_pbr.py -> BlenderUSDHydraAddon_1.1.1_Blender_3.1_Windows.zip\hdusd\mx_nodes\nodes\

VascoPi avatar Jun 26 '22 05:06 VascoPi

@VascoPi When will this be in a new version of the BlenderUSDHydraAddon?

fire avatar Aug 06 '22 18:08 fire