Thank you for your answer.
About the second point, if I launch the P3D sketch (let’s call it the display) from either a JavaFX application or a FX2D sketch (let’s call it the mainApp), would I be able to share data from the dispaly to the mainApp and vis versa ?
My case is the following:
I have an accelerometer on the “hand” of a robotic arm.
The data from the accelerometer are sent to my laptop. A javaFX application (mainApp) get them.
I do some treatments on the data and I get an Array of Data (an object which contains several information).
I would like to send this Array Data to display in real time the moving arm with a P3D sktech. I have already done some 3D inverse kinectic on a sketch with P3D. Using the calculation of the 3D inverse kinectic sketch, I need it to send the coordinates of each parts of the arm to the mainApp.
I will try by writing and reading files, but it will be probably too heavy to have a proper display.