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
- Download and Install the 3DConnexion SpaceMouse Drivers: 3DxWare 10 Archives - 3Dconnexion US
- Edit
hoops_web_viewer_sample.html
file inHOOPS_Communicator_XXXX\web_viewer\src
package - Add
hwv.operatorManager.getOperator(Communicator.OperatorId.SpaceMouse).connect();
to thehwv.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();
},
});
- Run the quick_start server
- Open a model file in the web viewer
- Enjoy the SpaceMouse controls