Published March 13, 2018 | Version v2
Poster Open

cChai3D: CHAI3D+Unity3D made easy

  • 1. Università degli studi di Genova
  • 2. Istituto Italiano di Tecnologia

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.

Files

poster.pdf

Files (1.3 MB)

Name Size Download all
md5:5d55a0d832eb74c34febe58ab7698a19
1.3 MB Preview Download

Additional details

Funding

weDRAW – Exploiting the best sensory modality for learning arithmetic and geometrical concepts based on multisensory interactive Information and Communication Technologies and serious games 732391
European Commission

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ò 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–21, 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–500, 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.