pablode / gatling

Hydra-enabled GPU path tracer that supports MaterialX and MDL
GNU General Public License v3.0
295 stars 19 forks source link

Can you share a simplest test scene? even a box #8

Closed aaronmack closed 2 years ago

aaronmack commented 2 years ago

I got the following error while running

Exception generating MDL code: Could not find a nodedef for shadernode 'SR_Invalid'

My guess is that my scene is not built correctly.

Any help would be greatly appreciated.

Aaron

pablode commented 2 years ago

Hi Aaron!

There's a cornell.usdc file in the root folder.

Three more assets can be found in my usd-assets repository.

You can try to render them with usdview or the gatling executable.

Hope this helps!

aaronmack commented 2 years ago

Hi Pablo! Thanks for your help.

I always get errors like below when running and get core dumped.

> usdview usd-assets/cornell-box/mdl/cornell-box.usda
Exception generating MDL code: Could not find a nodedef for shadernode 'SR_Invalid'
Building geom cache for camera /_UsdImaging_HdGatlingRendererPlugin_0x7f4eb81f6200/camera
#Vertices: 96
#Faces: 32
Segmentation fault (core dumped)

OS: Ubuntu 20.04 CMake: -DUSD_ROOT=/home/test/USD-build -DMDL_ROOT=/home/test/mdl-sdk-349500.8766a -DCMAKE_INSTALL_PREFIX=/home/test/USD-build/plugin/usd -DCMAKE_BUILD_TYPE=Release USD: dev

aaronmack commented 2 years ago

Or get

[fatal] (shadergen) MaterialX MDL file path not found, translation not possible

When I cleared the entire USD-build directory and recompiled everything.

pablode commented 2 years ago

Thanks for the info, I think I know what's going on.

It's related to a recent change, which I tested without clearing the install files. You should be able to fix it by copying some folders manually:

I'll implement a proper fix later and make sure it works. Thanks for bringing this up!

pablode commented 2 years ago

Fixed in 4b074df.

aaronmack commented 2 years ago

Works correctly, thanks