Skip to content

Latest commit

 

History

History
38 lines (19 loc) · 1.1 KB

Readme.md

File metadata and controls

38 lines (19 loc) · 1.1 KB

Unity webplayer tuio integration demo

This demo illustrates passing tuio messages to unity's webplayer. The tuio messages are be handled by TouchScript on Unity's side.

This works by proxying the tuio messages over websockets. We use a node server and Tuio.js to accomplish this. This gets the Tuio messages on the browser's javascript engine. We then forward those messages to the player via Unity's SendMessage interface.

Server requirements

Node.js

Installation

run the following command from the root of the project:

		npm install

Usage

run the following command from the root of the project

		node server.js

browse to http://localhost:5040/

Notes

  • server.js uses Express.js to serve the static content. This dependency could easily be removed.

  • The unity project can be found here.

  • This is a weekend project. Use with caution : )

Licence

MIT, read, hack, improve