Open fire opened 2 years ago
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 please make a task to update to latest MaterialX
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.
@bsavery An approach without updating MaterialX version, adding a single file gltf_pbr.mtlx and generating mx classes work as well.
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.
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 When will this be in a new version of the BlenderUSDHydraAddon?
https://github.com/AcademySoftwareFoundation/MaterialX/blob/main/resources/Materials/Examples/GltfPbr/gltf_pbr_boombox.mtlx