GPUOpen-LibrariesAndSDKs / BlenderUSDHydraAddon

This add-on allows you to assemble and compose USD data with Blender data and render it all using various renderers via Hydra.
Apache License 2.0
362 stars 37 forks source link

BLEN-169: Update plugin with latest USD. #263

Closed VascoPi closed 1 year ago

VascoPi commented 2 years ago

PURPOSE

Update plugin with latest USD Update Open GL delegate to the latest one Update MaterialX to 1.38.4

EFFECT OF CHANGE

Updated to support USD 22.08

TECHNICAL STEPS

USD 22.08

UsdImagineLite

MaterialX 1.38.4

Addon

NOTES FOR REVIEWERS

GL delegate currently works only via viewport render, final render provides GL errors.

ERROR (gpu.debug):  : GL_INVALID_OPERATION error generated. Array object is not active.
ERROR (gpu.debug):  : GL_INVALID_OPERATION error generated. Invalid VAO/VBO/pointer usage.
ERROR (gpu.debug):  : GL_INVALID_ENUM error generated. Cannot enable <cap> in the current profile.
ERROR (gpu.debug):  : GL_INVALID_OPERATION error generated. Invalid VAO bound.

D:\vasyl\AMD\BlenderUSDHydraAddon\deps\USD\pxr\imaging\hgiGL\diagnostic.cpp : 'GL error: invalid operation, reported from auto __cdecl pxrInternal_v0_22__pxrReserved__::HgiGLOps::Draw::<lambda_9c34ad072f5ed995c3d5a1ae9d457a38>::operator ()(void) const'
    Error in 'pxrInternal_v0_22__pxrReserved__::HgiGLPostPendingGLErrors' at line 91 in file D:\vasyl\AMD\BlenderUSDHydraAddon\deps\USD\pxr\imaging\hgiGL\diagnostic.cpp : 'GL error: invalid enum, reported from __cdecl pxrInternal_v0_22__pxrReserved__::HgiGL_ScopedStateHolder::~HgiGL_ScopedStateHolder(void)'
    Error in 'pxrInternal_v0_22__pxrReserved__::HgiGLPostPendingGLErrors' at line 91 in file D:\vasyl\AMD\BlenderUSDHydraAddon\deps\USD\pxr\imaging\hgiGL\diagnostic.cpp : 'GL error: invalid operation, reported from __cdecl pxrInternal_v0_22__pxrReserved__::HgiGL_ScopedStateHolder::~HgiGL_ScopedStateHolder(void)'
    Error in 'pxrInternal_v0_22__pxrReserved__::HgiInteropOpenGL::CompositeToInterop' at line 310 in file D:\vasyl\AMD\BlenderUSDHydraAddon\deps\USD\pxr\imaging\hgiInterop\opengl.cpp : 'Failed verification: ' glGetError() == GL_NO_ERROR ''

CIS:REBUILD_DEPS

VascoPi commented 2 years ago

Currently, Interactive render mode works if no materials are attached to the mesh otherwise blender crash. Status: Verifying this together with HybridPro team.

VascoPi commented 2 years ago

Verifying HybridPro crash, found improper work from the engine side while using an internal and external MaterialX library. https://amdrender.atlassian.net/browse/RPRHYB-657

bnagirniak commented 1 year ago

Not actual now