Skip to main content

Write-Once, Transpile-Everywhere: Re-using Motion Controllers of Virtual Humans Across Multiple Game Engines

  • Conference paper
  • First Online:
Augmented Reality, Virtual Reality, and Computer Graphics (AVR 2018)

Part of the book series: Lecture Notes in Computer Science ((LNIP,volume 10850))

Abstract

Transpilation allows to write code once and re-use it across multiple runtime environments. In this paper, we propose a software development practice to implement once the motion controllers of virtual humans and re-use the implementation in multiple game engines. In a case study, three common human behaviors – blinking, text-to-speech, and eye-gaze – were developed in the Haxe programming language and deployed in the free, open-source Blender Game Engine and the commercial Unity engine. Performance tests show that transpiled code executes within 67% faster to 127% slower with respect to an implementation manually written in the game engine target languages.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://unity3d.com/ – 30 Apr 2018.

  2. 2.

    https://www.unrealengine.com/ – 30 Apr 2018.

  3. 3.

    https://haxe.org/ – 30 Apr 2018.

  4. 4.

    https://www.blender.org/ – 30 Apr 2018.

  5. 5.

    https://en.wikipedia.org/wiki/Source-to-source_compiler – 30 Apr 2018.

  6. 6.

    https://github.com/kripken/emscripten – 30 Apr 2018.

  7. 7.

    http://www.gwtproject.org/ – 30 Apr 2018.

  8. 8.

    https://www.xamarin.com/ – 30 Apr 2018.

  9. 9.

    https://en.wikipedia.org/wiki/Adapter_pattern – 30 Apr 2018.

  10. 10.

    https://en.wikipedia.org/wiki/Facade_pattern – 30 Apr 2018.

  11. 11.

    http://www.dfki.de/~fanu01/SalentoAVR2018/ – 30 Apr 2018.

  12. 12.

    http://www.manuelbastioni.com/ – 30 Apr 2018.

  13. 13.

    http://mary.dfki.de/ – 30 Apr 2018.

  14. 14.

    https://lib.haxe.org/p/glm/ – 30 Apr 2018.

  15. 15.

    https://en.wikipedia.org/wiki/Welch’s_t-test – 30 Apr 2018.

References

  1. Bouraqadi, N., Mason, D.: Mocks, Proxies, and Transpilation as development strategies for web development. In: Proceedings of the 11th Edition of the International Workshop on Smalltalk Technologies, IWST 2016, pp. 10:1–10:6. ACM, New York (2016)

    Google Scholar 

  2. Bysiek, M., Drozd, A., Matsuoka, S.: Migrating legacy Fortran to Python while retaining Fortran-level performance through transpilation and type hints. In: 2016 6th Workshop on Python for High-Performance and Scientific Computing (PyHPC), pp. 9–18. IEEE, November 2016

    Google Scholar 

  3. Cannasse, N.: Using HaXe. In: The Essential Guide to Open Source Flash Development, pp. 227–244. Apress, Berkeley (2008)

    Google Scholar 

  4. Fang, Y., Nakashima, R., Matsumiya, K., Kuriki, I., Shioiri, S.: Eye-head coordination for visual cognitive processing. PloS One 10(3) (2015)

    Article  Google Scholar 

  5. Gamma, E., Helm, R., Johnson, R., Vlissides, J.: Design Patterns: Elements of Reusable Object-Oriented Software. Addison-Wesley, Reading (1994)

    Google Scholar 

  6. Hirzel, M., Klaeren, H.: Code coverage for any kind of test in any kind of transcompiled cross-platform applications. In: Proceedings of the 2nd International Workshop on User Interface Test Automation, INTUITEST 2016, pp. 1–10. ACM, New York (2016)

    Google Scholar 

  7. Johnston, P.R., Rodriguez, J., Lane, K.J., Ousler, G., Abelson, M.B.: The interblink interval in normal and dry eye subjects. Clin. Ophthalmol. 7, 253–259 (2013)

    Article  Google Scholar 

  8. Maheshwari, Y., Reddy, Y.R.: Transformation of flash files to HTML5 and JavaScript. In: Proceedings of the ASWEC 2015 24th Australasian Software Engineering Conference, pp. 23–27. ACM, New York (2015)

    Google Scholar 

  9. Ponticelli, F., McColl-Sylveste, L.: Professional HaXe and Neko. Wiley, Hoboken (2008)

    Google Scholar 

  10. Schrder, M., Trouvain, J.: The German text-to-speech synthesis system MARY: a tool for research, development and teaching. Int. J. Speech Technol. 6(4), 365–377 (2003)

    Article  Google Scholar 

Download references

Acknowledgments

The authors wish to thank our student Timo Gühring for his precious help in the development and translation of the TTS and the eye-gaze modules. We also thank Kiarash Tamaddon for the Unity project setup.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Fabrizio Nunnari .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer International Publishing AG, part of Springer Nature

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Nunnari, F., Heloir, A. (2018). Write-Once, Transpile-Everywhere: Re-using Motion Controllers of Virtual Humans Across Multiple Game Engines. In: De Paolis, L., Bourdot, P. (eds) Augmented Reality, Virtual Reality, and Computer Graphics. AVR 2018. Lecture Notes in Computer Science(), vol 10850. Springer, Cham. https://doi.org/10.1007/978-3-319-95270-3_37

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-95270-3_37

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-95269-7

  • Online ISBN: 978-3-319-95270-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics