Can I tell Java 3D to use my Voodoo (OpenGL) graphics card instead of
software rendering?
I've created a separate class to initialize the scene graph and other
configuration stuff. Basically my own SimpleUniverse. I haven't been
able to take the following code out of the main constructor and into my
init class:
//graphics config
GraphicsConfigTemplate3D gct3dTemplate = newGraphicsConfigTemplate3D();
GraphicsConfiguration gcGraphicsConfiguration =
GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getBestConfiguration(gct3dTemplate);
//Canvas3D stuff
setLayout(new BorderLayout());
Canvas3D c3dCanvas3D = new Canvas3D(gcGraphicsConfiguration);
add("Center", c3dCanvas3D);
I believe the primary problem is with setLayout() and add(). Are they
required to be in the applet constructor?
Finally, when I resize my applet window, that doesn't change the area of
the window that Java 3D renders. Does anyone have code for a window
resize callback that they'd be willing to share?
Thanks!
Todd
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/