All Projects → KitwareMedical → SlicerVirtualReality

KitwareMedical / SlicerVirtualReality

Licence: Apache-2.0 license
A Slicer extension that enables user to interact with a Slicer scene using virtual reality.

Programming Languages

C++
36643 projects - #6 most used programming language
CMake
9771 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to SlicerVirtualReality

SlicerITKUltrasound
Ultrasound image formation, processing, and analysis. Interfaces built off the ITKUltrasound library.
Stars: ✭ 18 (-74.29%)
Mutual labels:  3d-slicer, 3d-slicer-extension
Slicer-PETDICOMExtension
3D Slicer extension containing tools for importing DICOM PET series
Stars: ✭ 14 (-80%)
Mutual labels:  3d-slicer, 3d-slicer-extension
SlicerSALT
An open-source, free comprehensive software that will allow biomedical scientists to precisely locate shape changes in their imaging studies. This software called Slicer Shape AnaLysis Toolbox (SlicerSALT), will enhance the intuitiveness and ease of use for such studies, as well as allow researchers to find shape changes with higher statistical …
Stars: ✭ 37 (-47.14%)
Mutual labels:  3d-slicer, kitware
image space
Interactive Image similarity and Visual Search and Retrieval application
Stars: ✭ 91 (+30%)
Mutual labels:  kitware
zephyr
Mirror Android notifications to VR
Stars: ✭ 78 (+11.43%)
Mutual labels:  openvr
gis-snippets
Some code snippets for GIS tasks
Stars: ✭ 45 (-35.71%)
Mutual labels:  vtk
vr-python-quickstart-hg1
VR Headset Controller Tutorial, get started with virtual reality in Python
Stars: ✭ 29 (-58.57%)
Mutual labels:  openvr
SPHARM-PDM
Shape analysis has become of increasing interest to the medical community due to its potential to precisely locate morphological changes between healthy and pathological structures. SPHARM-PDM is a tool that computes point-based models using a parametric boundary description for the computing of Shape analysis.
Stars: ✭ 32 (-54.29%)
Mutual labels:  3d-slicer-extension
IMU-VR-Full-Body-Tracker
Inertial Measurement Unit (IMU) based full body tracker for Steam VR.
Stars: ✭ 46 (-34.29%)
Mutual labels:  openvr
MixedRealityToolkit
Evergine.MRTK provides a set of components and features to accelerate cross-platform XR application development in Evergine.
Stars: ✭ 32 (-54.29%)
Mutual labels:  openvr
SlicerRadiomics
A Slicer extension to provide a GUI around pyradiomics
Stars: ✭ 83 (+18.57%)
Mutual labels:  3d-slicer
godot-openvr-asset
Godot asset for the openvr module
Stars: ✭ 52 (-25.71%)
Mutual labels:  openvr
TurnSignal
An anti-cable-twisting management utility for SteamVR.
Stars: ✭ 73 (+4.29%)
Mutual labels:  openvr
dicom2stl
Python script to extract a STL surface from a DICOM image series.
Stars: ✭ 151 (+115.71%)
Mutual labels:  vtk
Joy2OpenVR
Interface to OpenVR Input Emulator to translate any Direct Input controllers commands into VR Controller commands
Stars: ✭ 25 (-64.29%)
Mutual labels:  openvr
meshmagick
A command line tool and a python package to manipulate hydrodynamics meshes
Stars: ✭ 36 (-48.57%)
Mutual labels:  vtk
sight
Surgical Image Guidance and Healthcare Toolkit
Stars: ✭ 38 (-45.71%)
Mutual labels:  vtk
hobo vr
SteamVR driver prototyping tool
Stars: ✭ 44 (-37.14%)
Mutual labels:  openvr
Slicer-DeepInfer
3D Slicer Module for connecting to model repository and use models for image analysis.
Stars: ✭ 23 (-67.14%)
Mutual labels:  3d-slicer
getfem
Mirror of GetFEM repository
Stars: ✭ 23 (-67.14%)
Mutual labels:  vtk

SlicerVirtualReality

Extension for 3D slicer that enables user to interact with the 3D scene using virtual reality.

The extension works with all OpenVR-compatible headsets, such as HTC Vive, all Windows Mixed Reality headsets (by Acer, Lenovo, HP, etc.), and with Oculus Rift. See the YouTube video below or this Kitware blog post for some more background and application examples.

Demo: Pedicle screw insertion in virtual reality using Slicer

