OpenUSD icon indicating copy to clipboard operation
OpenUSD copied to clipboard

Autodesk: Deep Selection

Open erikaharrison-adsk opened this issue 1 year ago • 3 comments

Description of Change(s)

Following up on the feedback from https://github.com/PixarAnimationStudios/OpenUSD/pull/1831

This resolves all code review comments indicated in the original review.

  • MacOS support
  • Better documentation
  • Bug fixing, etc.

Background On Original PR:

This submission adds deep selection capabilities to HdStorm. This allows for selection of all objects within a pick-point or frustum to be selected even if the objects are obscured by other objects drawn on top.

It uses a GPU rendering technique similar to ID based picking except that it accummulates all pick results into a one dimensional "pickBuffer" instead of storing a single selection per pixel like the ID buffer approach does.

It can be enabled by setting a new resolve mode defined as HdxPickTokens->resolveDeep.

A new helper function named TestIntersections (plural) has been added to UsdImagingGlEngine to exercise the new functionality. A new Unit test is included to test the new resolve mode and UsdImagingGLEngine helper function.

Fixes Issue(s)

  • N/A
  • [X] I have verified that all unit tests pass with the proposed changes
  • [X] I have submitted a signed Contributor License Agreement

erikaharrison-adsk avatar Apr 16 '24 22:04 erikaharrison-adsk

Filed as internal issue #USD-9558

jesschimein avatar Apr 18 '24 00:04 jesschimein

/AzurePipelines run

jesschimein avatar Apr 18 '24 00:04 jesschimein

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Apr 18 '24 00:04 azure-pipelines[bot]