(These tests were run on Linux, and assume you first cd into matx_tests dir) # Results - Basic Parameter Override ## One mtlx file, just setting inputs to a standard shader WORKS (same) usdview "red_onefile_onenode.usda" # Results - Image File ## One mtlx file, with image node hooked up to a standard shader FAILS (same) usdview "wood_onefile_twonodes.usda" (No error message - texture node simply not created) ## One mtlx file, with the image node in a nodegraph WORKS (same) usdview wood_onefile_nodegraph.usda ## One mtlx file, with a custom nodedef wrapping an image node FAILS (same) usdview wood_onefile_nodedef.usda Warning: in _AddMaterialXNode at line 206 of /src/USD/usd_build/USD/src/pxr/imaging/hdMtlx/hdMtlx.cpp -- NodeDef not found for Node 'sillyimage_nodedef' PXR_MTLX_PLUGIN_SEARCH_PATHS=$PWD usdview wood_onefile_nodedef.usda ERROR: Usdview encountered an error while rendering.Child name is not unique: surface_material_node PXR_MTLX_STDLIB_SEARCH_PATHS=$PWD usdview wood_onefile_nodedef.usda ERROR: Usdview encountered an error while rendering.Child name is not unique: surface_material_node ## Separate material + nodedef files, using an xml include statement FAILS (same) usdview wood_twofiles_nodedef_subfolder_include/wood_twofiles_nodedef_subfolder_include.usda PXR_MTLX_PLUGIN_SEARCH_PATHS=$PWD usdview wood_twofiles_nodedef_subfolder_include/wood_twofiles_nodedef_subfolder_include.usda ERROR: Usdview encountered an error while rendering.Child name is not unique: surface_material_node PXR_MTLX_PLUGIN_SEARCH_PATHS=$PWD/wood_twofiles_nodedef_subfolder_include usdview wood_twofiles_nodedef_subfolder_include/wood_twofiles_nodedef_subfolder_include.usda ERROR: Usdview encountered an error while rendering.Child name is not unique: surface_material_node PXR_MTLX_PLUGIN_SEARCH_PATHS=$PWD/wood_twofiles_nodedef_subfolder_include/nodedefs usdview wood_twofiles_nodedef_subfolder_include/wood_twofiles_nodedef_subfolder_include.usda Warning: in _ValidateCompilation at line 216 of /src/USD/usd_build/USD/src/pxr/imaging/hdSt/glslProgram.cpp -- Failed to compile shader (FRAGMENT_SHADER): 0(2969) : error C1503: undefined variable "diffColor_sillynode_file_input" ERROR: Usdview encountered an error while rendering. Error in 'pxrInternal_v0_22__pxrReserved__::HdSt_DrawBatch::_GetDrawingProgram' at line 274 in file /src/USD/usd_build/USD/src/pxr/imaging/hdSt/drawBatch.cpp : 'Failed to compile shader for prim /mxCapsule/geom.' PXR_MTLX_STDLIB_SEARCH_PATHS=$PWD usdview wood_twofiles_nodedef_subfolder_include/wood_twofiles_nodedef_subfolder_include.usda ERROR: Usdview encountered an error while rendering.Child name is not unique: surface_material_node PXR_MTLX_STDLIB_SEARCH_PATHS=$PWD/wood_twofiles_nodedef_subfolder_include usdview wood_twofiles_nodedef_subfolder_include/wood_twofiles_nodedef_subfolder_include.usda ERROR: Usdview encountered an error while rendering.Child name is not unique: surface_material_node PXR_MTLX_STDLIB_SEARCH_PATHS=$PWD/wood_twofiles_nodedef_subfolder_include/nodedefs usdview wood_twofiles_nodedef_subfolder_include/wood_twofiles_nodedef_subfolder_include.usda Warning: in _ValidateCompilation at line 216 of /src/USD/usd_build/USD/src/pxr/imaging/hdSt/glslProgram.cpp -- Failed to compile shader (FRAGMENT_SHADER): 0(2969) : error C1503: undefined variable "diffColor_sillynode_file_input" ERROR: Usdview encountered an error while rendering. Error in 'pxrInternal_v0_22__pxrReserved__::HdSt_DrawBatch::_GetDrawingProgram' at line 274 in file /src/USD/usd_build/USD/src/pxr/imaging/hdSt/drawBatch.cpp : 'Failed to compile shader for prim /mxCapsule/geom.' ## Separate material + nodedef files (using search-path env vars) FAILS (same) usdview wood_twofiles_nodedef_subfolder/wood_twofiles_nodedef_subfolder.usda Warning (secondary thread): in _ConnectPorts at line 896 of /src/USD/usd_build/USD/src/pxr/usd/usdMtlx/reader.cpp -- Output for missing PXR_MTLX_PLUGIN_SEARCH_PATHS=$PWD usdview wood_twofiles_nodedef_subfolder/wood_twofiles_nodedef_subfolder.usda Warning (secondary thread): in _ConnectPorts at line 896 of /src/USD/usd_build/USD/src/pxr/usd/usdMtlx/reader.cpp -- Output for missing ERROR: Usdview encountered an error while rendering.Child name is not unique: surface_material_node PXR_MTLX_PLUGIN_SEARCH_PATHS=$PWD/wood_twofiles_nodedef_subfolder usdview wood_twofiles_nodedef_subfolder/wood_twofiles_nodedef_subfolder.usda Warning (secondary thread): in _ConnectPorts at line 896 of /src/USD/usd_build/USD/src/pxr/usd/usdMtlx/reader.cpp -- Output for missing ERROR: Usdview encountered an error while rendering.Child name is not unique: surface_material_node PXR_MTLX_PLUGIN_SEARCH_PATHS=$PWD/wood_twofiles_nodedef_subfolder/nodedefs usdview wood_twofiles_nodedef_subfolder/wood_twofiles_nodedef_subfolder.usda Warning (secondary thread): in _ConnectPorts at line 896 of /src/USD/usd_build/USD/src/pxr/usd/usdMtlx/reader.cpp -- Output for missing PXR_MTLX_STDLIB_SEARCH_PATHS=$PWD usdview wood_twofiles_nodedef_subfolder/wood_twofiles_nodedef_subfolder.usda ERROR: Usdview encountered an error while rendering.Child name is not unique: surface_material_node PXR_MTLX_STDLIB_SEARCH_PATHS=$PWD/wood_twofiles_nodedef_subfolder usdview wood_twofiles_nodedef_subfolder/wood_twofiles_nodedef_subfolder.usda ERROR: Usdview encountered an error while rendering.Child name is not unique: surface_material_node PXR_MTLX_STDLIB_SEARCH_PATHS=$PWD/wood_twofiles_nodedef_subfolder/nodedefs usdview wood_twofiles_nodedef_subfolder/wood_twofiles_nodedef_subfolder.usda Warning: in _ValidateCompilation at line 216 of /src/USD/usd_build/USD/src/pxr/imaging/hdSt/glslProgram.cpp -- Failed to compile shader (FRAGMENT_SHADER): 0(2969) : error C1503: undefined variable "diffColor_sillynode_file_input" ERROR: Usdview encountered an error while rendering. Error in 'pxrInternal_v0_22__pxrReserved__::HdSt_DrawBatch::_GetDrawingProgram' at line 274 in file /src/USD/usd_build/USD/src/pxr/imaging/hdSt/drawBatch.cpp : 'Failed to compile shader for prim /mxCapsule/geom.' ## Separate material + nodedef files (using search-path env vars, with extra folder level for libraries) FAILS (same) usdview wood_twofiles_nodedef_subsubfolder/wood_twofiles_nodedef_subsubfolder.usda Warning (secondary thread): in _ConnectPorts at line 896 of /src/USD/usd_build/USD/src/pxr/usd/usdMtlx/reader.cpp -- Output for missing PXR_MTLX_PLUGIN_SEARCH_PATHS=$PWD usdview wood_twofiles_nodedef_subsubfolder/wood_twofiles_nodedef_subsubfolder.usda Warning (secondary thread): in _ConnectPorts at line 896 of /src/USD/usd_build/USD/src/pxr/usd/usdMtlx/reader.cpp -- Output for missing ERROR: Usdview encountered an error while rendering.Child name is not unique: surface_material_node PXR_MTLX_PLUGIN_SEARCH_PATHS=$PWD/wood_twofiles_nodedef_subsubfolder usdview wood_twofiles_nodedef_subsubfolder/wood_twofiles_nodedef_subsubfolder.usda Warning: in _ConnectPorts at line 896 of /src/USD/usd_build/USD/src/pxr/usd/usdMtlx/reader.cpp -- Output for missing ERROR: Usdview encountered an error while rendering.Child name is not unique: surface_material_node PXR_MTLX_PLUGIN_SEARCH_PATHS=$PWD/wood_twofiles_nodedef_subsubfolder/libraries usdview wood_twofiles_nodedef_subsubfolder/wood_twofiles_nodedef_subsubfolder.usda Warning (secondary thread): in _ConnectPorts at line 896 of /src/USD/usd_build/USD/src/pxr/usd/usdMtlx/reader.cpp -- Output for missing PXR_MTLX_PLUGIN_SEARCH_PATHS=$PWD/wood_twofiles_nodedef_subsubfolder/libraries/sillylib usdview wood_twofiles_nodedef_subsubfolder/wood_twofiles_nodedef_subsubfolder.usda Warning (secondary thread): in _ConnectPorts at line 896 of /src/USD/usd_build/USD/src/pxr/usd/usdMtlx/reader.cpp -- Output for missing PXR_MTLX_PLUGIN_SEARCH_PATHS=$PWD/wood_twofiles_nodedef_subsubfolder/third usdview wood_twofiles_nodedef_subsubfolder/wood_twofiles_nodedef_subsubfolder.usda Warning (secondary thread): in _ConnectPorts at line 896 of /src/USD/usd_build/USD/src/pxr/usd/usdMtlx/reader.cpp -- Output for missing PXR_MTLX_PLUGIN_SEARCH_PATHS=$PWD/wood_twofiles_nodedef_subsubfolder/third/libraries usdview wood_twofiles_nodedef_subsubfolder/wood_twofiles_nodedef_subsubfolder.usda Warning: in _ConnectPorts at line 896 of /src/USD/usd_build/USD/src/pxr/usd/usdMtlx/reader.cpp -- Output for missing PXR_MTLX_PLUGIN_SEARCH_PATHS=$PWD/wood_twofiles_nodedef_subsubfolder/third/libraries/sillylib usdview wood_twofiles_nodedef_subsubfolder/wood_twofiles_nodedef_subsubfolder.usda Warning (secondary thread): in _ConnectPorts at line 896 of /src/USD/usd_build/USD/src/pxr/usd/usdMtlx/reader.cpp -- Output for missing PXR_MTLX_STDLIB_SEARCH_PATHS=$PWD usdview wood_twofiles_nodedef_subsubfolder/wood_twofiles_nodedef_subsubfolder.usda ERROR: Usdview encountered an error while rendering.Child name is not unique: surface_material_node PXR_MTLX_STDLIB_SEARCH_PATHS=$PWD/wood_twofiles_nodedef_subsubfolder usdview wood_twofiles_nodedef_subsubfolder/wood_twofiles_nodedef_subsubfolder.usda ERROR: Usdview encountered an error while rendering.Child name is not unique: surface_material_node PXR_MTLX_STDLIB_SEARCH_PATHS=$PWD/wood_twofiles_nodedef_subsubfolder/libraries usdview wood_twofiles_nodedef_subsubfolder/wood_twofiles_nodedef_subsubfolder.usda Warning: in _ValidateCompilation at line 216 of /src/USD/usd_build/USD/src/pxr/imaging/hdSt/glslProgram.cpp -- Failed to compile shader (FRAGMENT_SHADER): 0(2969) : error C1503: undefined variable "diffColor_sillynode_file_input" ERROR: Usdview encountered an error while rendering. Error in 'pxrInternal_v0_22__pxrReserved__::HdSt_DrawBatch::_GetDrawingProgram' at line 274 in file /src/USD/usd_build/USD/src/pxr/imaging/hdSt/drawBatch.cpp : 'Failed to compile shader for prim /mxCapsule/geom.' PXR_MTLX_STDLIB_SEARCH_PATHS=$PWD/wood_twofiles_nodedef_subsubfolder/libraries/sillylib usdview wood_twofiles_nodedef_subsubfolder/wood_twofiles_nodedef_subsubfolder.usda Warning: in _ValidateCompilation at line 216 of /src/USD/usd_build/USD/src/pxr/imaging/hdSt/glslProgram.cpp -- Failed to compile shader (FRAGMENT_SHADER): 0(2969) : error C1503: undefined variable "diffColor_sillynode_file_input" ERROR: Usdview encountered an error while rendering. Error in 'pxrInternal_v0_22__pxrReserved__::HdSt_DrawBatch::_GetDrawingProgram' at line 274 in file /src/USD/usd_build/USD/src/pxr/imaging/hdSt/drawBatch.cpp : 'Failed to compile shader for prim /mxCapsule/geom.' PXR_MTLX_STDLIB_SEARCH_PATHS=$PWD/wood_twofiles_nodedef_subsubfolder/third usdview wood_twofiles_nodedef_subsubfolder/wood_twofiles_nodedef_subsubfolder.usda Warning: in _ValidateCompilation at line 216 of /src/USD/usd_build/USD/src/pxr/imaging/hdSt/glslProgram.cpp -- Failed to compile shader (FRAGMENT_SHADER): 0(2969) : error C1503: undefined variable "diffColor_sillynode_file_input" ERROR: Usdview encountered an error while rendering. Error in 'pxrInternal_v0_22__pxrReserved__::HdSt_DrawBatch::_GetDrawingProgram' at line 274 in file /src/USD/usd_build/USD/src/pxr/imaging/hdSt/drawBatch.cpp : 'Failed to compile shader for prim /mxCapsule/geom.' PXR_MTLX_STDLIB_SEARCH_PATHS=$PWD/wood_twofiles_nodedef_subsubfolder/third/libraries usdview wood_twofiles_nodedef_subsubfolder/wood_twofiles_nodedef_subsubfolder.usda Warning: in _ValidateCompilation at line 216 of /src/USD/usd_build/USD/src/pxr/imaging/hdSt/glslProgram.cpp -- Failed to compile shader (FRAGMENT_SHADER): 0(2969) : error C1503: undefined variable "diffColor_sillynode_file_input" ERROR: Usdview encountered an error while rendering. Error in 'pxrInternal_v0_22__pxrReserved__::HdSt_DrawBatch::_GetDrawingProgram' at line 274 in file /src/USD/usd_build/USD/src/pxr/imaging/hdSt/drawBatch.cpp : 'Failed to compile shader for prim /mxCapsule/geom.' PXR_MTLX_STDLIB_SEARCH_PATHS=$PWD/wood_twofiles_nodedef_subsubfolder/third/libraries/sillylib usdview wood_twofiles_nodedef_subsubfolder/wood_twofiles_nodedef_subsubfolder.usda Warning: in _ValidateCompilation at line 216 of /src/USD/usd_build/USD/src/pxr/imaging/hdSt/glslProgram.cpp -- Failed to compile shader (FRAGMENT_SHADER): 0(2969) : error C1503: undefined variable "diffColor_sillynode_file_input" ERROR: Usdview encountered an error while rendering. Error in 'pxrInternal_v0_22__pxrReserved__::HdSt_DrawBatch::_GetDrawingProgram' at line 274 in file /src/USD/usd_build/USD/src/pxr/imaging/hdSt/drawBatch.cpp : 'Failed to compile shader for prim /mxCapsule/geom.' # Results - Checkerboard Shader Graph ## One mtlx file, with one big shader graph FAILS (same) usdview checker_onefile_nodegraph.usda material loads, but just shiny black with no checker (no errors) ## One mtlx file, with a custom checkerboard nodedef in it FAILS (same) usdview checker_onefile_nodedef.usda Warning: in _AddMaterialXNode at line 206 of /src/USD/usd_build/USD/src/pxr/imaging/hdMtlx/hdMtlx.cpp -- NodeDef not found for Node 'ND_checker_float' ## One mtlx file, with one big shader graph (and declared input) FAILS (same) usdview checker_onefile_nodegraphWithInput.usda material loads, but just shiny black with no checker Warning: in _AddInputCommon at line 811 of /src/USD/usd_build/USD/src/pxr/usd/usdMtlx/reader.cpp -- No interface name 'scale' for node 'in2' ## Separate material + nodedef files (using search-path env vars) FAILS (same) usdview checker_twofiles_nodedef_subfolder/checker_twofiles_nodedef_subfolder.usda Warning (secondary thread): in _ConnectPorts at line 896 of /src/USD/usd_build/USD/src/pxr/usd/usdMtlx/reader.cpp -- Output for missing PXR_MTLX_PLUGIN_SEARCH_PATHS=$PWD usdview checker_twofiles_nodedef_subfolder/checker_twofiles_nodedef_subfolder.usda Warning: in _ConnectPorts at line 896 of /src/USD/usd_build/USD/src/pxr/usd/usdMtlx/reader.cpp -- Output for missing ERROR: Usdview encountered an error while rendering.Child name is not unique: surface_material_node PXR_MTLX_PLUGIN_SEARCH_PATHS=$PWD/checker_twofiles_nodedef_subfolder usdview checker_twofiles_nodedef_subfolder/checker_twofiles_nodedef_subfolder.usda Warning (secondary thread): in _ConnectPorts at line 896 of /src/USD/usd_build/USD/src/pxr/usd/usdMtlx/reader.cpp -- Output for missing ERROR: Usdview encountered an error while rendering.Child name is not unique: surface_material_node PXR_MTLX_PLUGIN_SEARCH_PATHS=$PWD/checker_twofiles_nodedef_subfolder/nodedefs usdview checker_twofiles_nodedef_subfolder/checker_twofiles_nodedef_subfolder.usda Warning: in _ConnectPorts at line 896 of /src/USD/usd_build/USD/src/pxr/usd/usdMtlx/reader.cpp -- Output for missing PXR_MTLX_STDLIB_SEARCH_PATHS=$PWD usdview checker_twofiles_nodedef_subfolder/checker_twofiles_nodedef_subfolder.usda ERROR: Usdview encountered an error while rendering.Child name is not unique: surface_material_node PXR_MTLX_STDLIB_SEARCH_PATHS=$PWD/checker_twofiles_nodedef_subfolder usdview checker_twofiles_nodedef_subfolder/checker_twofiles_nodedef_subfolder.usda ERROR: Usdview encountered an error while rendering.Child name is not unique: surface_material_node PXR_MTLX_STDLIB_SEARCH_PATHS=$PWD/checker_twofiles_nodedef_subfolder/nodedefs usdview checker_twofiles_nodedef_subfolder/checker_twofiles_nodedef_subfolder.usda material loads, but just shiny black with no checker ## Separate material + nodedef files (using search-path env vars, with extra folder level for libraries) FAILS (same) usdview checker_twofiles_nodedef_subsubfolder/checker_twofiles_nodedef_subsubfolder.usda Warning: in _ConnectPorts at line 896 of /src/USD/usd_build/USD/src/pxr/usd/usdMtlx/reader.cpp -- Output for missing PXR_MTLX_PLUGIN_SEARCH_PATHS=$PWD usdview checker_twofiles_nodedef_subsubfolder/checker_twofiles_nodedef_subsubfolder.usda diffuse_output> missing ERROR: Usdview encountered an error while rendering.Child name is not unique: surface_material_node PXR_MTLX_PLUGIN_SEARCH_PATHS=$PWD/checker_twofiles_nodedef_subsubfolder usdview checker_twofiles_nodedef_subsubfolder/checker_twofiles_nodedef_subsubfolder.usda Warning (secondary thread): in _ConnectPorts at line 896 of /src/USD/usd_build/USD/src/pxr/usd/usdMtlx/reader.cpp -- Output for missing ERROR: Usdview encountered an error while rendering.Child name is not unique: surface_material_node PXR_MTLX_PLUGIN_SEARCH_PATHS=$PWD/checker_twofiles_nodedef_subsubfolder/libraries usdview checker_twofiles_nodedef_subsubfolder/checker_twofiles_nodedef_subsubfolder.usda Warning (secondary thread): in _ConnectPorts at line 896 of /src/USD/usd_build/USD/src/pxr/usd/usdMtlx/reader.cpp -- Output for missing PXR_MTLX_PLUGIN_SEARCH_PATHS=$PWD/checker_twofiles_nodedef_subsubfolder/libraries/sillylib usdview checker_twofiles_nodedef_subsubfolder/checker_twofiles_nodedef_subsubfolder.usda Warning: in _ConnectPorts at line 896 of /src/USD/usd_build/USD/src/pxr/usd/usdMtlx/reader.cpp -- Output for missing PXR_MTLX_STDLIB_SEARCH_PATHS=$PWD usdview checker_twofiles_nodedef_subsubfolder/checker_twofiles_nodedef_subsubfolder.usda ERROR: Usdview encountered an error while rendering.Child name is not unique: surface_material_node PXR_MTLX_STDLIB_SEARCH_PATHS=$PWD/checker_twofiles_nodedef_subsubfolder usdview checker_twofiles_nodedef_subsubfolder/checker_twofiles_nodedef_subsubfolder.usda ERROR: Usdview encountered an error while rendering.Child name is not unique: surface_material_node PXR_MTLX_STDLIB_SEARCH_PATHS=$PWD/checker_twofiles_nodedef_subsubfolder/libraries usdview checker_twofiles_nodedef_subsubfolder/checker_twofiles_nodedef_subsubfolder.usda material loads, but just shiny black with no checker PXR_MTLX_STDLIB_SEARCH_PATHS=$PWD/checker_twofiles_nodedef_subsubfolder/libraries/sillylib usdview checker_twofiles_nodedef_subsubfolder/checker_twofiles_nodedef_subsubfolder.usda material loads, but just shiny black with no checker ## Flattening .mtlx into one big .usda (ie, using UsdShade only) usdview checker_onefile_nodegraph_flat.usda material loads, but just shiny black with no checker