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

HdStorm fails to render a mesh with many material GeomSubsets #1749

Closed
jufrantz opened this issue Jan 19, 2022 · 2 comments
Closed

HdStorm fails to render a mesh with many material GeomSubsets #1749

jufrantz opened this issue Jan 19, 2022 · 2 comments

Comments

@jufrantz
Copy link

Description of Issue

When rendering a mesh with many material subsets in USD 21.11/HdStorm some subsets fail to render.
I attached a simple usd file that shows the issue; it contains a mesh with 100 material subsets; 41 last subsets fail to render on our side :

many subsets in usdview 21.11

And we get bunch of errors, like these:

Warning: in _ValidateCompilation at line 182 of USD-21.11/pxr/imaging/hdSt/glslProgram.cpp -- Failed to compile shader (GL_FRAGMENT_SHADER): 0(2299) : error C1008: undefined variable "HdGet_edgeIndices"

ERROR: Usdview encountered an error while rendering.
        Error in 'pxrInternal_v0_21__pxrReserved__::HdBufferArrayRangeContainer::Set' at line 49 in file USD-21.11/pxr/imaging/hd/bufferArrayRange.cpp : 'Index negative in HdBufferArrayRangeContainer::Set()'
        Error in 'pxrInternal_v0_21__pxrReserved__::HdSt_DrawBatch::_GetDrawingProgram' at line 273 in file USD-21.11/pxr/imaging/hdSt/drawBatch.cpp : 'Failed to compile shader for prim /World/Mesh.'
        Error in 'pxrInternal_v0_21__pxrReserved__::HdSt_DrawBatch::_GetDrawingProgram' at line 292 in file USD-21.11/pxr/imaging/hdSt/drawBatch.cpp : 'Failed verification: ' res ' -- Failed to compile with fallback material network'
        Error in 'pxrInternal_v0_21__pxrReserved__::HdSt_IndirectDrawBatch::ExecuteDraw' at line 1099 in file USD-21.11/pxr/imaging/hdSt/indirectDrawBatch.cpp : 'Failed verification: ' glslProgram ''

Steps to Reproduce

  1. Open the usd file in usdview and select GL renderer.

System Information (OS, Hardware)

  • Linux CentOS
  • GeForce GTX 1080, Driver Version: 390.87

Package Versions

  • USD 21.11
@jilliene
Copy link

Filed as internal issue #USD-7150

pixar-oss added a commit that referenced this issue Dec 9, 2022
APPLE: Fix for Issue #1749

(Internal change: 2256327)
@jufrantz
Copy link
Author

jufrantz commented Nov 3, 2023

I confirm this is fixed, i'm closing the issue.
Many thanks

@jufrantz jufrantz closed this as completed Nov 3, 2023
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

2 participants