PixarAnimationStudios / OpenUSD

Universal Scene Description
http://www.openusd.org
Other
5.6k stars 1.16k forks source link

Resyncs when authoring root xforms on PointInstancers #1211

Open asluk opened 4 years ago

asluk commented 4 years ago

Currently, authoring root xforms on PointInstancer prims results in a full resync of the corresponding render index entries, due to https://github.com/PixarAnimationStudios/USD/blame/master/pxr/usdImaging/usdImaging/pointInstancerAdapter.cpp#L797 .

Filing this to be tracked, see discussion in https://groups.google.com/d/msg/usd-interest/dA9KhRJ1xfA/Ed3kffTHAwAJ

Repro case:

sphereInstancer.zip

Load asset in usdview, select the translate op on /World/Instancer, and then in the interpreter

Tf.Debug.SetDebugSymbolsByName("USDIMAGING_UPDATES", 1) Tf.Debug.SetDebugSymbolsByName("USDIMAGING_CHANGES", 1) usdview.property.Set((1,0,0))

This triggers a full resync as shown in the diagnostics below. Ideally this would be granular and retain all existing rprims. [Objects Changed] Notice recieved from stage with root layer @c:/Users/aluk/Downloads/sphereInstancer.usda@

jtran56 commented 4 years ago

Filed as internal issue #USD-6077.