Java application using processing - best approach? [first post]
in
Integration and Hardware
•
2 years ago
I am totally new to Processing and totally new to Java UI programming as well (very basic knowledge in SWT, no swing), so please don't flame me too hard. I have tried several searches (feel free to link me if a thread for this already exists).
So I'm trying to build a Java GUI that uses Processing to draw a 3D .obj file. I want the GUI to display the 3D image in a box, and have some buttons/sliders/etc outside of the box that will manipulate the image. The program should be able to detect mouse click locations if the user clicks on the 3D image. Here's a very rudimentary image of what the application might look like:
So my questions are:
1)
What is the best approach to implement something like this?
I saw another post where the PApplet was embedded in a JScrollPane http://forum.processing.org/topic/papplet-in-jscrollpane is this the best way to do it? Is there a processing API that lets me draw an image like this without having to create a PApplet? I must be able to modify the image and also detect exactly where the user's clicked on that image.
I downloaded
OBJ Loader and OBJImport to read in the .obj file,
2) which one's better?.
I'm actually generating the .obj file from a kinect. My group member is working on the kinect part, so I haven't looked too deeply into things like
http://code.google.com/p/simple-openni/ and
http://www.shiffman.net/p5/kinect/
3) Is it easier to look into one of these APIs to draw my image? or should I stick to converting the kinect output to a .obj and reading it in with one of the above two libraries? is there generally an easier way to do this?
Any bit of help would be greatly appreciated for any of my questions would be greatly appreciated. Thanks in advance for your help!
1