PixarAnimationStudios / OpenUSD

Universal Scene Description
http://www.openusd.org
Other
5.95k stars 1.17k forks source link

Failing to properly connect to Prman plugin on Windows #2928

Open kaigg96 opened 7 months ago

kaigg96 commented 7 months ago

Description of Issue

I’m attempting to build USD with Prman and it’s successfully building, but when I attempt to open usdviewer using Prman renderer it fails to connect. Viewing with GL works without any issue.

I have environment vars set for everything I think I should need - specifically: PATH: C:\Program Files\Pixar\RenderManProServer-25.2\bin; C:\Program Files\Pixar\RenderManProServer-25.2\lib; path\to\USD\usd_build\bin; path\to\USD\usd_build\lib PYTHONPATH: path\to\USD\usd_build\lib\python RMANTREE: C:\Program Files\Pixar\RenderManProServer-25.2 RMAN_RIXPLUGINPATH: C:\Program Files\Pixar\RenderManProServer-25.2\lib\plugins RMAN_SHADERPATH: C:\Program Files\Pixar\RenderManProServer-25.2\lib\shaders; path\to\USD\usd-build\plugin\usd\resources\shaders RMAN_TEXTUREPATH: C:\Program Files\Pixar\RenderManProServer-25.2\lib\textures; C:\Program Files\Pixar\RenderManProServer-25.2\lib\plugins; path\to\USD\usd-build\plugin\usd

I've tried various combinations of build flags with no success.

Steps to Reproduce

  1. Build using the build script as follows:
    set "USD_REPO_DIR=%HOMEPATH%\USD\OpenUSD"
    set "USD_BUILD_ROOT=%HOMEPATH%\USD\usd_build"
    set "RMANTREE=C:\Program Files\Pixar\RenderManProServer-25.2"
    python %USD_REPO_DIR%\build_scripts\build_usd.py ^
    --build-variant release ^
    --build-monolithic ^
    --no-examples ^
    --no-tests ^
    --no-docs ^
    --no-python-docs ^
    --debug-python ^
    --ptex ^
    --openvdb ^
    --no-embree ^
    --usdview ^
    --usd-imaging ^
    --prman ^
    --prman-location "%RMANTREE%" ^
    --openimageio ^
    --no-opencolorio ^
    --no-alembic ^
    --no-hdf5 ^
    --no-draco ^
    --no-materialx ^
    "%USD_BUILD_ROOT%"
  2. open the viewer as follows: usdview --renderer Prman .\usd-renderer\scenes\top.geom.usd

System Information (OS, Hardware)

Windows 10

Package Versions

OpenUSD v23.08 (also tried 23.11) Python 3.9.13 Prman 25.2

Build Flags

INFO: Running "cmake -DCMAKE_INSTALL_PREFIX="path\to\USD\usd_build" -DCMAKE_PREFIX_PATH="path\to\USD\usd_build" -DCMAKE_BUILD_TYPE=Release  -G "Visual Studio 17 2022" -A x64  -DPXR_PREFER_SAFETY_OVER_SPEED=ON -DPXR_ENABLE_PYTHON_SUPPORT=ON -DPXR_USE_DEBUG_PYTHON=OFF -DPython3_EXECUTABLE="path\to\PythonVenv\usd_build\Scripts\python.exe" -DPython3_LIBRARY="C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\libs\python39.lib" -DPython3_INCLUDE_DIR="C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\Include" -DPXR_BUILD_MONOLITHIC=ON -DTBB_USE_DEBUG_BUILD=OFF -DPXR_BUILD_DOCUMENTATION=OFF -DPXR_BUILD_TESTS=OFF -DPXR_BUILD_EXAMPLES=OFF -DPXR_BUILD_TUTORIALS=ON -DPXR_BUILD_USD_TOOLS=ON -DPXR_BUILD_IMAGING=ON -DPXR_ENABLE_PTEX_SUPPORT=ON -DPXR_ENABLE_OPENVDB_SUPPORT=ON -DPXR_BUILD_EMBREE_PLUGIN=OFF -DRENDERMAN_LOCATION="C:\Program Files\Pixar\RenderManProServer-25.2" -DPXR_BUILD_PRMAN_PLUGIN=ON -DPXR_BUILD_OPENIMAGEIO_PLUGIN=ON -DPXR_BUILD_OPENCOLORIO_PLUGIN=OFF -DPXR_BUILD_USD_IMAGING=ON -DPXR_BUILD_USDVIEW=ON -DPXR_BUILD_ALEMBIC_PLUGIN=OFF -DPXR_BUILD_DRACO_PLUGIN=OFF -DPXR_ENABLE_MATERIALX_SUPPORT=OFF -DPXR_BUILD_PYTHON_DOCUMENTATION=OFF -DCMAKE_CXX_FLAGS="/Zm150" -DBoost_NO_BOOST_CMAKE=On -DBoost_NO_SYSTEM_PATHS=True "path\to\USD\OpenUSD""
INFO: Running "cmake --build . --config Release --target install -- /M:12"

