-
Notifications
You must be signed in to change notification settings - Fork 29
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
Connections between nodes with multiple outputs ("multioutput") are not correctly handled #34
Comments
Thanks for reporting this. The separate node has now the type "multioutput" and it works fine with Storm: However the generated MaterialX file has a validation error: Do you know what this means and how to fix it @kwokcb ? <?xml version="1.0"?>
<materialx version="1.38">
<nodegraph name="NG_main">
<separate3 name="Separate3" type="multioutput" xpos="-6.323393349156183" ypos="0.4079608612358828">
<input name="in" type="color3" value="1, 1, 1" />
<output name="outr" type="float" />
<output name="outg" type="float" />
<output name="outb" type="float" />
</separate3>
<combine3 name="Combine3" type="color3" xpos="-3.9209571663226512" ypos="0.5439478149811771">
<input name="in1" type="float" value="0" />
<input name="in2" type="float" value="0" output="outg" nodename="Separate3" />
<input name="in3" type="float" value="0" />
<output name="out" type="color3" />
</combine3>
<output name="output_Combine3_out" type="color3" nodename="Combine3" />
</nodegraph>
<surfacematerial name="USD_Default" type="material" xpos="2.1875" ypos="0.0">
<input name="surfaceshader" type="surfaceshader" nodename="Standard_surface" />
<output name="out" type="material" />
</surfacematerial>
<standard_surface name="Standard_surface" type="surfaceshader" xpos="-1.5775000000000001" ypos="0.0">
<input name="base" type="float" value="1" />
<input name="base_color" type="color3" value="0.8, 0.8, 0.8" nodegraph="NG_main" output="output_Combine3_out" />
<input name="diffuse_roughness" type="float" value="0" />
<input name="metalness" type="float" value="0.8" />
<input name="specular" type="float" value="1" />
<input name="specular_color" type="color3" value="1, 1, 1" />
<input name="specular_roughness" type="float" value="0.1" />
<input name="specular_IOR" type="float" value="1.5" />
<input name="specular_anisotropy" type="float" value="0" />
<input name="specular_rotation" type="float" value="0" />
<input name="transmission" type="float" value="0" />
<input name="transmission_color" type="color3" value="1, 1, 1" />
<input name="transmission_depth" type="float" value="0" />
<input name="transmission_scatter" type="color3" value="0, 0, 0" />
<input name="transmission_scatter_anisotropy" type="float" value="0" />
<input name="transmission_dispersion" type="float" value="0" />
<input name="transmission_extra_roughness" type="float" value="0" />
<input name="subsurface" type="float" value="0" />
<input name="subsurface_color" type="color3" value="1, 1, 1" />
<input name="subsurface_radius" type="color3" value="1, 1, 1" />
<input name="subsurface_scale" type="float" value="1" />
<input name="subsurface_anisotropy" type="float" value="0" />
<input name="sheen" type="float" value="0" />
<input name="sheen_color" type="color3" value="1, 1, 1" />
<input name="sheen_roughness" type="float" value="0.3" />
<input name="coat" type="float" value="1" />
<input name="coat_color" type="color3" value="0.6, 0.45, 1" />
<input name="coat_roughness" type="float" value="0.1" />
<input name="coat_anisotropy" type="float" value="0" />
<input name="coat_rotation" type="float" value="0" />
<input name="coat_IOR" type="float" value="2.5" />
<input name="coat_normal" type="vector3" value="0, 0, 0" />
<input name="coat_affect_color" type="float" value="0" />
<input name="coat_affect_roughness" type="float" value="0" />
<input name="thin_film_thickness" type="float" value="0" />
<input name="thin_film_IOR" type="float" value="1.5" />
<input name="emission" type="float" value="0" />
<input name="emission_color" type="color3" value="1, 1, 1" />
<input name="opacity" type="color3" value="1, 1, 1" />
<input name="thin_walled" type="boolean" value="false" />
<input name="normal" type="vector3" value="0, 0, 0" />
<input name="tangent" type="vector3" value="0, 0, 0" />
<output name="out" type="surfaceshader" />
</standard_surface>
</materialx> |
Hey @kwokcb , I added a new commit, which fixes the problems when loading the mtlx file. Could you give it a try? |
Thanks @RichardFrangenberg |
Issue
Separate and combine types and connections are improperly set / created
Environment
Tested with 0.4.1.
Test
If you create a separate node and then a combine node and connect the combine to a color3, the
Perhaps this is a general "multioutput" issue?
Errors when the document get's validated.
This is the resulting MaterialX file:
The text was updated successfully, but these errors were encountered: