Viewport in usdview does not display geometry
krzykli opened this issue · comments
I've rebuilt USD on Win 7 and #7 is gone. Good stuff!
Unfortunately, the viewport in usdview doesn't render anything. Here's what I get in the console:
λ usdview HelloWorld.usda
Could not parse application stylesheet
Warning: in HdGLSLProgram::Link at line 172 of O:\dev\krzysztof.klimczyk\workspace\usdBuildFixed\Projects\USD\pxr\imaging\lib\hd\glslProgram.cpp -- Failed to link shader:
Vertex info
-----------
0(132) : warning C7050: "_dc.instanceCoords[0]" might be used before being initialized
0(132) : warning C7050: "_dc.instanceCoords[0]" might be used before being initialized
Geometry info
-------------
(0) : error C5133: multiple outputs associated with semantic "SBO_BUFFER[0]"
(0) : error C5133: multiple outputs associated with semantic "SBO_BUFFER[0]"
(0) : error C5133: multiple outputs associated with semantic "SBO_BUFFER[0]"
Traceback (most recent call last):
File "O:\dev\krzysztof.klimczyk\workspace\usdBuildFixed\Projects\stage\local\lib\python\pxr\Usdviewq\stageView.py", line 1744, in paintGL
self.drawSelHighlights)
File "O:\dev\krzysztof.klimczyk\workspace\usdBuildFixed\Projects\stage\local\lib\python\pxr\Usdviewq\stageView.py", line 1473, in renderSinglePass
self._renderer.Render(pseudoRoot, self._renderParams)
pxr.Tf.ErrorException:
Error in 'Hd_DrawBatch::_GetDrawingProgram' at line 239 in file O:\dev\krzysztof.klimczyk\workspace\usdBuildFixed\Projects\USD\pxr\imaging\lib\hd\drawBatch.cpp : 'Failed verification: ' res ''
Error in 'Hd_IndirectDrawBatch::ExecuteDraw' at line 986 in file O:\dev\krzysztof.klimczyk\workspace\usdBuildFixed\Projects\USD\pxr\imaging\lib\hd\indirectDrawBatch.cpp : 'Failed verification: ' glslProgram ''
Is this happening to anyone else?
[ Edit ] If I disable /hello/world location the viewport seems to work just fine.
Thanks,
kk
Does the fix in your repo resolve the issue? krzykli/USD@980e5b5
Yes, I looked into this and fixed it locally. I'll submit a pull request shortly.
Of course this just fixes the style sheet issue.
It's working on Windows 10. Is it possible that your GL driver does not support a recent enough version for Hydra? Hydra needs GL4.3+. Can you try running usdview with the simple render command line option? That should make it run without GL4 features.
Thanks for confirming that @vfxpro99.
I have GL4.3 and the viewport was drawn correctly only when I deactivated the primitive (so I could see the bounding box). Anyway, updating Nvidia drivers did the trick for me so if anyone else hits this you might want to do the same :)
Closing.
Great news :)