-
Notifications
You must be signed in to change notification settings - Fork 365
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
Add extra Convert nodes #1905
Add extra Convert nodes #1905
Conversation
The current code in the PR is failing unit tests. I think this might be because of a bug somewhere in What I think is going on here is as follows.... The PR changes the implementation of
Notice we're now using In the unit test that is failing we're loading a material (minimal failing case below), and then running the following code
The failure comes because we don't successfully validate the document - the validation error message is It appears that the call to Is this a known issue? It seems like perhaps any nested nodegraph might fail in the same way. But its particularly sad that this would mean that nodes who's implementations are nodegraphs will fail if they themselves are used in a nodegraph. ----- minimal failure case ----
|
@ld-kerley Good catch, and this sounds like a previously-unknown bug in |
I pushed a fix that I think is correct - but it would be good if someone who is more familiar with the intention of this code that I changed, to make sure I'm applying the fix the right way. |
Thanks for the fix, @ld-kerley! Is the conversion table at the root of the MaterialX repository included intentionally, or is that a temporary artifact that has now been integrated into the specification? |
Signed-off-by: Jonathan Stone <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, thanks @ld-kerley, and I'm CC'ing @dbsmythe for his thoughts on the documentation approach.
Happy for @dbsmythe to edit as he sees fit - I just wanted to take a stab in the same PR so we keep the spec inline with the code. |
9b4b66e
into
AcademySoftwareFoundation:main
Related to #1895
Fills out more of the "missing" convert nodes.
Notably this moves a lot of the implementations to nodegraphs, to reduce the maintenance going forward and to ensure all shader generation targets are aligned.