Hi Mohan,

You could use simpleuniverse to run 2 canvas3D in the same time... it works for me. rgds

A little sample code:

//-----

//If would like to shows 6 canvas3D :: 2X3

this.setLayout(new GridLayout(2, 3,0,0));

Canvas3D Mycanvas3D1 = new Canvas3D(null);

//etc

add(Mycanvas3D1);

//etc

SimpleUniverse MyU1 = new SimpleUniverse(Mycanvas3D1);
        BranchGroup Myscene1 = createSceneGraph1(MyU1);
        MyU1.getViewingPlatform().setNominalViewingTransform();
        MyU1.addBranchGraph(Myscene1);
        new OtherView(MyU1.getLocale());

//---

// repeat the same process

Canvas3D Mycanvas3D2 = new Canvas3D(null);     

//etc

add(Mycanvas3D2);

//etc

SimpleUniverse MyU2 = new SimpleUniverse(Mycanvas3D2);
        BranchGroup Myscene2 = createSceneGraph2(MyU2);
        MyU2.getViewingPlatform().setNominalViewingTransform();
        MyU2.addBranchGraph(Myscene2);
        new OtherView(MyU1.getLocale());

//------

// repeat the same process for your canvas3D n. 3,4,5,6!

Rgds,

TGG   !:�)

=============================================

>From: Jyothi Mohan <[EMAIL PROTECTED]>
>Reply-To: Discussion list for Java 3D API <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [JAVA3D] Multiple canvas
>Date: Tue, 21 Aug 2001 11:05:50 +1000
>
>Hi everyone,
> I am not sure how to implement this requirement. Please help me.
>I need to display a JTextArea followed by an object on a Canvas3D and
>another JTextArea followed by a different object on another Canvas3D. The
>objects on the two canvaes are not dependant on each other.
>I can't use the SimpleUniverse as it has only a single viewing platform and
>attached to a single canvas3D.
>
>It will be good if someone can provide info as early as possible cause I am
>working towards a dealine.
>
>Thanks in advance,
>Jyothi Mohan


Downloaden Sie MSN Explorer kostenlos unter http://explorer.msn.com
=========================================================================== 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