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

usdview: Failed to load plugin hdAurora #11

Open
ohmaya opened this issue Dec 8, 2022 · 8 comments
Open

usdview: Failed to load plugin hdAurora #11

ohmaya opened this issue Dec 8, 2022 · 8 comments
Labels
enhancement New feature or request

Comments

@ohmaya
Copy link

ohmaya commented Dec 8, 2022

https://github.com/Autodesk/Aurora/blob/main/Doc/HdAurora.md#deploying-hdaurora

The deployment (to a USD build from official USD GitHub) seemed to be successful.

Then I launched usdview with the .usda file without specifying --renderer.

On the UI, I swithed to Aurora.

The dialog messege is in Chinese but should means: Cannot location program entry point on USD_Build\plugin\usd\hdAurora.dll.

The error in command line:
Error in 'pxrInternal_v0_22__pxrReserved__::PlugPlugin::Load' at line 258 in file E:\dp\Sft\3D\USD\pxr\base\plug\plugin.cpp : 'Failed to load plugin 'hdAurora': ?????????
in 'e:/dp/Sft/3D/USD_Build/plugin/usd/hdAurora.dll''
Error in 'pxrInternal_v0_22__pxrReserved
_::HdRendererPluginRegistry::CreateRenderDelegate' at line 100 in file E:\dp\Sft\3D\USD\pxr\imaging\hd\rendererPluginRegistry.cpp : 'Couldn't find plugin for id HdAuroraRendererPlugin'

@ohmaya ohmaya changed the title Failed to load plugin hdAurora usdview: Failed to load plugin hdAurora Dec 8, 2022
@oumad
Copy link

oumad commented Dec 8, 2022

I had the same issue, I fixed it by adding the bin directory of Aurora build to path env variable (not just the USD one).
For reference these are the environment variables I have (I use windows, so this is my .bat script) :

set USDROOT=<path to your Aurora USD build>
set Path=%Path%;%USDROOT%\bin;%USDROOT%\lib;<path/to/Aurora/Build\bin\Release>
set PYTHONPATH=%PYTHONPATH%;%USDROOT%\lib\python

%USDROOT%/bin/usdview <path/to/AutodeskTelescope.usda> --renderer=Aurora

@ohmaya
Copy link
Author

ohmaya commented Dec 9, 2022

path to your Aurora USD build

So, the official USD GitHub build won't work?

@oumad
Copy link

oumad commented Dec 9, 2022

path to your Aurora USD build

So, the official USD GitHub build won't work?

I haven't really tested with that. Not sure what's exactly different in the fork that's used in installExternals.py.

@pixnblox
Copy link
Contributor

pixnblox commented Dec 9, 2022

The fork has support for hardware ray tracing with Vulkan, which we hope to make available in an official USD release eventually. I believe you should be able to build with an official USD release if you are using DirectX / Windows.

@pixnblox
Copy link
Contributor

pixnblox commented Dec 9, 2022

Further clarification and desires:

The USD build that Aurora installs does not have Python support, but Python support is needed for Usdview, hence a separate USD installation is required. This is not ideal, because it means you have effectively two USD installations, at 10 GB each, if you want to run with Usdview. We also use the fork (mentioned above and in the README.md) in all situations.

So we hope to offer some options here, e.g. allow a single Python-based USD installation, and allow it to be an official release (e.g. 22.08 for now), assuming you are using the DirectX backend.

EDIT: Marking this as "enhancement" to track that request.

@pixnblox pixnblox added the enhancement New feature or request label Dec 9, 2022
@ohmaya
Copy link
Author

ohmaya commented Dec 10, 2022

The USD build that Aurora installs does not have Python support

Is it possible to add Python support by ourselves?

@ohmaya
Copy link
Author

ohmaya commented Dec 10, 2022

adding the bin directory of Aurora build to path env variable

This does not work for me.

Curious how you make Aurora USD build work. As pixnblox said, "The USD build that Aurora installs does not have Python support".

I built Aurora USD manually into \USD-22.08-Aurora-v22.11_Build, setting PYTHONPATH as USD-22.08-Aurora-v22.11_Build\lib\python gives the error of "DLL load failed while importing _tf".

@ohmaya
Copy link
Author

ohmaya commented Dec 15, 2022

Could be missing some DLLs:
Error in 'pxrInternal_v0_22__pxrReserved__::PlugPlugin::Load' at line 258 in file E:\dp\Sft\3D\USD\pxr\base\plug\plugin.cpp : 'Failed to load plugin 'hdAurora': The specified module could not be found.
in 'e:/dp/Sft/3D/USD_Build/plugin/usd/hdAurora.dll''
Error in 'pxrInternal_v0_22__pxrReserved
_::HdRendererPluginRegistry::CreateRenderDelegate' at line 100 in file E:\dp\Sft\3D\USD\pxr\imaging\hd\rendererPluginRegistry.cpp : 'Couldn't find plugin for id HdAuroraRendererPlugin'

Initially, we had the same issue with Cycles hydra, but resolved by adding some paths for some DLLs, for Aurora hydra we wasn't able to figure out every needed DLLs.

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

No branches or pull requests

3 participants