Karma (XPU) camera projection
683 6 2- ronald_a
- Member
- 37 posts
- Joined: 8月 2017
- Offline
- jsmack
- Member
- 7803 posts
- Joined: 9月 2011
- Online
- ronald_a
- Member
- 37 posts
- Joined: 8月 2017
- Offline
- jsmack
- Member
- 7803 posts
- Joined: 9月 2011
- Online
ronald_a
For example why does it only work if the material is parented under the "World" primitive?
yeah, it's kind of annoying that the hierarchy is restricted this way due to some USD reasons. The material, camera, and target need to be able to find the coordsys, and they can't find it if they don't share a common ancestor. USD is 'rootless' so without creating a true root, for example the 'world' primitive, the prims won't share a common ancestor.
Edited by jsmack - 2024年3月20日 22:57:39
- tamte
- Member
- 8595 posts
- Joined: 7月 2007
- Online
- robp_sidefx
- スタッフ
- 453 posts
- Joined: 6月 2020
- Offline
jsmack
The material, camera, and target need to be able to find the coordsys, and they can't find it if they don't share a common ancestor
The camera doesn't need to live in the same hierarchy. As for the rest of that, we're looking into a possible implementation issue in Karma. For *now*, yes, the coordsys binding should be applied on a parent prim common to the geometry & material.
- digitalwu
- Member
- 31 posts
- Joined: 6月 2017
- Offline
jsmack
Yes, use a USDCoordsys to create a reference coordinate system, then in the shader use that coordsys' name in a space parameter on one of the mtlx transform nodes or on the mtlx position directly.
May I ask how to assemble this USDCoordsys in materialx shader builder?
I need to project a displacement map on geo.
-
- Quick Links