Features include:

  • View all content of any of the 3D viewers in Slicer, anytime, by a single click.
  • Show volumes as 2D image slices or volume rendering, render surfaces, points, etc.
  • View any 4D data sets, using any rendering technique (including volume rendering) - provided by Sequences extension
  • Align the headset's view to match viewpoint of the selected 3D view in Slicer
  • Fly around using the touchpad of the right controller: direction is specified by orientation of the controller; speed is determined by the position of the finger on the touchpad (touch at the top to fly forward, touch at the bottom to fly backward).
  • Grab and reposition objects using the grab button on the controller.
  • Translate, rotate, scale the world (all objects) by pressing grab buttons on both controllers at the same time.
  • Advanced volume rendering performance tuning: available in Virtual Reality module, to find good balance between image quality and refresh rate.
  • Make position of controllers available as transforms in the Slicer scene. These transforms can be used in custom modules to reslice volumes (using Volume Reslice Driver module in SlicerIGT extension) or transform any nodes in the scene.

Feature set of the extension is continuously improved. You can give us feedback and propose ideas for improvements by submitting them on the issue tracker.

Usage

Setup

Platform support: Currently the extension only works on Windows computers. Linux support is experimental: Steam VR has limited support on linux and the Slicer extension is built for Linux but not tested. The extension is not available on macOS, as currently there are no virtual reality headsets available for macOS. If you wish to use Virtual Reality extension on Linux or macOS and you have virtual reality capable hardware and Steam VR works well on your computer then add a comment in the issue tracker (macOS / Linux).

Configuring graphics: If both integrated display card and high-performance GPU are available in a system (typically this is the case on laptops with NVidia GPUs), then configure the graphics card application settings to use high-performance GPU for SlicerApp-real.exe (it is not necessary to use high-performance GPU for the launcher, Slicer.exe).

How to set up my HTC Vive headset

  • Install Steam and SteamVR and set up your headset (you should be able to see SteanVR home application running in your headset).
  • Install Slicer and SlicerVirtualReality extension.
  • To see content of content of the 3D view in your headset: click "Show scene in virtual reality" button on the toolbar in Slicer.

How to set up my Windows Mixed Reality headset

  • Install Steam and SteamVR and set up your headset.
  • Set up Windows Mixed Reality for SteamVR (you should be able to see SteanVR home application running in your headset).
  • Install Slicer and SlicerVirtualReality extension.
  • To see content of content of the 3D view in your headset: click "Show scene in virtual reality" button on the toolbar in Slicer.

How to set up my Oculus Rift headset

  • Install Steam and SteamVR and set up your headset to work with SteamVR.
  • Install Slicer and SlicerVirtualReality extension.
  • To see content of content of the 3D view in your headset:
    • Start Oculus app (put on the headset for a moment and it will be started)
    • Click the "Show scene in virtual reality" button on the toolbar in Slicer.

How to use controllers

HTC Vive Controller

Fly

Move around in space. Equivalent to physically walking around.

Controls:

  • Touchpad forward: fly forward
  • Touchpad backwad: fly backward

Notes:

  • Flying direction is specified by the orientation of the controller.
  • Speed is proportional to distance of the fingertip from the touchpad center.
  • Maximum speed is configurable in Virtual Reality module.

Transform entire scene

Translate/rotate/scale the entire rendered scene.

Controls: while keeping grip button depressed on both controllers

  • Move controllers closer together/farther apart: scale size of the entire scene
  • Translate controllers in parallel up/down/left/right/forward/backward: translate the entire scene
  • Pivot controllers around: rotate the entire scene

Notes:

  • Object positions in the scene are not modified.
  • Controllers must be outside of all selectable objects when grip buttons are pressed.

Transform objects

Translate/rotate a selected object.

Controls: press grip button when a controller is inside a selectable object

  • Move controllers closer together/farther apart: scale size of the entire rendered scene
  • Translate controllers in parallel up/down/left/right/forward/backward: translate all objects
  • Move controller

Notes:

  • When you grab and move object, a parent transform is automatically created for it (if it has not been under a transform already) and that transform is modified.
  • To move a group of objects together, assign the same parent transform to them. You can do that in Data module's Transform hierarchy tab by drag-and-dropping objects under the same transform (or by double-clicking in the Applied Transform column in Data module's Transform hierarchy tab and selecting a transform; or by selecting a transform in Transforms module and applying it to all the nodes that must move together).
  • Either left or right controller can be used to grab an object. Each controller can be used to grab an object and move independently.
  • By default all objects are selectable. An object can be made non-selectable (thus non-movable) in Data module / Subject hierarchy tab, right-clicking on the node and unchecking "Toggle Selectable".
  • Moving of segmentation nodes is slow. If you want to move segmentations using controllers then export them to model nodes (in Data module, right-click on the segmentation node and choose Export visible segments to models) and transform the model nodes.

Other features

Accessing VR transforms (controller, headset, generic trackers) in Slicer

Go to Virtual Reality module and check the desired checkbox to update linear transform nodes with the various devices' positions. Note: The magnification factor in advanced settings affects these transforms.

Frequently asked questions

How to clip models

3D Slicer can clip models using slice planes. This feature can be used in virtual reality by moving the slice plane using a transform, with the help of Volume reslice driver module.

The models, transforms, etc. only need to be set up once, because the scene can then be saved to file and next time it can be readily used.

Simple clipping

Move clipping planes continuously, as the controllers are moved.

  • Go to Models module, select the model to clip, and in Clipping section enable Clip selected model. By default the Red slice will be chosen for clipping.
  • Go to Virtual Reality module and enable making controller transform appear as transforms in the scene.
  • Go to Volume reslice driver module (in SlicerIGT extension) to make the controller transform move the Red slice.
  • Moved the controller inside the model to clip it

Clipping with handles

Grab and move clipping planes using controllers (clipping plane remains in place).

  • Go to Models module, select the model to clip, and in Clipping section enable Clip selected model. By default the Red slice will be chosen for clipping.
  • Add a small model, for example a box to the scene. It can be loaded from STL or created using Create models module (in SlicerIGT extension).
  • Move the model using a controller. This creates a parent transform for this model.
  • Go to Volume reslice driver module (in SlicerIGT extension) to make the model's parent transform move the Red slice.
  • Grab and move the model using the controller to move the clipping plane.

Rendering is slow

There are several settings that help in increasing the performance of virtual reality rendering:

  • If you are using a computer that has two graphics cards (for example, laptops often have an integrated Intel and a high-performance NVidia graphics card), make sure that Slicer is forced to use the high-performance card that the headset is connected to. Most laptops assign applications to the integrated card by default. When you need to select the application executable, choose SlicerApp-real.exe (and not the Slicer launcher application Slicer.exe).
  • Optimize scene for virtual reality button (magic wand icon on toolbar): this switches volume rendering to use GPU, turns off backface culling for all existing models (to see surfaces even when going inside an object), turns off slice intersection visibility for all existing models and segmentations (to make slice view updates faster)
  • Settings in virtual reality module panel related to performance (click on wrench icon in toolbar):
    • Update rate: Volume rendering quality is set to produce the highest possible quality while keeping the desired frame per second
    • Motion sensitivity: It is very important to keep rendering smooth when moving. This setting detects head movement and significantly lowers volume rendering quality while it is happening. At value of 0 motion is never detected, at high values a little motion triggers the quality change
  • Settings in Volume rendering module: open "Advanced" section / "Techniques" tab, try "Adaptive" setting with different "Interactive speed" values. Also try and "Normal" setting: it disables the automatic mechanism that tries to dynamically adjust rendering quality based on predicted rendering time (in some cases the prediction does not work well and results in sub-optimal image quality).
  • Switch layout of desktop Slicer: Any additional 3D view to render decreases virtual reality rendering performance. By switching to a layout that contains no 3D view (e.g. Red slice only), this can be prevented

Some scenes are too complex to render fluently by mid-range graphics cards. If the scene includes volume rendering of high-resolution CT for example, then it may be necessary to upgrade to a high-end GPU.

How to record virtual reality videos?

Enable screen mirroring in SteamVR and use the free of OBS Studio software to capture VR headset content, application window, webcam, etc.

Note that OBS Studio may crash if NVidia hardware-based compression is used. If this happens, choose CPU-based video compression option for recording.

How to ask questions, report problems, or suggest new features?

Visit Slicer forum and search for similar discussions. If you do not find related topics then createa a new one. Add virtual-reality tag to make sure people who monitor virtual reality related questions get a notification about your question.

If you are certain that you have found a software bug and no similar issue has been reported in the issue tracker) then please submit a new issue.

Please do not use "VR" acronym (you can spell out "virtual reality" instead), because "VR" may mean "volume rendering" just as well as "virtual reality" - you can even do volume rendering in virtual reality in Slicer - and so it becomes confusing very quickly.

For developers

Information for developers is available in the Developer Guide.

Contributors

Contributors include:

  • Kitware: Jean-Christophe Fillion-Robin, Jean-Baptiste Vimort
  • PerkLab (Queen's University): Csaba Pinter, Andras Lasso
  • VASST Lab (Robarts Research Insitute): Adam Rankin

How to cite

Pinter, C., Lasso, A., Choueib, S., Asselin, M., Fillion-Robin, J. C., Vimort, J. B., Martin, K., Jolley, M. A. & Fichtinger, G. (2020). SlicerVR for Medical Intervention Training and Planning in Immersive Virtual Reality. IEEE Transactions on Medical Robotics and Bionics, vol. 2, no. 2, pp. 108-117, May 2020, doi: 10.1109/TMRB.2020.2983199

License

It is covered by the Apache License, Version 2.0:

http://www.apache.org/licenses/LICENSE-2.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].