More than one virtual universe?
I am developing a game using java 3D ( http://launchpad.net/r3 ). Currently I am adding multiplayer support, and I need multiple virtual universes with their canvas3d's rendering at the same time. When I tried to do this with 2 universes, the second canvas that is initialized always died in half a second. As in it shows up, renders a few frames and then just disappears.
Are we supposed to use only one virtual universe? Or do we need some special configuration in this case? I am initializing the virtual universe in the following manner:
VirtualUniverse universe = new VirtualUniverse();
Locale locale = new Locale(universe);
ViewPlatform vp = createViewPlatform();
BranchGroup viewBranchGroup = new BranchGroup();
TransformGroup tg = new TransformGroup(); //some transform for the view
View view = new View();
PhysicalBody pb = new PhysicalBody();
PhysicalEnvironment pe = new PhysicalEnvironment();
GraphicsConfigTemplate3D gc3D = new GraphicsConfigTemplate3D();
GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment()
Canvas3D c3d = new Canvas3D(gd.getBestConfiguration(gc3D));