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
368 stars 38 forks source link

USD+prman on windows failed to open #309

Closed hyc0612 closed 10 months ago

hyc0612 commented 10 months ago

I am trying to build prman renderer and use it in usdview, the prman renderer build was successful but failed in running. Can anyone help me with this?

I have tried to run the build_usd.py in the following command python D:/OpenUSD/build_scripts/build_usd.py -v --build-variant debug --ptex --openvdb --openimageio --alembic --materialx --prman --prman-location "C:\Program Files\Pixar\RenderManProServer-25.2" "D:/install/USD_prman_embree" according to https://openusd.org/release/plugins_renderman.html

and then add variables PYTHONPATH, RMANTREE, RMAN_SHADERPATH, etc to path.

but when I open usdview and choose to render with prman, erros comes out as:

Warning: in Load at line 126 of D:\OpenUSD\pxr\imaging\plugin\hdPrmanLoader\rendererPlugin.cpp -- Could not load versioned hdPrman backend: The specified procedure could not be found.

Traceback (most recent call last):
  File "D:\install\USD_prman_embree\lib\python\pxr\Usdviewq\appController.py", line 1453, in <lambda>
    self._rendererPluginChanged(pluginType))
  File "D:\install\USD_prman_embree\lib\python\pxr\Usdviewq\appController.py", line 1414, in _rendererPluginChanged
    if not self._stageView.SetRendererPlugin(plugin):
  File "D:\install\USD_prman_embree\lib\python\pxr\Usdviewq\stageView.py", line 988, in SetRendererPlugin
    if self._renderer.SetRendererPlugin(plugId):
pxr.Tf.ErrorException:
        Error in 'pxrInternal_v0_23__pxrReserved__::UsdImagingGLEngine::SetRendererPlugin' at line 969 in file D:\OpenUSD\pxr\usdImaging\usdImagingGL\engine.cpp : 'Invalid plugin id or plugin is unsupported: HdPrmanLoaderRendererPlugin'
Traceback (most recent call last):
  File "D:\install\USD_prman_embree\lib\python\pxr\Usdviewq\appController.py", line 1453, in <lambda>
    self._rendererPluginChanged(pluginType))
  File "D:\install\USD_prman_embree\lib\python\pxr\Usdviewq\appController.py", line 1414, in _rendererPluginChanged
    if not self._stageView.SetRendererPlugin(plugin):
  File "D:\install\USD_prman_embree\lib\python\pxr\Usdviewq\stageView.py", line 988, in SetRendererPlugin
    if self._renderer.SetRendererPlugin(plugId):
pxr.Tf.ErrorException:
        Error in 'pxrInternal_v0_23__pxrReserved__::UsdImagingGLEngine::SetRendererPlugin' at line 969 in file D:\OpenUSD\pxr\usdImaging\usdImagingGL\engine.cpp : 'Invalid plugin id or plugin is unsupported: HdPrmanLoaderRendererPlugin'
Traceback (most recent call last):
  File "D:\install\USD_prman_embree\lib\python\pxr\Usdviewq\appController.py", line 1453, in <lambda>
    self._rendererPluginChanged(pluginType))
  File "D:\install\USD_prman_embree\lib\python\pxr\Usdviewq\appController.py", line 1414, in _rendererPluginChanged
    if not self._stageView.SetRendererPlugin(plugin):
  File "D:\install\USD_prman_embree\lib\python\pxr\Usdviewq\stageView.py", line 988, in SetRendererPlugin
    if self._renderer.SetRendererPlugin(plugId):
pxr.Tf.ErrorException:
        Error in 'pxrInternal_v0_23__pxrReserved__::UsdImagingGLEngine::SetRendererPlugin' at line 969 in file D:\OpenUSD\pxr\usdImaging\usdImagingGL\engine.cpp : 'Invalid plugin id or plugin is unsupported: HdPrmanLoaderRendererPlugin'
load:d:/install/USD_prman_embree/plugin/usd/hdEmbree.dll
Traceback (most recent call last):
  File "D:\install\USD_prman_embree\lib\python\pxr\Usdviewq\appController.py", line 1453, in <lambda>
    self._rendererPluginChanged(pluginType))
  File "D:\install\USD_prman_embree\lib\python\pxr\Usdviewq\appController.py", line 1414, in _rendererPluginChanged
    if not self._stageView.SetRendererPlugin(plugin):
  File "D:\install\USD_prman_embree\lib\python\pxr\Usdviewq\stageView.py", line 988, in SetRendererPlugin
    if self._renderer.SetRendererPlugin(plugId):
pxr.Tf.ErrorException:
        Error in 'pxrInternal_v0_23__pxrReserved__::UsdImagingGLEngine::SetRendererPlugin' at line 969 in file D:\OpenUSD\pxr\usdImaging\usdImagingGL\engine.cpp : 'Invalid plugin id or plugin is unsupported: HdPrmanLoaderRendererPlugin'

these are the install_dir/plugin/usd directory results image