Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tuio To Unity WebPlayer Demo via websockets (tuio.js)
JavaScript CSS
Branch: master
Failed to load latest commit information.
public cleanup app.js
.gitignore initial commit
Readme.md
package.json initial commit
server.js initial commit

Readme.md

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

Something went wrong with that request. Please try again.