Thanks a ton for the info.  I applied you advice and everything seems MUCH cleaner now.  However, I am still having one small problem.  I have 2 Canvas3D windows next to each other.  Each Canvas3D is attached to a seperate View/ViewPlatform/BranchGroup.  And the 2 branch groups are attached to the single locale in the Universe.  The problem is I can only see the scene in the first window, not in the second.  The Canvas3D is drawn, but the scene is not rendered in it.  I know this has to be a very small problem, but I'm not sure exactly what it is.  Any help would be appreciated. Thanks again!
----- Original Message -----
Sent: Saturday, October 23, 1999 1:26 PM
Subject: Re: [JAVA3D] Multiple views of same Universe.

Steve,
 
The basic technique depends on whether you are using a SimpleUniverse derived scenegraph or the core VirtualUniverse. I would recommend understanding the VirtualUniverse methods (a good idea is to look at the source to SimpleUniverse and the utility classes to see what is going on).
 
The basics are:
Add ViewPlatform leaf nodes on the "view" side of your scenegraph. Use different branches of the scenegraph (Locale.addBranchGraph). The TransformGroups above ViewPlatforms will define the viewer's orientation in space. Create a View (and all the other attributes such as PhysicalBody etc.) and attach the View to the ViewPlatform. Register the View with the desired Canvas3D.
 
Take a look at the Viewer utility class to see how SimpleUniverse manages some of these operations.
 
Best of luck!
 
Daniel Selman

[EMAIL PROTECTED]
http://www.tornadolabs.com

 
-----Original Message-----
From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]]On Behalf Of Steve Grenier
Sent: 23 October 1999 09:38
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Multiple views of same Universe.

Hello,
 
Ok, how would I most effectively generate multiple views with the same Universe and scene graphs.  I have two different canvas3D objects that I generate the scene in.  However, both windows show the exact same content.  So is there a way I can easily achive this without actually re-creating a BranchGroup each time I want to update the scene?  Thanks!
 
Steve Grenier

Reply via email to