Commit 1c4e0c0
fix niInstanceAggregationSceneIndex to handle paths that are
not namespace descendents when computing binding hash.
for a sibling path, walk ancestors to find the nearest native instance
root and lazily normalize it value to be relative to the instance root.
for model:modelPath in ModelAPI, we follow the deferred skinniing
pattern by relocating it to model:modelPath primvar in
UsdImagingNiPrototypePropagatingSceneIndex since it can be an arbitrary.
ancestor path. They are then aggregated automatically as instance
primvar on the instancer. this solves the hash difference as well as
allow it to survive instance aggregation, otherwise once aggregated,
only the value of the first instance will be available on the prototype.
add usdImaging unit test as well as a usdSkelImaging integration test.
add USDIMAGING_API export macro to methods used in test so that they
compile on windows.
(Internal change: 2420089)1 parent bfcf3fd commit 1c4e0c0
12 files changed
Lines changed: 1047 additions & 27 deletions
File tree
- pxr/usdImaging
- usdImaging
- testenv
- usdSkelImaging
- testenv
- testUsdSkelImagingNiAggregationNonDescendantPaths
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
264 | 273 | | |
265 | 274 | | |
266 | 275 | | |
| |||
376 | 385 | | |
377 | 386 | | |
378 | 387 | | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
379 | 394 | | |
380 | 395 | | |
381 | 396 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
0 commit comments