pablode / gatling

Hydra-enabled GPU path tracer that supports MaterialX and MDL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Running problems on the Mac platform

aaronmack opened this issue · comments

  • In usdview
export PYTHONPATH=/Users/usd-build/lib/python && export PATH=/Users/usd-build/bin:/Users/usd-build/lib:$PATH && usdview --renderer=Gatling /Users/gatling/cornell.usdc

segmentation fault usdview --renderer=Gatling

  • Standalone
/Users/gatling/cmake-build-relwithdebinfo/bin/gatling
`HdGatling plugin is not supported!`

Any help would be greatly appreciated.

Aaron

Hi Aaron. Unfortunately I can't determine what's wrong based on the first error message. So here's what I think you can try to get it to work:

  • update the Vulkan SDK
  • clone the repository again (to ensure that submodules use the correct upstreams)
  • remove CMakeCache.txt and execute CMake again, using the MDL SDK 2022
  • clear the installed files (rm -rf <USD_INSTALL_DIR>/plugin/usd/hdGatling*)
  • install the Release configuration

If it still doesn't work, the problem may be caused by MacOS's security features. The renderer tries to load the MDL SDK library dynamically, which's signature may have changed due to the update. In this case, I would expect such a window to pop up:

gh_1

Is this the case? If so, you can press 'Cancel' and afterwards allow the library in the System Preferences -> Security & Privacy -> General (bottom) panel.

gh_2

Regarding the standalone: the executable is based on USD/Hydra and therefore also needs the PYTHONPATH and PATH environment variables.

If it still fails with a SEGFAULT, could you please paste the output of vulkaninfo here within a <details> tag?

Thanks, Pablo

image

Seems to be a problem with my vulkan, I use the latest code to get the error.

image

I'm still checking, any progress I'll let you know

Can't support macOS anymore since I've fully switched to hardware ray tracing. Let's hope supports lands in MoltenVK rather soon!