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".