I'm using Processing with FaceOSCSyphon and need to use Syphon to send the frames from Processing to VPT. What do I need to add to my code for this to work?
I'm using Processing with FaceOSCSyphon and need to use Syphon to send the frames from Processing to VPT. What do I need to add to my code for this to work?
I haven't used FaceOSCSyphon, but played a bit with the FaceTracker library. Looking at the examples, the FaceOSCSyphon.pde sketch acts a a Syphon Client.
In your case, according to page 33 of the VPT Documentation(large pdf link), your Processing sketch needs to be a Syphon Server.
In Processing run Examples > Contributed Libraries > Syphon > Send Frames.
In VPT, scroll the layer list on the right towards the bottom until you find the
syph
section. You should then be able to choose the Processing Syphon server ran by the Send Frames example:Now you should have a clear idea of how to get frames from Processing into VPT.
Regarding the FaceOSC part, I'd recommend merging the SendFrames example with the FaceOSCReceiverClass example: read the FaceOSC data, but instead of setting up a Syphon Client, setup a Syphon Server.
For example:
Note, this is merged code that isn't tested. It should get the point across, but I can't test right now.
Make sure the sketch is running before you launch VPT (otherwise, restart VPT)