Applications Example

Applications Example

Node.js Scripts

Instructions

There are scripts to use with TUIO versions 1.1 and 2.0.

To run the Node.js scripts, you will need to have Node installed on your computer.

  1. Go to https://nodejs.org/dist/v8.11.2/ and download/install version 8.11.2 LTS. These Node scripts were tested with this version and may not work with other versions.
  2. Reboot computer
  3.  Open Command Prompt as Administrator (Windows) or Terminal (Ubuntu/macOS) and install the OSC package (needed for TUIO): npm install osc
  4.  Run dpx-tuio-1.js (for TUIO 1.1) or dpx-tuio-2.js (for TUIO 2.0). Example: node dpx-tuio-2.js

Script running example




Download

You can download the Node.js scripts here.

C++ Console Program Example

Instructions

This program made in C++ was built to output Touch and Object events coming from TUIO version 1.1. and works in Windows. For a different operating system, you can compile the program using Qt Creator or any other IDE/compiler.

Simply download and extract the files, then run “QtTUIODemo.exe”.

C++ console program running example





Download

  • Download the program for windows here.
  • The source code made on Qt Creator here.

Other implementations

Go to the TUIO website where you will find more examples, source code, and implementations for a variety of programming languages.


    • Related Articles

    • TUIO Simulator

      The TUIO Simulator is an excellent tool to demonstrate Object Recognition advantages. Go to the TUIO Simulator download page here. For further details on the global operation and message structure, see https://www.tuio.org/ and ...
    • Touches over TUIO

      To configure a DISPLAX Skin to send Touch events through TUIO protocol, click on the TUIO icon (upper right corner in DISPLAX Connect), select the connected Touch Controller, enter the IP and Port information, and click on the “ADD TUIO CLIENT” ...
    • Object Recognition on multiple Tiles

      You can set up multiple Tiles next to each other, via Daisy Chain or direct connection, and enable Object Recognition in all of them. For this, you need to enable TUIO client for each connected device, and set a different port for each TUIO client, ...
    • Overview

      DISPLAX Active Object Recognition (DPXActiveOR) solution is a combo of hardware and middleware, which enables interactive solutions developers to integrate and deliver powerful Object Recognition (OR) interactive experiences, going beyond traditional ...
    • Change ID and Name

      You can change the the ID and Name of a tag from within Displax Connect.  This is useful if, for example, you want to change the the tag with ID 1 to 2, since the ID is automatically attributed by pairing order. Each tag also has a name attributed by ...