Skip to content
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

Viewport in usdview does not display geometry #9

Closed
krzykli opened this issue Nov 30, 2016 · 6 comments
Closed

Viewport in usdview does not display geometry #9

krzykli opened this issue Nov 30, 2016 · 6 comments

Comments

@krzykli
Copy link

krzykli commented Nov 30, 2016

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

@krzykli
Copy link
Author

krzykli commented Nov 30, 2016

Plus the alternate background color in the tree widget looks slightly off. In the log above you can see
Could not parse application stylesheet but when loading the same qss file in Qt Designer everything looks correct, or at least it seems so.

screengrab

@vfxpro99
Copy link
Collaborator

Does the fix in your repo resolve the issue? krzykli/USD@980e5b5

@krzykli
Copy link
Author

krzykli commented Nov 30, 2016

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.

Edit:
PixarAnimationStudios/OpenUSD#113

afterfix

@krzykli krzykli changed the title Viewport in usdview does not work Viewport in usdview does not display geometry Nov 30, 2016
@vfxpro99
Copy link
Collaborator

vfxpro99 commented Dec 1, 2016

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.

@krzykli
Copy link
Author

krzykli commented Dec 1, 2016

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.

@krzykli krzykli closed this as completed Dec 1, 2016
@vfxpro99
Copy link
Collaborator

vfxpro99 commented Dec 1, 2016

Great news :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant