>Date: Sun, 17 Mar 2002 09:48:33 -0800
>From: "Edward A. Scanzano" <[EMAIL PROTECTED]>
>Subject: [JAVA3D] What is up with this error. I get this error when ever I run
any 3D App
>To: [EMAIL PROTECTED]
>MIME-version: 1.0
>X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
>Content-transfer-encoding: 7bit
>Importance: Normal
>X-Priority: 3 (Normal)
>X-MSMail-priority: Normal
>Delivered-to: [EMAIL PROTECTED]
>X-Loop-Detect: 1
>
>uncaught exception: java.lang.IllegalArgumentException: Canvas3D:
>GraphicsConfiguration is not compatible with Canvas3D
>java.lang.IllegalArgumentException: Canvas3D: GraphicsConfiguration is not
>compatible with Canvas3D
> at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:1064)
> at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:1026)
> at tripos.graphics3D.Panel3D.<init>(Panel3D.java:21)
> at SimpleViewer.<init>(SimpleViewer.java:27)
> at SimpleViewer.main(SimpleViewer.java:181)
See attachment below for this problem.
- Kelvin
----------------
Java 3D Team
Sun Microsystems Inc.
-----------------------------------------------------
Date: Mon, 4 Mar 2002 14:54:54 -0800 (PST)
From: Kelvin Chung <[EMAIL PROTECTED]>
Subject: Re: [JAVA3D] canvas disappears on window machine
To: [EMAIL PROTECTED]
Mime-Version: 1.0
Content-MD5: BK5G9lbAJRXXknEQj+jqog==
X-Status: $$$$
X-UID: 0000003412
Hi Mona,
This is not correct since
GraphicsConfigTemplate3D
is not used at all when constuct the GraphicsConfiguration.
Please either use (1) or (2) as I mention.
Thanks.
- Kelvin
>Date: Mon, 04 Mar 2002 14:50:50 -0800 (PST)
>From: Mona Wong <[EMAIL PROTECTED]>
>Subject: Re: [JAVA3D] canvas disappears on window machine
>To: [EMAIL PROTECTED]
>Cc: [EMAIL PROTECTED]
>MIME-version: 1.0
>Content-MD5: 83zSzG0K1wmUYMS0Qa0yZg==
>
>Hi Kelvin:
>
> Looks like I am doing a combination of the 2; here is my code to setup
>the canvas:
>
> private Canvas3D createCanvas() {
>
> GraphicsEnvironment graphicsEnv =
> GraphicsEnvironment.getLocalGraphicsEnvironment();
> GraphicsDevice graphicsDev = graphicsEnv.getDefaultScreenDevice();
> GraphicsConfiguration graphicsConfig =
> graphicsDev.getDefaultConfiguration();
>
> canvas = new Canvas3D ( graphicsConfig );
>
> universe = new SimpleUniverse ( canvas );
>
> return ( canvas );
>
> } // private Canvas3D createCanvas()
>
> Is this wrong? Should I use your 2nd method?
>
>Mona
>
>
>> Hi,
>>
>> Are you using
>>
>> (1)
>> GraphicsConfigTemplate3D template = new GraphicsConfigTemplate3D();
>>
>> // set template properties here
>>
>> GraphicsConfiguration gc =
>GraphicsEnvironment.getLocalGraphicsEnvironment().
>> getDefaultScreenDevice().getBestConfiguration(template);
>>
>> new Canvas3D(gc)
>>
>>
>> to initialize Canvas3D
>>
>>
>> OR
>>
>> (2)
>>
>> the one in SimpleUniverse
>> GraphicsConfiguration gc =
>> SimpleUniverse.getPreferredConfiguration();
>>
>> new Canvas3D(gc)
>>
>>
>> If not, the GraphicsConfiguration is not compatibable with
>> Java3D.
>>
>> - Kelvin
>
===========================================================================
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".