Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot load materialx graph #253

Open
fire opened this issue Jun 23, 2022 · 9 comments
Open

Cannot load materialx graph #253

fire opened this issue Jun 23, 2022 · 9 comments
Assignees

Comments

@fire
Copy link

fire commented Jun 23, 2022

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

@fire
Copy link
Author

fire commented Jun 23, 2022

  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.

@VascoPi
Copy link
Contributor

VascoPi commented Jun 24, 2022

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.

@bsavery
Copy link
Contributor

bsavery commented Jun 25, 2022

@VascoPi please make a task to update to latest MaterialX

@VascoPi
Copy link
Contributor

VascoPi commented Jun 25, 2022

Sure, here's the ticket.

@VascoPi
Copy link
Contributor

VascoPi commented Jun 25, 2022

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
Copy link
Contributor

VascoPi commented Jun 25, 2022

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

@fire
Copy link
Author

fire commented Jun 26, 2022

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.

@VascoPi
Copy link
Contributor

VascoPi commented Jun 26, 2022

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\

@fire
Copy link
Author

fire commented Aug 6, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants