Skip to content

david-hodgetts/TuioToUnityWebPlayerDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Tuio To Unity WebPlayer Demo via websockets (tuio.js)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published