Hello

(i don't think you're supposed to extend from Canvas3D ... but it may just
work....)

> class canvases extends Canvas3D {
>     public static void main(String args[] ) {
>         JFrame frame = new JFrame();

Only 1 universe ? why not 2 (1 for the rotation-CC, 1 for the simple CC)

>         VirtualUniverse u = new VirtualUniverse();
>
>         Canvas3D c1 = new canvases(0, u );
>         Canvas3D c2 = new canvases(1, u );

(...)

>     public canvases(int geom, VirtualUniverse u ) {
>         super(SimpleUniverse.getPreferredConfiguration());

Here you create the 2 different scenegraphs.

>         BranchGroup scene = createSceneGraph(geom);

Here you create the 2 different Locale in the same universe.

>         Locale locale = new Locale(u);
(...)

And here you add both scenes to the same universe. You don't add a scene to a
canvas, but to a universe. And since both canvases look at the same point in
the same universe you see both CC.

>  locale.addBranchGraph(scene);


Change:
         VirtualUniverse u = new VirtualUniverse();

         Canvas3D c1 = new canvases(0, u );
         Canvas3D c2 = new canvases(1, u );

to:
         VirtualUniverse u1 = new VirtualUniverse();
         VirtualUniverse u2 = new VirtualUniverse();

         Canvas3D c1 = new canvases(0, u1 );
         Canvas3D c2 = new canvases(1, u2 );

cu

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to