Cchai3D: Chai3D+Unity3D Made Easy
Creators: name: Balzarotti, Nicolò
name: Baud-Bovy, Gabriel
Publisher: name: Zenodo
Year: 2018
Subjects: Unity3D
Chai3D
haptics
software

description: CHAI3D is a powerful open-source cross-platform C++ simulation framework for haptic applications (Modified BSD License). It implements state-of-the-art algorithms to render object geometries and material properties such as weight, friction and texture. CHAI3D also integrates graphical rendering (Open GL) and physical simulation engines to develop full-fledged virtual reality applications. Despite its rich set of features, CHAI3D is not used as a general-purpose game engine because game developers tend to prefer other alternatives that offer features such as state machines, animation support, and Graphical User Interfaces (GUIs) that simplify the development of games. In this poster, we present a haptic plugin for Unity3D (https://unity3d.com/), a popular choice for game development. Previous attempts to integrate CHAI3D with Unity3D are either incomplete [3], [4] or no longer available [5]. At the lowest level of the plugin, we wrote cChai3d, a C wrapper around a lightweight version of CHAI3D that included only the force-rendering algorithms. The wrapper has C bindings to facilitate the integration with any programming language and framework. It also includes a high-frequency thread that handle all haptic rendering computation. Full integration between Unity3D and CHAI3D is achieved via Unity3D C# scripts that give haptic properties to Unity3D GameObjects with simple drag-and-drop operations. The position and orientation of the haptic device in the world is configurable and handled transparently. Haptic properties supported by CHAI3D such as stiffness, friction, viscosity and textures can be set via the Unity3D GUI and changed in real time while the simulation is running. Haptic interaction with moving objects is supported within the limits allowed by the update rate of Unity3D main loop. The plugin is compatible with any haptic device supported by CHAI3D. The haptic plugin has been used to implement a study on the haptic perception of virtual textures in Unity 3D and is currently used to implement a serious game to teach 3D geometry to young children.
description: {"references": ["N. Balzarotti and G. Baud-Bovy. Effects of chai3d texture rendering parameters on texture perception. In Eurohaptics, submitted 2018.", "Gabriel Baud-Bovy and Nicol\u00f2 Balzarotti. Using force-feedback devices in educational settings: A short review. In Proceedings of the 1st ACM SIGCHI International Workshop on Multimodal Interaction for Education, MIE 2017, pages 14\u201321, New York, NY, USA, 2017. ACM.", "F. Conti, F. Barbagli, R. Balaniuk, M. Halg, C. Lu, D. Morris, L. Sentis, J. Warren, O. Khatib, and K. Salisbury. The chai libraries. In Proceedings of Eurohaptics 2003, pages 496\u2013500, Dublin, Ireland, 2003.", "Sam Duffy, Sara Price, Gualtiero Volpe, Paul Marshall, N Bianchi-Berthouze, Giulia Cappagli, Luigi Cuturi, Nicolo Balzarotti, David Trainor, and Monica Gori. Wedraw: using multisensory serious games to explore concepts in primary mathematics. In Proceedings of the 13th international conference on technology in mathematics teaching, volume 13. 13th International Conference on Technology in Mathematics Teaching (ICTMT 13), 2017."]}