Hi Tan,
you can add more than one view (with a viewplatform and a canvas3d) to the
locale. Then it depends on the position and orientation of each viewplatform
what you will see in the according canvas.
Locale
|
+-- BranchGroup <-- TransformGroup <---------- viewPlatform --> View
<----- Canvas3D
| (moving viewPlatform)
|
+-- BranchGroup <-- TransformGroup <---------- viewPlatform --> View
<-----Canvas3D
| (moving viewPlatform)
|
+-- ...
|
BranchGroup of your Scene
view1 = new View();
view1.setPhysicalBody(body); //you <file://you> provide PhysicalBody body
view1.setPhysicalEnvironment(environment); //you <file://you> must provide
PhysicalEnvironment environment
view1.setUserHeadToVworldEnable(true);
platform1 = new ViewPlatform();
view1.attachViewPlatform(platform1);
viewTransGroup = new TransformGroup();
viewTransGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
viewTransGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
viewTransGroup.addChild(platform1);
BranchGroup branchGroup1 = new BranchGroup;
branchGroup1.addChild(viewTransGroup);
Canvas3D canvas3D1 = new Canvas3D(null);
view.addCanvas3D(canvas3D1);
Gernot Veith
[EMAIL PROTECTED]
http://www.janet.de <http://www.janet.de/>
-----Original Message-----
From: Tan Dongquan [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 19, 1999 7:04 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] how to create two canvas3D Objects and display different
images
The question as subject shown. Would you please help me? I am an absoluately
new to Java. And if you can
provide part of source, I would say thank you veeeeerrrrrrry much.
Thanks a lot.
===========================================================================
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".