I have an upcoming project which requires running the code and viewing the outputs on different machines, is there a way to stream the processing sketch over a network? It’d be great to get the data either as complete frames, or if there’s a high performance video streaming method anyone can recommend I’d appreciate that also. Are there any clear tutorials for how I might do this?
Thanks for the reply! You’re completely correct that this would definitely get me thinking about how to use two different machines related to a processing sketch.
With regards to using a server can you think of any way to do the sketch rendering on the server? I really like to have code executed on one machine and the visual results being sent to another; said differently I want the processing sketch frames created on the server and sent for display to the client.
The reason I’m after all of this is I have access to a server that is quite a bit more powerful than my own machine but it’s headless and I would like to see the results. Thanks again for the info!
Rather than terminating immediately, exit() will cause the sketch to exit after draw() has completed (or after setup() completes if called during the setup() function).
I tried the code with no cameras and it failed to exit() and generated a NullPointerException at cam.start(); and never exited.
Adding a return() after the exit() corrected this since it went directly to the end of setup()(skipping over cam.start();) to exit():