Error log (usdview view panel stays black, while this prints to the terminal):

`PS path\to\USD-Render> usdview --renderer Prman .\test_scene.usda Warning: in Load at line 112 of path\to\USD\OpenUSD\pxr\imaging\plugin\hdPrmanLoader\rendererPlugin.cpp – Could not load versioned hdPrman backend: The specified module could not be found.

ERROR: Usdview encountered an error while updating selection. Error in ‘pxrInternal_v0_23pxrReserved::UsdImagingGLEngine::SetRendererPlugin’ at line 976 in file path\to\USD\OpenUSD\pxr\usdImaging\usdImagingGL\engine.cpp : ‘Invalid plugin id or plugin is unsupported: HdPrmanLoaderRendererPlugin’ Error in ‘pxrInternal_v0_23pxrReserved::UsdImagingGLEngine’ at line 208 in file path\to\USD\OpenUSD\pxr\usdImaging\usdImagingGL\engine.cpp : ‘No renderer plugins found!’ Traceback (most recent call last): File “path\to\USD\usd_build\lib\python\pxr\Usdviewq\stageView.py”, line 1621, in paintGL renderer = self.getRenderer() File “path\to\USD\usd_build\lib\python\pxr\Usdviewq\stageView.py”, line 943, in getRenderer self.renderer = UsdImagingGL.Engine() pxr.Tf.ErrorException: Error in 'pxrInternal_v0_23pxrReserved::UsdImagingGLEngine::SetRendererPlugin’ at line 976 in file path\to\USD\OpenUSD\pxr\usdImaging\usdImagingGL\engine.cpp : ‘Invalid plugin id or plugin is unsupported: HdPrmanLoaderRendererPlugin’ Error in 'pxrInternal_v0_23pxrReserved_::UsdImagingGLEngine’ at line 208 in file path\to\USD\OpenUSD\pxr\usdImaging\usdImagingGL\engine.cpp : ‘No renderer plugins found!’ Traceback (most recent call last): File “path\to\USD\usd_build\lib\python\pxr\Usdviewq\stageView.py”, line 1621, in paintGL renderer = self.getRenderer() File “path\to\USD\usd_build\lib\python\pxr\Usdviewq\stageView.py”, line 943, in getRenderer self.renderer = UsdImagingGL.Engine() pxr.Tf.ErrorException: Error in 'pxrInternal_v0_23pxrReserved::UsdImagingGLEngine::SetRendererPlugin’ at line 976 in file path\to\USD\OpenUSD\pxr\usdImaging\usdImagingGL\engine.cpp : ‘Invalid plugin id or plugin is unsupported: HdPrmanLoaderRendererPlugin’ Error in 'pxrInternal_v0_23pxrReserved_::UsdImagingGLEngine’ at line 208 in file path\to\USD\OpenUSD\pxr\usdImaging\usdImagingGL\engine.cpp : ‘No renderer plugins found!’ Traceback (most recent call last): File “path\to\USD\usd_build\lib\python\pxr\Usdviewq\stageView.py”, line 1621, in paintGL renderer = self.getRenderer() File “path\to\USD\usd_build\lib\python\pxr\Usdviewq\stageView.py”, line 943, in getRenderer self.renderer = UsdImagingGL.Engine() pxr.Tf.ErrorException: Error in 'pxrInternal_v0_23pxrReserved::UsdImagingGLEngine::SetRendererPlugin’ at line 976 in file path\to\USD\OpenUSD\pxr\usdImaging\usdImagingGL\engine.cpp : ‘Invalid plugin id or plugin is unsupported: HdPrmanLoaderRendererPlugin’ Error in 'pxrInternal_v0_23pxrReserved_::UsdImagingGLEngine’ at line 208 in file path\to\USD\OpenUSD\pxr\usdImaging\usdImagingGL\engine.cpp : ‘No renderer plugins found!’`

jesschimein commented 6 months ago

Filed as internal issue #USD-9238