-
Notifications
You must be signed in to change notification settings - Fork 201
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
[MAYA-114247] Selection Highlight doesn't update when changing selection with USD 21.11 #1752
Comments
Just for tracking purposes, this is internal Pixar Jira MAYA-3120 |
@dj-mcg I've created a pull request to fix selection for vp2RenderDelegate. I had to take a different approach than Hydra Storm does. We don't really have a simple way to integrate that selection tracker idea into our draw pipeline. Instead I've tried to restore the old behavior of Sync-ing rprims which have selection changed. I do this by directly setting a dirty bit on selected/deselected prims, and then having the rest of the code work the same way. Please let me know if this works for you. |
Thanks @williamkrick - I'll sync to your branch today and let you know |
Hey @williamkrick - thanks for the fix! I'm testing with the branch that @dj-mcg built and so far, with "Smooth Shade All" shading, it seems to be working as expected. However, when flipping to "Wireframe" or "Wireframe on shaded", the selection higlight starts sticking and drawing incorrectly again. For example, the selection highlight will remain in the previous location:
For example, the selection highlight will not update as you change selection:
Let me know if you think this is a separate issue and I can file a separate ticket! Thank you so much! |
@gracekumagai I will try to reproduce this and either re-open this one or log a new one on Thursday. |
Re-opening while I work on a fix for the issues with wireframe and wireframe on shaded. |
@gracekumagai I believe this is working correctly now, please let us know if you find more issues! |
Describe the bug
If building against the USD dev branch (which will become 21.11 shortly), selection highlighting does not update when selection changes. As soon as you poke metadata on the item in the AE (instanceable, kind, etc), selection highlight will update correctly.
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
Selection highlight appropriately updates when selection changes.
Specs (if applicable):
Additional context
It appears the VP2 Render Delegate is expecting Hydra to resync upon selection change, since the actual highlight logic appears to be within some hydra sync callbacks. There has been recent changes to the Hydra resync logic, and with the latest version, Hydra doesn't think there is any reason to resync upon selection change. Changing metadata WILL force hydra to sync, which calls into the callback and updates selection highlight properly.
We may want to manage the selection logic ourselves so we aren't depending on syncing, similar to USDView - see examples here:
Selection Update Calls: pxr/usdImaging/usdviewq/stageView.py
Selection Management and Rendering: pxr/usdImaging/usdImagingGL/engine.cpp
Selection Tracking: pxr/imaging/hdx/selectionTracker.cpp
The text was updated successfully, but these errors were encountered: