send live video (and other) from openFrameworks to Unity with Socket.io
Forks
Forks pushed to more recently than amkraft/ofxUnitySocket itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.
README
openFrameworks & Unity
Send data from openFrameworks to Unity via Socket.io, fast enough to be able to send low-res video
setup
download and install ofxSocketIO move the openFrameworks folder into your sketches folder run
npm install then node server.js to begin serverconfigure
manage ip and ports in 3 locations:
NODE port in
server.js OpenFrameworks port and IP in ofApp.cpp Unity port and IP in /Assets/SocketIO/Scripts/SocketIO/SocketIOComponents.cs or in GameController scene object info panel.current settings: port is set to 3000, sending across a LAN, and the computer running OF is also running the Node server.
notes
this uses unity-socket.io, which is depricated but works for now. (It's already included in this project)
also this isn't in the standard format of an openFrameworks ofx extension. it can be but it's more of an example project right now.
ofxAddons