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

Sidedness overrides are not working on the ALAB asset

Open sirpalee opened this issue 3 years ago • 4 comments

Describescene_2108.usda.ziphe bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Download the ALAB asset
  2. Place the usda from scene_2108.usda.zip in the top directory (above USD_ALab_0730).

Expected behavior The outside shed should obstruct the view into the lab.

current result: image

expected result: image

Used Software Versions

  • Arnold: 6.2.1.1
  • USD: 21.08

sirpalee avatar Aug 11 '21 04:08 sirpalee

This happens because the ID of the primitive being synced is pointing to the prototype rather than the mesh itself, and the primvars are only accessible on the base mesh.

For example, we get the path in the format of /root/thelab01/shed_grp/structure_proxywall_left_0001.proto_proxywall_left_geo_id0 instead of /root/thelab01/shed_grp/structure_proxywall_left_0001. I suspect this has changed around USD 21.02, when Hydra instancing got revamped, or we could be facing a bug.

A quick solution is to check if the ID we receive "IsPrimPropertyPath" and fall back to the parent path.

sirpalee avatar Aug 12 '21 08:08 sirpalee

The behaviour is the same in 20.08, so it's not something that was recently changed. Possibly the code wasn't tested with instances or the point instancer.

sirpalee avatar Aug 13 '21 08:08 sirpalee

Issue synced internally to ARNOLD-13284

need to confirm if this is fixed before closing

compso avatar May 12 '23 09:05 compso