ID 417365 - Hydra Viewer Scene Layer provides pick point depth in [OpenGL] NDC z range, not GL depth range

Follow

Problem summary:

The Hydra Viewer Scene Layer's pick implementation return the depth of a 'single point pick' in the range [-1, 1], not the GL depth range of [0, 1], resulting in incorrect pick depth ordering between objects in other layers.

Steps to reproduce:

  1. Load a Katana session with the Examples resources.
  2. Open the attached Katana project 'HydraViewerSceneLayerPickDepth.katana'.
  3. Expand the scene graph and look through the scene camera in the Hydra Viewer.
  4. Using single mouse click viewport selection, attempt to pick the 'ball' location where it appears in front of the small sphere.

Expected behaviour:

The ball location is selected.

Actual behaviour:

The occluded sphere is selected.

Workaround:

No known workaround.

Tested versions/platforms:

  • 3.2v3 - Unaffected
  • 3.5v1b1 - Affected

    We're sorry to hear that

    Please tell us why