You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're attempting to add MaterialX support in Blender, and hitting this issue where ND_surface includes a EDF input. However , hdSt always fails with the following.
I've tried removing it from the output usda file, and it still seems to try and pick it up.
It looks like this is because the ND_standard_surface lofts up the EDF attribute and hdSt fails to deal with it. Instead of just ignoring it during the compile, it just outright fails.
Is there a workaround for this that anyone might know of in the meantime?
Warning: in _ValidateCompilation at line 229 of /Users/dhruvgovil/Projects/usd/pxr/imaging/hdSt/glslProgram.cpp -- Failed to compile shader (FRAGMENT_SHADER): program_source:1200:5: error: unknown type name 'EDF'
EDF edf;
^
Warning: in _ValidateCompilation at line 229 of /Users/dhruvgovil/Projects/usd/pxr/imaging/hdSt/glslProgram.cpp -- Failed to compile shader (FRAGMENT_SHADER): program_source:1137:5: error: unknown type name 'EDF'
EDF edf;
^
Warning: in _ValidateCompilation at line 229 of /Users/dhruvgovil/Projects/usd/pxr/imaging/hdSt/glslProgram.cpp -- Failed to compile shader (FRAGMENT_SHADER): program_source:2457:5: error: unknown type name 'EDF'
EDF edf;
^
Warning: in _ValidateCompilation at line 229 of /Users/dhruvgovil/Projects/usd/pxr/imaging/hdSt/glslProgram.cpp -- Failed to compile shader (FRAGMENT_SHADER): program_source:2394:5: error: unknown type name 'EDF'
EDF edf;
^
ERROR: Usdview encountered an error while rendering.
Error in '&pxrInternal_v0_24__pxrReserved__::HdSt_DrawBatch::_GetDrawingProgram' at line 408 in file /Users/dhruvgovil/Projects/usd/pxr/imaging/hdSt/drawBatch.cpp : 'Failed to compile shader for prim /root/Plane/Plane.'
Error in '&pxrInternal_v0_24__pxrReserved__::HdSt_DrawBatch::_GetDrawingProgram' at line 408 in file /Users/dhruvgovil/Projects/usd/pxr/imaging/hdSt/drawBatch.cpp : 'Failed to compile shader for prim /root/Sphere/Sphere.'
Steps to Reproduce
Load the usda or mtlx file here in usdview, and look for the warnings in the terminal Diffuse Graphs.zip
System Information (OS, Hardware)
Happens on macOS and Linux
Package Versions
USD 24.3/24.5 with MaterialX 1.38.6 and MaterialX 1.38.10
The text was updated successfully, but these errors were encountered:
dgovil
added a commit
to dgovil/USD
that referenced
this issue
Jun 3, 2024
Description of Issue
We're attempting to add MaterialX support in Blender, and hitting this issue where
ND_surface
includes aEDF
input. However , hdSt always fails with the following.I've tried removing it from the output usda file, and it still seems to try and pick it up.
It looks like this is because the ND_standard_surface lofts up the EDF attribute and hdSt fails to deal with it. Instead of just ignoring it during the compile, it just outright fails.
Is there a workaround for this that anyone might know of in the meantime?
Steps to Reproduce
Diffuse Graphs.zip
System Information (OS, Hardware)
Happens on macOS and Linux
Package Versions
USD 24.3/24.5 with MaterialX 1.38.6 and MaterialX 1.38.10
The text was updated successfully, but these errors were encountered: