Skip to content

EMSUSD-3795 - Hydra 2.0 : Add fallback extent scene index and associated tests (5/6) - #4864

Open
danqua wants to merge 1 commit into
quastd/scene-index-default-path-4from
quastd/scene-index-default-path-5
Open

danqua wants to merge 1 commit into
quastd/scene-index-default-path-4from
quastd/scene-index-default-path-5

Conversation

@danqua

@danqua danqua commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Description

UsdImagingStageSceneIndex publishes an extent only where one is authored or can be resolved from extentsHint. UsdImagingDelegate also gave an extent to two kinds of prim, and without it:

  • Implicit surfaces with no authored extent have no bounding box to draw.
  • Models with a cards, bounds or origin draw mode and no extent collapse to the origin and draw nothing.

HdVP2FallbackExtentSceneIndex supplies the schema's fallback extent for implicit surfaces. For draw-mode models, it computes the bound from the children's bounding box. Includes unit tests covering authored and animated extents.

@danqua
danqua added this pull request to stack #4861 November 19, 2026 12:32
@danqua danqua changed the title Add fallback extent scene index and associated tests Add fallback extent scene index and associated tests (5/6) Nov 19, 2026
@danqua
danqua force-pushed the quastd/scene-index-default-path-5 branch from b856ee9 to abacaee Compare November 19, 2026 14:43
@danqua danqua changed the title Add fallback extent scene index and associated tests (5/6) EMSUSD-3795 - Hydra 2.0 : Add fallback extent scene index and associated tests (5/6) Nov 19, 2026
@danqua
danqua force-pushed the quastd/scene-index-default-path-5 branch from abacaee to 2de2bd0 Compare November 25, 2026 09:20
@danqua
danqua marked this pull request as ready for review November 25, 2026 10:02
@danqua
danqua force-pushed the quastd/scene-index-default-path-5 branch from 2de2bd0 to 0ed2c02 Compare November 27, 2026 09:24
- Introduced HdVP2FallbackExtentSceneIndex to provide extents for implicit surfaces and models without authored extents.
- Implemented logic to compute extents based on the schema's fallback or the bounding box of child primitives.
- Updated scene index producer to include the new fallback extent scene index.
- Added tests to validate the behavior of the fallback extent for various scenarios, including implicit surfaces, authored extents, and animated extents.
- Enhanced CMake configuration to compile and link the new test executable for the fallback extent scene index.
@danqua
danqua force-pushed the quastd/scene-index-default-path-5 branch from 0ed2c02 to 7f88418 Compare November 27, 2026 14:18
@danqua danqua self-assigned this Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant