GLSL ShaderGen: `time_float` and `frame_float` do not have any effect
Related to #1951
I believe the attached file should have some animation based on application time, however it just stays still in MaterialXWebViewer. marbleTime.mtlx.zip
Edit: in some applications the time nodes show up as not connected, this one here should work: myFile2.mtlx.zip
There is no "play" functionality here nor in the desktop viewer. For the hardware case the u_frame shader uniform needs to be updated and bound as mentioned here
Please consider it a feature request :)
Thanks for this feature request, @hybridherbst, and I've just updated the title to clarify that this feature is missing in our GLSL shader generation, which both the Viewer and Graph Editor leverage for rendering
Thanks @jstone-lucasfilm! I think in addition to the shader generation, the host application also needs to updates the uniforms, right?
Good point, @hybridherbst, and indeed those updates should be made to the Viewer and Graph Editor when this feature is added.
Hello, I'd like to work on this for ASWF Dev Days 2025.
Excellent, thanks @fnRaihanKibria!
Thanks for posting this original issue, @hybridherbst, and thanks to @fnRaihanKibria for the fix in #2389!
If there's still an outstanding compatibility issue with this feature on MacOS, feel free to write up a new GitHub Issue for this, so that we don't lose track.
Thanks for all the work here! However, the file I originally attached to the issue still is not animated – I think this issue here should be reopened.
Thanks for all the work here! However, the file I originally attached to the issue still is not animated – I think this issue here should be reopened.
Are you on a Mac? There is an issue on Macs unfortunately: https://github.com/AcademySoftwareFoundation/MaterialX/issues/2391
Oh – yes, I am. The referenced issue seems to have a proposed solution though – are you able to make a PR with that? Thanks!
Oh – yes, I am. The referenced issue seems to have a proposed solution though – are you able to make a PR with that? Thanks!
Looks like the person who suggested the solution made a PR already! https://github.com/AcademySoftwareFoundation/MaterialX/pull/2415
The PR got merged – I see time working in MaterialXView and MaterialXGraphEditor, but not in the web viewer. Does that need another update?
The PR got merged – I see time working in MaterialXView and MaterialXGraphEditor, but not in the web viewer. Does that need another update?
I believe so. I'm not familiar with it at all and haven't touched it. Might be good to make a new bug ticket?
Seems I'm able to fix it myself, I'll make a PR :)