/**
* Main function to test navigation
* @param args
*/
public static void main(String[] args) {
VirtualUniverse universe = new VirtualUniverse();
Locale locale = new Locale();
universe.addLocale(locale);
BranchGroup objRoot = new BranchGroup();
Appearance a = new Appearance();
a.setPolygonAttributes(new PolygonAttributes(PolygonAttributes.POLYGON_LINE, PolygonAttributes.CULL_NONE, 0));
Shape3D sph = new Shape3D(TestUtils.createSphere(1.0f, 20), a);
TransformGroup sphereTrans = new TransformGroup();
sphereTrans.addChild(sph);
objRoot.addChild(sphereTrans);
AmbientLight aLgt = new AmbientLight(new Color3f(0.2f, 0.2f, 0.2f));
objRoot.addChild(aLgt);
locale.addBranchGraph(objRoot);
PluginManager pluginManager = (PluginManager) new Java3DPluginManager();
Frame3DXith3D f1=new Frame3DXith3D(null, null,"Test1",-1,-1,600,400,pluginManager);
// TODO Frame3D f2=new Frame3D(null,"Test2",-1,-1,300,300);
universe.addView(f1.view);
// TODO universe.addView(f2.view);
while(true){
f1.view.renderOnce();
// TODO ! f2.view.renderOnce();