|
Hi Ben:
Something like the following may be what
you're after (from archives):
GraphicsConfigTemplate3D template = new
GraphicsConfigTemplate3D();
graphicsConfiguration = GraphicsEnvironment.getLocalGraphicsEnvironment().
getDefaultScreenDevice().getBestConfiguration(template);
canvas3D = new Canvas3D(graphicsConfiguration); We don't do the above, but just use:
graphicsConfiguration =
SimpleUniverse.getPreferredConfiguration();
canvas3D = new Canvas3D(graphicsConfiguration); And from Java3D install documention: "Many Java 3D
programs pass null to the Canvas3D constructor. By doing this, Java 3D
will select a default GraphicsConfiguration that is appropriate for Java
3D. However, this is a bad practice, and can lead to errors when
applications try to run in alternate environments, such as stereo viewing.
Java 3D will now print out a warning if the Canvas3D constructor is passed in a
null argument for the GraphicsConfiguration."
Regards,
Geoff.
|
- [JAVA3D] Viewer Question Ben Arbel
- Geoff Morris
