> Date:         Mon, 18 Feb 2002 15:52:55 +0800
> From: =?big5?q?Guang=20Bin=20Liu?= <[EMAIL PROTECTED]>
>
> 2.  I was suggested to use the configuration:
>
> GraphicsConfigTemplate3D g3d = new
>                      GraphicsConfigTemplate3D();
> g3d.setStereo(GraphicsConfigTemplate3D.REQUIRED);
> GraphicsConfiguration config = GraphicsEnvironment.
>                      getLocalGraphicsEnvironment().
>                      getDefaultScreenDevice().
>                      getBestConfiguration(g3d);
> Canvas3D canvas = new Canvas3D(config);
>
> However, when I ran the demo in this way, the image
> can be rendered, but I got an error message:
>
> ERROR: Canvas3D constructed with a null
> GraphicsConfiguration

If getBestConfiguration() can't find a GraphicsConfiguration that matches your
requirements it will return null.  That's why you get the error from Canvas3D
when you pass it the result.

So apparently something is still preventing your system from getting a stereo
configuration.  Unfortunately, you have to have that stereo configuration
before you can render in stereo.  Since this was working for you before you had
to reinstall Windows, you might want to check your driver setup again to see if
it has an option for enabling stereo.

> If I simply use:
> canvas = new Canvas3D(SimpleUniverse.
>              getPreferredConfiguration());
>
> There is no such error message and the demo still ran.
>
> So can I understand that it is not necessary to use
> the  first configuration?

By default getPreferredConfiguration() doesn't ask for a stereo configuration.
You have to set the j3d.stereo property to either "PREFERRED" or "REQUIRED" on
the command line in order to have getPreferredConfiguration() request stereo.

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