R: 2nd screen rendering problem!

Hi

I could not find a solution, but only a work-around...

In the following code:

            // Gets a GraphicsCofiguration
            GraphicsEnvironment ge
GraphicsEnvironment.getLocalGraphicsEnvironment();
            GraphicsDevice gd = ge.getScreenDevices()[getScreenInUse()];
            GraphicsConfigTemplate3D template = new
GraphicsConfigTemplate3D();
            GraphicsConfiguration gc = gd.getBestConfiguration(template);

The "getScreenInUse()" is a very simple function that returns the index of
the screen where the window is displayed. In my case 0 or 1 (2 monitor
configuration)...
The GraphicsConfiguration is passed to the DisplayImpl constructor each time
I have to re-render data.


Antonio Benvenuti


 

-----Messaggio originale-----
Da: Tom Kunicki [mailto:kunicki@xxxxxxxxx] 
Inviato: mercoledì 20 settembre 2006 18.46
A: Curtis Rueden; Antonio Benvenuti
Cc: visad@xxxxxxxxxxxxxxxx
Oggetto: RE: 2nd screen rendering problem!


Hello,

Unfortunately, this is still an issue through Java3D 1.4.0_01.  Also
unfortunate is that the workaround referenced in the issue decription
doesn't appear to work.

https://java3d.dev.java.net/issues/show_bug.cgi?id=89

Tom 

-----Original Message-----
From: owner-visad@xxxxxxxxxxxxxxxx [mailto:owner-visad@xxxxxxxxxxxxxxxx]
On Behalf Of Curtis Rueden
Sent: Wednesday, September 20, 2006 11:22 AM
To: Antonio Benvenuti
Cc: visad@xxxxxxxxxxxxxxxx
Subject: Re: 2nd screen rendering problem!

Hi Antonio,

This is an issue with Java3D, so I did a quick search for related issues,
and found this from the Java3D 1.3-beta1 README file:

  Support for multiscreen-aware applications in virtual-screen environments

   With this release applications can use GraphicsConfigTemplate3D to
retrieve
   a GraphicsConfiguration from a specific physical screen device even when
a
   virtual screen is being used to consolidate them.  The
GraphicsConfiguration
   can then be used to create Canvas3D objects on that physical screen.

   This allows a separate Screen3D object to be associated with the Canvas3D
so
   that physical parameters such as the screen's position and orientation
   relative to other screens in the viewing environment can be specified.

   This support is only available when running JDK 1.4 or later.

So it sounds like Java3D version 1.3 and later provide a means to handle
additional screens in various configurations. You'll probably have to
experiment with GraphicsConfigurations to determine how best to make things
work. (My machine has only one screen, so I cannot test this issue myself.)

If you find a solution, please inform the list, so that we can improve
VisAD's support for multiple screens.

Thanks,
Curtis

On 9/18/06, Antonio Benvenuti <antonio.benvenuti@xxxxxxxxx> wrote:
>
>
> Hi
>
> I have problems using Visad on my second screen...
> I have tried solving the problem as explained in the following link:
>
> http://www.unidata.ucar.edu/support/help/MailArchives/visad-list/msg04
> 446.html
>
>
> and this is my code:
>
>             GraphicsEnvironment ge
> GraphicsEnvironment.getLocalGraphicsEnvironment();
>             GraphicsDevice gd = ge.getDefaultScreenDevice();
>             GraphicsConfigTemplate3D template = new 
> GraphicsConfigTemplate3D();
>             GraphicsConfiguration gc = 
> gd.getBestConfiguration(template);
>
>             TwoDDisplayRendererJ3D tdr = new TwoDDisplayRendererJ3D();
>             display = new DisplayImplJ3D(displayName, tdr, gc);
>
> without any result! The exception persists if the display renders on 
> the second screen!
> Has anyone solved the problem?
>
>
> Thanks
>
>
>
>
> --
> Antonio Benvenuti
>
> Via Cardinale Giacomo Lercaro, 36
> 00123-Roma
>
> Tel. 340-1054802

=======================================================================
======
To unsubscribe visad, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
=======================================================================
======


NOTICE: These communications may contain privileged or other confidential
information for the sole use of the designated recipients. If you have
received it in error, please advise the sender by reply email and
immediately delete the message and any attachments without reviewing,
copying or disclosing the contents.

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.6/453 - Release Date: 20/09/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.9/456 - Release Date: 25/09/2006
 


==============================================================================
To unsubscribe visad, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
==============================================================================