Hi,
Java3D seems to be able to provide 3D rendering capabilities for JavaFX applications.
A JCanas3D encapsulated by a subclass of 'javafx.ext.swing.SwingComponent' can be added as a resizeable Node to a JavaFX Scene. So, an Effect can be associated to a JCanvas3D by setting the Node.effect attribute respectivally a JCanvas3D can be content of a parent's Effect.
A first sample is now available for launching and download at
http://interactivemesh.org/testspace/j3dmeetsjfx.html.
So far, I saw a major issue concerning multithreadding. In JCanvas3D the Java3D rendering thread and the JavaFX/Swing event-dispatching thread (EDT) have access to a common BufferedImage object for rendering into resp. for reading from. To prevent deadlocks (EDT falls asleep !?) following settings are to be done:
- myView.setMinimumFrameCycleTime(30)
- myJCanvas3D.setResizeMode(JCanvas3D.RESIZE_DELAYED).
The heavyweight component Canvas3D is no alternative. It resides on top of the JavaFX scene nodes and is dragged involuntarily by the mouse.
August
[Message sent by forum member 'interactivemesh' (interactivemesh)]
http://forums.java.net/jive/thread.jspa?messageID=325956---------------------------------------------------------------------
To unsubscribe, e-mail:
interest-unsubscribe@...
For additional commands, e-mail:
interest-help@...