Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.42 KB

README.md

File metadata and controls

31 lines (23 loc) · 1.42 KB

tuio.js-examples

examples for tuio.js

get this repository with bower:
myexamples$ bower install tuio.js-examples

or

clone or download this repository.
then install dependencies with bower:
tuio.js-examples$ bower install

all the examples require a WebSocket TUIO Server that is reachable on ws://localhost:3334.
(you can change this in the scripts.)

I tested this with the great reacTIVision software.
make sure you change the port for the WebSocket server in the reacTIVision.xml:
example: <tuio type="web" port="3334"/>

Alternative you can use the SimpleSimulator in the CPP reference implementation. the WebSocket port for this can be changed in the source (SimpleSimulator.cpp line 408 it defaults to 8080).

use some sort of webserver to view the examples:
for example python2 SimpleHTTPServer
tuio.js-examples$ python2 -m SimpleHTTPServer 8000
or python3 http.server
tuio.js-examples$ python3 -m http.server 8000

then go to http://localhost:8000
there you will get a basic directory listing. search for the example you want to try.
the simplest one is 'simple':
It Shows the events in the browser console. nothing more ;-)