MaterialX icon indicating copy to clipboard operation
MaterialX copied to clipboard

Graph Editor : Extra Library Specification Corrupts Startup

Open kwokcb opened this issue 5 months ago • 1 comments

Issue

Tried running the graph editor from the command line with --library option (\MaterialXGraphEditor.exe --library .) as shown below:

Image

Unknown why you get these errors:

Error in compiling fragment shader:
0(887) : error C7506: OpenGL does not define the global type float3
0(887) : error C1503: undefined variable "L"
0(900) : error C1503: undefined variable "edf1_out"

This is run from the root of my local branch but seems to occur no matter where you start from.

Something unexpected happens and you end up some strange graph parts being loaded in. If you select anything it will crash.

kwokcb avatar Sep 05 '25 13:09 kwokcb

Seems even worse if you put in an absolute path to the same folder. The Xinclude error seems bad.

D:\Work\materialx\ILM_materialx>build\bin\RelWithDebInfo\MaterialXGraphEditor.exe --library d:\Work\materialx\ILM_materialx
Failed to load standard data libraries: XInclude cycle detected.
Error in compiling fragment shader:
0(887) : error C7506: OpenGL does not define the global type float3
0(887) : error C1503: undefined variable "L"
0(900) : error C1503: undefined variable "edf1_out"
0(950) : error C1013: function "mx_pow5" is already defined at 0(97)
0(955) : error C1013: function "mx_pow6" is already defined at 0(102)
0(962) : error C1013: function "mx_fresnel_schlick" is already defined at 0(109)
0(968) : error C1013: function "mx_fresnel_schlick" is already defined at 0(115)
0(976) : error C1013: function "mx_fresnel_schlick" is already defined at 0(123)
0(982) : error C1013: function "mx_fresnel_schlick" is already defined at 0(129)
0(990) : error C1013: function "mx_fresnel_schlick" is already defined at 0(137)
0(995) : error C1013: function "mx_fresnel_schlick" is already defined at 0(142)
0(1002) : error C1013: function "mx_forward_facing_normal" is already defined at 0(149)
0(1008) : error C1013: function "mx_golden_ratio_sequence" is already defined at 0(155)
0(1015) : error C1013: function "mx_spherical_fibonacci" is already defined at 0(162)
0(1021) : error C1013: function "mx_uniform_sample_hemisphere" is already defined at 0(168)
0(1032) : error C1013: function "mx_cosine_sample_hemisphere" is already defined at 0(179)
0(1044) : error C1013: function "mx_orthonormal_basis" is already defined at 0(191)
0(1284) : error C1038: declaration of "FRESNEL_MODEL_DIELECTRIC" conflicts with previous declaration at 0(201)
0(1285) : error C1038: declaration of "FRESNEL_MODEL_CONDUCTOR" conflicts with previous declaration at 0(202)
0(1286) : error C1038: declaration of "FRESNEL_MODEL_SCHLICK" conflicts with previous declaration at 0(203)
0(1315) : error C1013: function "mx_ggx_NDF" is already defined at 0(232)
0(1323) : error C1013: function "mx_ggx_importance_sample_VNDF" is already defined at 0(240)
0(1347) : error C1013: function "mx_ggx_smith_G1" is already defined at 0(264)
0(1357) : error C1013: function "mx_ggx_smith_G2" is already defined at 0(274)
0(1366) : error C1013: function "mx_ggx_dir_albedo_analytic" is already defined at 0(283)
0(1385) : error C1013: function "mx_ggx_dir_albedo_table_lookup" is already defined at 0(302)
0(1398) : error C1013: function "mx_ggx_dir_albedo_monte_carlo" is already defined at 0(315)
0(1435) : error C1013: function "mx_ggx_dir_albedo" is already defined at 0(352)
0(1446) : error C1013: function "mx_ggx_dir_albedo" is already defined at 0(363)
0(1453) : error C1013: function "mx_ggx_energy_compensation" is already defined at 0(370)
0(1459) : error C1013: function "mx_ggx_energy_compensation" is already defined at 0(376)
0(1465) : error C1013: function "mx_average_alpha" is already defined at 0(382)
0(1471) : error C1013: function "mx_ior_to_f0" is already defined at 0(388)
0(1477) : error C1013: function "mx_f0_to_ior" is already defined at 0(394)
0(1482) : error C1013: function "mx_f0_to_ior" is already defined at 0(399)
0(1489) : error C1013: function "mx_fresnel_hoffman_schlick" is already defined at 0(406)
0(1500) : error C1013: function "mx_fresnel_dielectric" is already defined at 0(417)
0(1516) : error C1013: function "mx_fresnel_dielectric_polarized" is already defined at 0(433)
0(1534) : error C1013: function "mx_fresnel_conductor_polarized" is already defined at 0(451)
0(1553) : error C1013: function "mx_fresnel_conductor" is already defined at 0(470)
0(1561) : error C1013: function "mx_fresnel_conductor_phase_polarized" is already defined at 0(478)
0(1576) : error C1013: function "mx_eval_sensitivity" is already defined at 0(493)
0(1590) : error C1013: function "mx_fresnel_airy" is already defined at 0(507)
0(1689) : error C1013: function "mx_init_fresnel_dielectric" is already defined at 0(606)
0(1706) : error C1013: function "mx_init_fresnel_conductor" is already defined at 0(623)
0(1723) : error C1013: function "mx_init_fresnel_schlick" is already defined at 0(640)
0(1740) : error C1013: function "mx_compute_fresnel" is already defined at 0(657)
0(1761) : error C1013: function "mx_refraction_solid_sphere" is already defined at 0(678)
0(1768) : error C1013: function "mx_latlong_projection" is already defined at 0(685)
0(1775) : error C1013: function "mx_latlong_map_lookup" is already defined at 0(692)
0(1785) : error C1013: function "mx_latlong_compute_lod" is already defined at 0(702)

Failed to generate shadow blur shader: Failed to get source code from file '' used by implementation 'IM_blur_color3_genglsl'

kwokcb avatar Sep 05 '25 13:09 kwokcb