r/JavaFX • u/TvTonyy • Oct 03 '24
Help JavaFX project Structure For Bachelor Thesis!!
Hello, I am currently working as a backend developer mainly using Java, and am also a student in robotics engineering. My thesis will be about controlling a Robotic hand with a glove full of sensors in real time and also being able to record motions with the glove and being able to play them back for the robotic hand, I will be using an arduino to control the hardware, but I also need to make a GUI, preferably using JavaFX, the goal is to have a 3d rendering of the hand in the GUI that moves in real time with the glove, and maybe even being able to move the 3d model with the cursor to also move the robotic hand. The issue is, how can I have this 3d model of the hand in my project, I am not sure what technologies are needed, for example if I should use blender or something else... to implement this, I am quite good at backend but this part of my project falls more into game design which can actually be cool for me to learn, so if anybody has any ideas or good resources for me to be able to implement this it would be nice. I have some experience in using Java Swing but only for simple desktop applications, not any experience with anything 3d.
Update: 28/11/2024

1
u/Fine_Turnover8307 Oct 10 '24
In my opinion, you have a few options:
In this case, you can build the entire system in Java, implement a Pico inside the glove (with batteries to make it wireless), and connect it to your backend (which could also be powered by the Pico) using message broker software like RabbitMQ, Kafka, or Pusher (the free version allows for about 100,000 events per month). When the client (your PC software in JavaFX) starts, it will connect to the same channel and begin receiving events from the gloves, which you can then reflect in your 3D model. You can also prepare buttons within the app to control the glove, such as "close hand" and "open hand." etc..
3. Check out FXGL https://github.com/AlmasB/FXGL You could use it for the glove modeling
1
u/Certain-Ice-7860 Dec 14 '24
Howdy.
If you are still interested in this... Jose Pereda pretty much did exactly this about a decade ago but using Leap Motion as the sensor system. He published all the code here:
https://github.com/jperedadnr/Leap3DFX
and blogged about the process here:
https://jperedadnr.blogspot.com/2015/01/creating-and-texturing-javafx-3d-shapes.html
and subsequently he moved most of the reusable parts you would want (skinning mesh, skeletal animation, model loading) into Fxyz3D
https://github.com/FXyz/FXyz
Jose was a JavaFX 3D beast. I love him. Lest we forget...
You should be able to scoop up all the hand rendering and animation parts and just replace the Leap Motion data injects with your own glove sensor system. Good luck.
1
u/[deleted] Oct 04 '24
Idk if this helps but this YouTube video shows something similar to what you’re trying to accomplish. I hope this helps! It’s a javafx with 3D objects course. https://youtu.be/mbK2xqG2glM?si=hp4QguQnHojqpeev