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

hdMtlx: _GetMxNodeType should use the MaterialX library to find the node type. #1538

Closed
JGamache-autodesk opened this issue Jun 15, 2021 · 2 comments

Comments

@JGamache-autodesk
Copy link
Contributor

Description of Issue

  • Local surface shaders (like a Lambert-like PBR surface for Maya export) are not recognized even though the definition file was read and the library contains the node definition.

Steps to Reproduce

  1. Copy the attached maya_surfaces.mtlx file to the local MaterialX library (I put it in libraries/bxdf of my MaterialX installation since hdSt does not declare an environment variable to define extra library paths to search).
  2. Load the attached LambertSphere.usda scene in usdView
  3. Warning: Unsupported node type 'ND_MayaLambert_surfaceshader'

I can get a working Lambert by updating _GetMxNodeType to fetch back mxDoc->getNodeDef(hdNodeType.GetString())->getNodeString(). Would that be a correct fix?

LambertSphere.zip

System Information (OS, Hardware)

Package Versions

Build Flags

@jilliene
Copy link

Filed as internal issue #USD-6734

@klucknav
Copy link
Contributor

Thank you, initially we were only supporting UsdPreviewSurface and StandardSurface node types, but we have a fix coming.

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

4 participants