-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
usdview picks prototype meshes instead of top-level instancers in v20.05 #1196
Comments
See https://groups.google.com/d/msg/usd-interest/-CF8BCGVdu4/3xOHu9kCBAAJ for more context |
Filed as internal issue #USD-6054. |
…of selecting the root boundable of the picked object. Add "Pick prototypes", with the current behavior of selecting an instance of the picked gprim. This necessitates passing HdInstancerContext into python. The instancer munging code in the selection model and the rollover handling has also been updated for the new API. Fixes #1196 (Internal change: 2078845)
I've verified that I can pick the top-level instancer in the City_set again with v20.08-rc1 usdview -- thanks! However, I can't pick the top-level instances in this "point instancers inside native instances" example - |
… native instances, if applicable. Fixes #1196 (Internal change: 2083804)
Thanks for the fix-- I implemented something similar to get this working in our app as well. It feels like something is going awry with the intersection test itself though-- most of the time, picking on geometry in the previously attached native/ptinst nesting doesn't get a hit. Here is some usdviewq.StageView.pick() debug output from picking around the same area several times in v20.08-rc3 until it hits, where as in v19.11, it would always get a hit.
|
I don't necessarily think that the remaining pick-miss issue needs to hold up the release from our perspective, as it works properly in our app, but I'm not sure what's going awry in usdview, at least on Windows. |
We noticed that issue also, Aaron, while looking into this. We have filed
it and are investigating, though not holding up 20.08 for it.
Thanks!
—spiff
On Fri, Jul 17, 2020 at 2:20 AM Aaron Luk ***@***.***> wrote:
I don't necessarily think that the remaining pick-miss issue needs to hold
up the release from our perspective, as it works properly in our app, but
I'm not sure what's going awry in usdview, at least on Windows.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1196 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPOU2AZ6X77ZBJTVUXRT33R4AJWVANCNFSM4M2UBKYQ>
.
--
--spiffiPhone
|
With the rewrite of instance index to prim path queries in 82e343c , it looks like picking point instancers in instance or prim picking mode ends up selecting the prototype meshes instead of the overarching point instancer prim. For example, this is the output from the ptinst city with USDIMAGING_SELECTION debug enabled:
It looks like it does know that that "pi" is /MediterraneanHills/Buildings, but the actual returned path and selection content is the prototype mesh. In prim picking mode, all instances for the selected prototype get highlighted in the viewport.
This breaks workflows where a user wants to pick a point instancer in the viewport and toggle vis/invis, for example, at the prim level.
Ideally, usdview would pick the top-level instancer in this case, and UsdImaging would expose an API which, given an rprim and instance index, return the path to that top-level instancer.
Thank you!
The text was updated successfully, but these errors were encountered: