-
Notifications
You must be signed in to change notification settings - Fork 358
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 support for geompropvalueuniform node #2092
Add support for geompropvalueuniform node #2092
Conversation
This is till a WIP PR of course, but a quick summary of the changes in-progress:
Thanks in advance for feedback, and especially any help with the codegen and/or various shading targets. |
Fixed a few more mistakes/issues (thanks @ld-kerley for looking it over!), down to 8 failures (on my end at least). |
Okay CI issues are resolved, so build is "clean", but no luck getting it to work so far, in MaterialXViewer. Maybe some MacOS-specific quirk or something else causing it to fail? I'm not seeing any messages/shell output, and just passing a texture map to the image node displays correctly. :(
|
Was given tip to use MaterialXGraphEditor (which uses GLSL even on MacOS), and it's showing this error:
I suspect the second item is because the property isn't authored on the generic shaderball geometry (it's not clear if/how that's even possible); so that might just be a red herring. |
Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
Since @jstone-lucasfilm asked for more discussions ;) |
Thanks @krohmerNV! Yes filenames are the main use case, it's been a long-standing request for path tracing workflows; the primvars setting the texture map paths are authored in the scene, but I get that real-time renderers don't like or use it (or don't use it much, at least). There could be other cases for uniform strings, but those would just be hypotheticals at this point. FWIW, the current |
As I said, I know that these workflows exist. If they are good and you want to use them you need to decide on your own. ;) But aside from that, having uniform geometry properties seems to be valuable. It might help constant folding even for real-time renderers. |
Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
This looks very reasonable to me, thanks @crydalch, and I'm CC'ing @ld-kerley and @kwokcb for their thoughts. |
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 change looks good to me, thanks @crydalch!
81ed31d
into
AcademySoftwareFoundation:main
Adds a string-/filename-friendly primvar/geompropvalue node, as was proposed for 1.39.