Hi there fans of Tarkovski sci-fi,
I have a very simple USD file, basically a hierarchy that consists of a transform with with a mesh cube and a mesh sphere underneath. The cube visibility is set to hidden (`token visibility = "invisible"`).
Question:
- a) when I bring this in LOPs -- say with a file LOP node -- everything is cool. The cube is correctly hidden.
- b) when I bring this in SOPs -- say with a usdImport SOP -- the cube is visible.
- c) even worse: is I use a LOPImport SOP that imports the above a) from LOPs, the cube it is visible (in SOP)
So basically, SOPs seems to completely ignore the USD visibility.
Is this intended? If not how to easily respect it?
Cheers,
P
(file attached)
USD prim visibility when in SOPs
2453 5 0- pbdj
- Member
- 44 posts
- Joined: Oct. 2014
- Offline
- antc
- Member
- 336 posts
- Joined: Nov. 2013
- Online
In sops if you drop down a unpack usd to polygons you should get a usdvisibility prim attribute. From there you can do something like @usdvisibility=="invisible" in the group field of a visibility sop to hide the corresponding prims. I'm not sure why usd packed prims don't get a usdvisibility attribute. Hopefully just an oversight.
- antc
- Member
- 336 posts
- Joined: Nov. 2013
- Online
- pbdj
- Member
- 44 posts
- Joined: Oct. 2014
- Offline
Believe it or not I could not repro any of the two w/a you suggested (which I both undertand btw). I just cant manage to get the cube to be invisible.
BTW the unpack is not necessary because the usdimport is actually a digital asset and inside you can see it creates a lopnet, reads the usd file in lop and the lo-imports it into sop. There is then an unpack node built in, so can unpack from the usdimport directly.
Nevertheless, I think this needs to work OOTB. We cannot have artist in production have to know it, sadly. I will ping SESI support as I believe this really needs to work OOTB.
BTW the unpack is not necessary because the usdimport is actually a digital asset and inside you can see it creates a lopnet, reads the usd file in lop and the lo-imports it into sop. There is then an unpack node built in, so can unpack from the usdimport directly.
Nevertheless, I think this needs to work OOTB. We cannot have artist in production have to know it, sadly. I will ping SESI support as I believe this really needs to work OOTB.
- antc
- Member
- 336 posts
- Joined: Nov. 2013
- Online
- Valentin Do
- Member
- 1 posts
- Joined: July 2016
- Offline
-
- Quick Links