arnold-usd
arnold-usd copied to clipboard
usd from Maya does not render if shapes have arnold:visibility primvar
Describe the bug USD geometry exported from Maya does not render in the viewport.
To Reproduce Steps to reproduce the behavior:
- In Maya, disable one of the visibility flags (for example, diffuse reflection)
- Export to usd (using either Maya USD or Arnold USD)
- In Houdini, bring in the usd file as a Sublayer (or Reference)
- Change the renderer to Arnold. The geometry is not visible (but it is with Houdini GL, Karma, and Storm).
Another way to repro, with a usd file that does not have arnold:visibility in it, is to just Edit arnold:visibility As soon as you do, the object disappears from the render.
If you export USD from Houdini and load it into usdview, same problem.
My repro usda files and a hip file: visibility.zip
Used Software Versions
- Arnold: Latest beta
Issue synced internally to ARNOLD-13884
I can reproduce this issue.
- Exporting a cube with Arnold > Diffuse Reflection disabled from Maya with Maya-USD and plug-in configuration job context "Arnold"
- Sublayer into Houdini
- Render with Arnold
- No cube is visible.
Specs:
- Windows 10
- Maya 2024.2
- MtoA 5.3.2
- HtoA 6.2.5.1
- Houdini 20.0.547
It seems the visibility values as also described here do not get picked up by Arnold-USD?
The value comes in as:
uchar primvars:arnold:visibility = 223
Solely removing that attribute makes it display.
Also a value of 255
(which should indicate full visibility) does not make the mesh display if authored in the USD file. I need to completely remove the opinion for it to become visible.