arnold-usd icon indicating copy to clipboard operation
arnold-usd copied to clipboard

usd from Maya does not render if shapes have arnold:visibility primvar

Open xsisupport opened this issue 1 year ago • 2 comments

Describe the bug USD geometry exported from Maya does not render in the viewport.

To Reproduce Steps to reproduce the behavior:

  1. In Maya, disable one of the visibility flags (for example, diffuse reflection)
  2. Export to usd (using either Maya USD or Arnold USD)
  3. In Houdini, bring in the usd file as a Sublayer (or Reference)
  4. 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

xsisupport avatar Aug 03 '23 15:08 xsisupport

Issue synced internally to ARNOLD-13884

I can reproduce this issue.

  1. Exporting a cube with Arnold > Diffuse Reflection disabled from Maya with Maya-USD and plug-in configuration job context "Arnold"
  2. Sublayer into Houdini
  3. Render with Arnold
  4. 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

image

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.

BigRoy avatar Jan 30 '24 19:01 BigRoy