How to setup 3D SpaceMouse for Communicator

This article explains how to setup the 3Dconnexion SpaceMouse device for the quick_start server on HOOPS Communicator.

This Page could be modified or deleted once we document definitive instructions on how to initialize the SpaceMouse for Communicator.

Instructions

  1. Download and Install the 3DConnexion SpaceMouse Drivers: 3DxWare 10 Archives - 3Dconnexion US
  2. Edit hoops_web_viewer_sample.html file in HOOPS_Communicator_XXXX\web_viewer\src package
  3. Add hwv.operatorManager.getOperator(Communicator.OperatorId.SpaceMouse).connect(); to the hwv.setCallbacks function
hwv.setCallbacks({
  sceneReady: function () {
    const canvas = hwv.getViewElement();
  
    /**
      * This line is equivalent to canvas.focus()
      */
    hwv.focusInput(true);
  
    canvas.addEventListener("mouseenter", function () {
      hwv.focusInput(true);
    });
  
  // Enable 3D SpaceMouse operator
  hwv.operatorManager.getOperator(Communicator.OperatorId.SpaceMouse).connect();
  },
});
  1. Run the quick_start server
  2. Open a model file in the web viewer
  3. Enjoy the SpaceMouse controls
1 Like