I have a group in JavaFX that contains an object and I'd like to add it to my World Wind canvas called wwd
.
My group is called cube
which contains an object that I'd like to display in space in World Wind above the earth.
I am able to add regular polygons to the canvas using RenderableLayer
, by adding polygons to the layer using wwd.getModel().getLayers().add(layer)
. However, I'm not sure how to add a JavaFX group.
I'm using Java 8 with IntelliJ IDEA and have integrated it with NASA World Wind.
I think it will not work because it is not possible to add Nodes as children of a Canvas. You need to rebuild the object from your group in the GraphicsContext of the Canvas… Have a look at Canvas in the API.