*/
public static void main(String[] args) {
PluginManager pluginManager = (PluginManager) new Java3DPluginManager();
SceneNodeJava3D scene = new SceneNodeJava3D(null, pluginManager);
//BoundingSphere bs = new BoundingSphere(//universe bounds
// new Point3d(0.0, 0.0, 0.0), 1000.0);
//PlatformGeometry pg = new PlatformGeometry();
//Color3f ac = new Color3f(0.2f, 0.2f, 0.2f);
//AmbientLight al = new AmbientLight(ac);
//al.setInfluencingBounds(bs);
//pg.addChild(al);
//f1.viewingPlatform.setPlatformGeometry(pg);
// TODO check where to add the light
//f1.viewingPlatform.setNominalViewingTransform();
BranchGroup objRoot = scene.getBranchgroup();
Appearance a = new Appearance();
a.setPolygonAttributes(new PolygonAttributes(PolygonAttributes.POLYGON_LINE, PolygonAttributes.CULL_NONE, 0));
TransformGroup sphereTrans = new TransformGroup();
sphereTrans.addChild(new Sphere(1.f, Sphere.GENERATE_NORMALS,40, a));
scene.detach();
objRoot.setCapability(BranchGroup.ALLOW_CHILDREN_EXTEND);
objRoot.addChild(sphereTrans);
AmbientLight aLgt = new AmbientLight(new Color3f(0.2f, 0.2f, 0.2f));
objRoot.addChild(aLgt);
scene.attach();
}