-
Notifications
You must be signed in to change notification settings - Fork 82
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
USD Viewer: Rendering incorrectly on Linux w/ OpenUSD 23.11 #141
Comments
Hello! Few things:
|
Yep understood, I find the Linux drivers to be really decent these days but I have had other problems like the HdStorm delegate having some OpenGL state issues and having far better luck with the Nvidia card for that (maybe the Mesa GL is more strict while Nvidia's can get away with a lot more leaky states). For the debug build I am getting a macro error for
I'll investigate further if it's not obvious, maybe another header is using that macro definition. But I can try the OpenGL mode with the previous release build I've got, and it is the same rendering result above on both the AMD and Nvidia cards for me. Edit: I changed it from |
Success, at least in debug mode! Rendered with the AMD card here, but Nvidia and vk/gl are also correct now as well. Some debug from Nvidia VK:
|
Yes, looks like there are some issues on Vulkan - I will take a look. |
Can you try getting the latest version and see if it works better? |
Debug still works OK? I can't really immediately think of any difference between Debug and Release that may cause this. |
I also noticed normals and UVs were not binding so it gave me a hint that the PSO is probably not getting created like the debug one, and so I focused on the https://github.com/DiligentGraphics/DiligentFX/blob/master/Hydrogent/src/HnRenderPass.cpp#L756 I put a bunch of log prints to see if we are getting nullptrs for them and we are not - but the act of putting prints in here fixes things! So a crude fix was I just put a Hopefully the following discovery gives enough hints as to what is happening and where to fix the race condition. Cheers |
Thanks for the investigation. |
Hello I am testing out USD Viewer and noticed it is rendering fairly oddly (using the latest master branch as of 2024-2-24 but this is the first time trying it for me)
The other USD examples also are not rendering correctly. Other DiligilentSamples seem to be working correctly like GLTF Viewer. Testing this on 2 GPUs using --adapter 0 and 1.
build_usd.py
also Rocky 9.3 (GCC 11.4.1)Apologies as I know Hydrogent is a work in progress and I might just be stepping on toes here, but I thought I'd report on it if it could be something else.
I run these by first cwd'ing into
~/dev/DiligentEngine/DiligentSamples/Samples/USDViewer/assets
and running../../../../build/DiligentSamples/Samples/USDViewer/USDViewer --adapter 0
Kind regards
The text was updated successfully, but these errors were encountered: