3D mouse cursor for stereoscopic displays

Hello,

We would like have a 3D cursor in the 3D view, similar to the new widget that was recently merged in VTK.
This widget replaces the mouse cursor by a 3D point representation that is projected on the surface when an actor is hovered.
This feature is useful in a stereo environment, or when using haptic devices, to better visualize the position of the cursor in the 3D scene.

We noticed that the current crosshair implementation in 3DSlicer offers a similar functionality, but the following requirements are missing:

  1. The 2D mouse cursor should be hidden and replaced by the crosshair
  2. The crosshair position should be updated on mouse move events without pressing the shift key
  3. The crosshair position should be updated smoothly using a hardware picker (as opposed to the current volume picker)

We are not sure what is the best path forward to make this functionality available in 3DSlicer.
Should we update the current crosshair implementation to add a new mode that fulfills the requirements above?
Or is it preferred to integrate the vtk3DCursorWidget directly?

Many thanks,
Lucas

cc: @LaurennLam

1 Like

That sounds pretty close to the current crosshair behavior and I think you could just make these modes available without adding a whole new mechanism.

Thanks a lot for your insight @pieper ! Sounds good to me.

Let’s wait for potential feedback from @lassoan and @jcfr before we go any further.

A PR has been opened to answer the requirements.
It can be found here

1 Like