How to use a PApplet as a tool's window

Hi, I currently work on a new tool for Processing 3.1.1 which will make possible to visualize edit 3D objects. I use the tool template I found on GitHub. After some modifications on the default ant build, I managed to launch a new opengl window (swing+jogl). But I would like to use processing framework and so use a PApplet instead. Is it possible to do it with PApplet in 3.1.1 ? I tried to make a new class :

package super.package; public class P3DFrame extends PApplet { ... }

and I call it like that in run() of my tool : PApplet.main(new String[] { super.package.P3DFrame.class.getName() });

All compile but when I run it in P5 IDE, it doesn't work and I have a ClassNotFoundException for P3DFrame.

Would someone have an example for using PApplet in a Processing tool ? (My aim is to reuse Processing 3D features in a frame.)

Thank you for all ;)

Sign In or Register to comment.