-
Notifications
You must be signed in to change notification settings - Fork 25
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
Black Viewport on Linux #20
Comments
Hi @ScatteredRay , thanks for the bug report. Then I would start checking if usdview works or has the same issue. usdview is pretty similar to usdtweak in terms of viewport rendering, so if usdview works and usdtweak doesn't then it has likely to do with opengl code. In that case I would look for opengl errors at each calling site with a debugger or whatever works to instrument the calls. Hope that helps, unfortunately I don't have a similar setup around to debug, I'll ask around see if I can find that. |
I think 6.x.x is the Radeonsi version, because I don't think my drivers are that out of date. I could try the proprietary drivers, but usdview, and all other instances of hdStorm seem to run fine on my local machine. So it seems like it should be possible to get usdtweak to do the same. Do you have some likely cullprits to start with as far as calling sites go? Thanks, |
Are storm and usdview coming from the same usd libs usdtweak is compiled with ? If so, you are right, usdtweak should be working as well. I would first try to recompile usd with embree and check if embree is working or not as this would highlight if this is a problem with storm of the thin layer used in ut to pass the hydra render to imgui. Line 190 in 8b72b4f
and the UI drawing is done here: Line 201 in 8b72b4f
When a viewport is created, it creates an OpenGL buffer here (a DrawTarget): usdtweak/src/viewport/Viewport.cpp Line 66 in 8b72b4f
I have seen that the bit depth of the attachement might not be compatible on old cards, but that's unlikely in your case as you have a recent card, might worth checking though The Render function is where hydra renders in the DrawTarget: usdtweak/src/viewport/Viewport.cpp Line 435 in 8b72b4f
It follows what usdview is doing almost line by line. I would probably start by commenting as much code as possible and leave the glClearColor with a different color, to check if the opengl buffer is correctly displayed. Then look for errors ... Then utimaltely the UI draws the drawtarget on the display here: usdtweak/src/viewport/Viewport.cpp Line 119 in 8b72b4f
Hope that helps, let me know if I can help further C |
Yeah, same usd libs for both usdtweak, and usdview. Additionally, already tried embree, it works in usdview, but not in usdtweak. Thanks for the recommendations. |
I'm getting a black viewport running on Linux. Initially, I found that pxr/garch doesn't support EGL, and can't capture the context on wayland. But forcing to run under XWayland, I get a black viewport.
Here is my console output:
I tried a capture from RenderDoc, and don't seem to see any element from the scene in the capture.
Any thoughts on things I could do to start to diagnose this issue?
The text was updated successfully, but these errors were encountered: