Dear Justin,
first, thanks for your help.
Then, my problem isn't solved...
The line "Rectangle bounds = config.getBounds();" made an
error (Method getBounds() not find in java...).
I've try to use your code, with some changes, but that don't
resolve my problem.
I can't display my application on all my "virtual" desktop
(on two different screens). My Desktop is a 1280x480 size
desktop, which is displayed on two screens of 640x480.
When I want to run my application, it comes fine, but
scalled on only one physical screen of 640x480. The goal to
reach is to display it automatically on the two screens. But
only one application, not two. It has to be only one
window (which size is 1280x480)...
Any other suggestions ??
Thanks a lot.
Cédric Brunner
> Brunner Cedric wrote:
>
> > I'm trying to create two canvas3D in one gridLayout, for
> > having Stereo Viewing.
> > I'm using a two display desktop, with a 3Dlabs Oxygen
GVX210
> > (stereo graphic card). Each display take automatically
the
> > dimension of 640x480 (thanks 3DLabs).
>
> Are these running independentyly or as a single logical
desktop. It's a
> bit hard to tell from your wording here.
>
> I feel you are probably doing this the wrong way around.
The better way
> of doing this is to make the window the full size of the
screen and then
> add the canvas to that using a BorderLayout. Also, don't
use the
> MainFrame. It is good for simple Apps, but for something
like this you
> have to start from scratch.
>
> You'll need something like the following code:
>
> GraphicsEnvironment env =
> GraphicsEnvironment.getLocalGraphicsEnvironment();
>
> GraphicsDevice[] devs = env.getScreenDevices();
> GraphicsConfigTemplate3D template = new
GraphicsConfigTemplate3D
> GraphicsConfiguration config =
devs[0].getBestConfiguration(template);
>
> Window w = new Window(parent_frame, config);
> Rectangle bounds = config.getBounds();
> w.setBounds(bounds);
> w.setLocation(0, 0);
>
> Canvas3D canvas = new Canvas3D(config);
> w.add(canvas);
>
> w.setVisible(true);
>
> --
> Justin Couch Author,
Java Hacker
> Software Architect
[EMAIL PROTECTED]
> rbuzz.net
http://www.vlc.com.au/~justin/
> Java3D FAQ
http://www.j3d.org/faq/
>
------------------------------------------------------------
-------
> "Look through the lens, and the light breaks down into
many lights.
> Turn it or move it, and a new set of arrangements
appears... is it
> a single light or many lights, lights that one must know
how to
> distinguish, recognise and appreciate? Is it one light
with many
> frames or one frame for many lights?" -Subcomandante
Marcos
>
------------------------------------------------------------
-------
>
>
============================================================
===============
> 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".
>
===========================================================================
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".