Java3D embedded in an Eclipse RCP
Posted by pmagerma on Sep 12, 2014; 1:13pm
URL: https://forum.jogamp.org/Java3D-embedded-in-an-Eclipse-RCP-tp4033138.html
Hi Jogamp team,
Happy to see that you take in hands the continuation of Java3D.
I develop an Eclipse RCP app which displays river basins using Java3D for a while. I was using version 1.5.2 so far, and I tried this week the new version 1.6 over JOGL.
Unfortunately, I faced one hangout problem.
This occurred in the creation of the Canvas3D, when getting the Preferred Configuration.
I tracked it down to the instruction "f.setVisible(true)" in JoglPipeline.getBestConfiguration(GraphicsConfigTemplate3D).
This seems due to the fact that the frame (an AWT Embedded in an SWT composite of an editorPArt) is not visible yet (in reality, not completely instantiated) when this instruction is called.
If I try with a minimalist RCP app, just a view and a simple universe in it, it won't hang, although I see briefly a window appearing and disappearing, which to me seems to be the Frame that hangs in my complex app.
I just wanted to warn you, as I'm not stuck: I found a way to initialise my drawings in two different synchronised threads, to let the window appear before continuing the initialisation and hence avoiding the interlock.
Cheers,
Pol Magermans
Software Engineer,
Aquapôle, University of Liège, Belgium.