Send data from openFrameworks to Unity via Socket.io, fast enough to be able to send low-res video
- download and install ofxSocketIO
- move the openFrameworks folder into your sketches folder
- run
npm install
thennode server.js
to begin server
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.
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.