Back to Projects List
SlicerVR: interactive UI panel in the VR environment
Key Investigators
- Csaba Pinter (Ebatinca, Pixel Medical)
- Adam Rankin (Robarts Research, Canada)
- Jean-Christophe Fillion-Robin (Kitware)
- Simon Drouin (ETS)
Project Description
A key infrastructural element that is still missing from SlicerVR is the ability to show and interact with arbitrary Qt widgets in the VR scene. Up until recently, a blocking issue was an incomplete implementation of the vtkQWidgetWidget class in the VTK version that Slicer was using. Now that Slicer has been migrated to VTK9, the implementation of this in-VR widget continued.
A blocking issue for this to happen is the ability to build the SlicerVR extension against Slicer built with VTK9. Currently, build fails because the build system does not support building VTK remote modules externally (this issue breaks the build of other important extensions as well, such as SlicerVMTK).
Once build is fixed and the in-VR widget is added, arbitrary UI elements of Slicer can be used from within VR, thus basically exposing the entire Slicer functionality within the VR environment.
Objective
- Build SlicerVR against VTK9
- Add interactive Qt panel to VR scene SlicerVR#43
- Make use of the in-VR widget via laser pointer and VR-optimized widgets
Approach and Plan
- Update SlicerVR CMake files to build with VTK9
- Utilize new VTKExternalModule infrastructure to build vtk openvr rendering
- Extract the said module from VTK proper with history (JC)
- Change main CMake file to use this instead of the VTK remote module approach (Adam?)
- Fix build issues arising from the switch to VTK9 in SlicerVR (Csaba?)
- Try vtkQWidgetWidget in SlicerVR, confirm that it now works (Csaba)
- Explore existing possibilities for using a laser pointer emanating from the controllers to control the Qt-based widget (press, click, drag&drop, etc) (?)
- Add the already implemented but dormant VR-optimized widgets in the SlicerVR user interface (Csaba)
Progress and Next Steps
- Build SlicerVR against VTK9
-
KitwareMedical/SlicerVirtualReality#84: Update build system to support building against VTK9
- Created KitwareMedical/VTKExternalModule for externally building any built-in or remote VTK module outside of the VTK source tree.
-
vtk/vtk#8123: vtkModule: Do not generate files in source tree when building module externally
- In-VR UI widgets
- Rebased VR widgets branch to the latest master to a new branch
- Built the SlicerVR branch succesfully with VTK9
- The vtkQWidgetWidget test still crashes unfortunately
- Proposed some hooks to enable customization of VR interaction from python code in Slicer. Pull request here for reference.
Illustrations
Background and References
- Commit that broke 3rd party module build here
- Discussion on remote modules vs. external modules here
- How to make downstream VTK modules here
- Links to example here
- https://github.com/KitwareMedical/VTKExternalModule
- VR virtual widget branch here