Skip to content
/ VTK Public
forked from Kitware/VTK

[slicer-v9.2.20230607-1ff325c54-2] Backport VR fix for correct volume rendering when HMD inside the volume#48

Merged
jcfr merged 3 commits intoSlicer:slicer-v9.2.20230607-1ff325c54-2from
jcfr:slicer-v9.2.20230607-1ff325c54-2_vr-compositeprojection
Dec 23, 2023
Merged

[slicer-v9.2.20230607-1ff325c54-2] Backport VR fix for correct volume rendering when HMD inside the volume#48
jcfr merged 3 commits intoSlicer:slicer-v9.2.20230607-1ff325c54-2from
jcfr:slicer-v9.2.20230607-1ff325c54-2_vr-compositeprojection

Conversation

@jcfr
Copy link
Member

@jcfr jcfr commented Dec 23, 2023

This addresses proper rendering, particularly by vtkOpenGLGPUVolumeRaycastMapper, when the head-mounted display (HMD) is positioned inside the volume. The issue is resolved by ensuring correct computation of the plane frustum when the camera is tracking the HMD and is positioned inside the volume.

For more details:

Fixes:

sankhesh and others added 3 commits December 23, 2023 00:43
Track HMD affects whether the camera is tracking the head mounted
display or not. Moving this flag to the vtkVRCamera is fitting for this
purpose to allow multiple cameras in the VR world.  When performing
hardware picking, the camera is moved to the wand and TrackHMD is
disabled to ensure that the scene doesn't change.

Merge-request: vtk/vtk!10783
…ering

Co-authored-by: Lucas Gandel <lucas.gandel@kitware.com>
Co-authored-by: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
Merge-request: vtk/vtk!10783
@jcfr jcfr changed the title [slicer-v9.2.20230607-1ff325c54-2] Backport VR to fix volume rendering when HMD inside the volume [slicer-v9.2.20230607-1ff325c54-2] Backport VR fix for correct volume rendering when HMD inside the volume Dec 23, 2023
@jcfr jcfr added the backport:5.x Identify pull request expected to be backported to the current 5.x release branch. label Dec 23, 2023
@jcfr jcfr merged commit 7767cab into Slicer:slicer-v9.2.20230607-1ff325c54-2 Dec 23, 2023
@jcfr jcfr deleted the slicer-v9.2.20230607-1ff325c54-2_vr-compositeprojection branch December 23, 2023 06:54
@jcfr jcfr removed the backport:5.x Identify pull request expected to be backported to the current 5.x release branch. label Dec 23, 2023
@jcfr
Copy link
Member Author

jcfr commented Jan 10, 2024

⚠️ Reference to pull request KitwareMedical/SlicerVirtualReality#156 is unrelated and was an oversight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants