Skip to content

ENH: Use pose matrices instead of camera parameters for VR controllers

Csaba Pinter requested to merge cpinter/vtk:vr-physical-geometry-rework into master

It is easier to manage controller pose as a matrix instead of the (pos,wxyz,ppos,wdir) variables that the ConvertPoseToWorldCoordinates function calculates. A function called ConvertOpenVRPoseToMatrices was added that calculates the matrix. It is used in various places in addition or instead of those variables.

Small changes:

  • Fix incorrect sign of VR physical to world matrix translation
  • Fix gesture end event invocation (Trigger button release was checked instead of Grip, as it is done for press)
  • Add comments for physical to world ivars and controller pose camera style variables for easier understanding
  • Remove unused PoseTransform member variable from vtkOpenVRRenderWindowInteractor

Merge request reports