Closed macton closed 1 year ago
Running with --renderer HydraDisabled
outputs:
ERROR: Usdview encountered an error while rendering.Attempt to retrieve context when no valid context
and viewport is black.
Hi!
It looks like you're failing to get a GL context (which is surprising, Qt should provide one before it calls into Pixar code); and in your first message it looks like (from my best guess) somehow you've asked our shaders to compile against an old GLSL version, despite us saying that these are GL 4.5 shaders in the shader prologue. In short, this looks like a GL version issue. It's hard for me to narrow it down more than that, since we don't have a Mesa setup to test on.
Storm (our GL renderer) should function ok as long as you have a GL 4.5-compatible implementation. I know Mesa claims 4.5 compatibility, but there might be something weird going on in the Qt OpenGL code, or Mesa 4.5 support might be missing something. Is it possible to try with a GPU?
Another thing you can try is to use the "Embree" renderer, which is an optional plugin. It has the same geometry support as Storm, though only ambient occlusion lighting.
Hope that helps! Tom
Filed as internal issue #USD-7584
I had a similar issue on RHEL 8.6 and was able to get it to pick up a GL renderer by installing the following:
sudo yum install libXmu-devel libXi-devel libGL-devel
hope this helps
I'm also getting this on Linux with the USD 22.08, Python 3.7 binary provided by Nvidia: https://developer.nvidia.com/usd
Same error message,it is produced by Mesa when NVidia OpenGL is not used: #1429
It has been suggested this is a Mesa bug, it should ignore the attribute (maybe with a warning) rather than fail to compile.
Hi Mike! This has been fixed in USD since v23.02 w/ OpenSubdiv 3.5.x
We fixed this use of non-standard "centroid" qualifiers in OpenSubdiv 3.5.x and also improved some related GL shader compiler concerns in USD v23.02.
I don't have a system which matches your configuration but I did just test USD v23.05-rc1 on a system with Mesa 22.2.5 as well as several other system configurations with NVIDIA, AMD, and Intel GPUs.
We're going to mark this closed, but please let us know if there are additional new issues. Thanks!
Description of Issue
Viewport does not render in usdview.
also
Steps to Reproduce
$ usdview /usr/local/USD/share/usd/tutorials/convertingLayerFormats/Sphere.usda
System Information (OS, Hardware)
$ glxinfo | grep version
Package Versions
Build Flags