> Date:         Fri, 1 Feb 2002 15:48:34 +0100
> From: Svein Tore Edvardsen <[EMAIL PROTECTED]>
>
> I'm trying to set up a view with to canvas3D attached which should
> be showed in two screens (left and right).
>
> My problem is that when I modify the view TransformGroup the objects in
> the scene seems to be stretched in the x-direction as they move from
> left to right.
>
> I suspect that the problem can be that I create the two
> Canvas3D with the same GraphicsConfiguration object...

Yes.  Also, you'll need to use JDK 1.4 and Java 3D 1.3 to handle multiple
Canvas3D instances on multiple screens properly.  Most multiple screen
configurations these days present a single contiguous virtual screen to
applications and clients, and earlier versions of the JDK had a bug which
prevented AWT clients from obtaining the separate GraphicsDevices representing
each physical screen.  The bug was fixed in JDK 1.4, and Java 3D 1.3 was fixed
to work properly in a virtual screen environment as well.

Use GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices() to get
an array of GraphicsDevices corresponding to the physical screens in your
setup.  The order of the GraphicsDevices in the array is system-dependent, so
you should check their bounds to see what corresponds to the left screen and
which to the right screen.  Then call getBestConfiguration() with each
GraphicsDevice to get separate GraphicsConfigurations for each screen and use
those to create your left and right Canvas3D instances.

-- Mark Hood

===========================================================================
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