We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm trying to get an image from a PS3Eye camera and send it to TouchDesigner via Spout and since I know Processing it seemed like a good option, but...
I can get the Diewald PS3Eye library to load and display the camera image. I can get get Spout to send things to TouchDesigner. BUT if I try the two simultaneously it stops working. The problem is that Spout requires I use P3D to render and as soon as I set that flag the PS3Eye library stops being able to see my PS3 camera. I have no idea why.
Does anyone know a way to fix that?
If not is there a quick way to transfer image data between two Processing sketches that isn't saving and then loading an image file? I've tried this, it's way too slow], but if there's another easy way to pipe that data between two sketches I could use one to read the image and one to send it.
Answers
Possibly the OSC library although I am not sure if you can send a single image per transaction. You will need to manage your data in binary format and manage the transaction. Or maybe you can run two sketches, one in P3D mode and another one in a different mode. Then you have a common PImage object that is shared by both sketches. Check previous related posts: https://forum.processing.org/two/search?Search=runSketch
*******EDIT: Extra links
http://www.sojamo.de/libraries/oscP5/
https://forum.processing.org/two/discussion/comment/72574/#Comment_72574
Kf