Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

SocketIO 2.0

General discussion about anything TouchDesigner

SocketIO 2.0

Postby omarojo » Fri May 18, 2018 4:54 am

Have anyone had any success integrating a NodeJS/SocketIO implementation with TouchDesigner ?

I really want to use SocketIO 2.0 to send data to TD somehow. Is the new 099 update supporting this ?
omarojo
 
Posts: 3
Joined: Sat May 23, 2015 6:52 am

Re: SocketIO 2.0

Postby Ennui » Fri May 18, 2018 10:25 am

Sadly socket io 2.0 isn't supported by touchdesigner yet.

There are a couple of ways you can approach sockets and touchdesigner though.

One method I use a lot is to run a node server and use node-osc to convert all socket event data to an osc packet with the json object passed as a string value.
https://github.com/MylesBorins/node-osc

Another much more complex method is to write your own CHOP that brings in socket events. Obviously this will only work for sliders and triggers really as you cant make your own C++ DAT (yet)

If you were looking to keep everything within touch using that method then you'd want to look here:
https://github.com/socketio/socket.io-client-cpp

The above seems to work with socket io 2.0 easily enough although if you're gonna compile from source you'd want to change the included websocketpp to the latest version first.
Richard Burns
User avatar
Ennui
 
Posts: 464
Joined: Sat Oct 03, 2009 2:23 pm

Re: SocketIO 2.0

Postby harveymoon » Sat May 19, 2018 2:22 am

I also always use a node-osc middleapp for this sort of thing.
sometimes will just have touchdesigner launch it as a sub-process.
SEE Ragans stuff:
https://matthewragan.com/2018/03/29/touchdesigner-process-management/

the web standards supported in Node will always be more robust/updated vs Touchdesigner
harveymoon
 
Posts: 31
Joined: Mon Jun 29, 2015 8:42 pm


Return to General TouchDesigner Discussion

Who is online

Users browsing this forum: Bing [Bot] and 7 guests