Hello,
I am trying to view 3d content using CrystalEyes stereo googles on one canvas. When
I enable stereo mode in my application, I see two images (even with the googles on).
The two images only seem to focus when the camera and the object which is being viewed
are centered on the same coordinate. So i am wondering if anyone knows of any
camera/object relationship that needs to be enstated in order for this to work
correctly.
When I try to view some of the java3d demo applications in stereo, it seems to work
more or less correctly.
I have tried to initialize the canvas3D with:
GraphicsConfiguration cfg =
com.sun.j3d.utils.universe.SimpleUniverse.getPreferredConfiguration();
ll_canvas=new MUGCanvas3D(cfg);
(MUGCanvas3D extends Canvas3D)
and...
ul_canvas=new MUGCanvas3D(getPreferredConfiguration());
public static GraphicsConfiguration getPreferredConfiguration()
{
GraphicsConfigTemplate3D template = new GraphicsConfigTemplate3D();
String stereo;
// Check if the user has set the Java 3D stereo option.
// Getting the system properties causes appletviewer to fail with a
// security exception without a try/catch.
stereo = (String)
java.security.AccessController.doPrivileged(
new java.security.PrivilegedAction()
{
public Object run()
{
return System.getProperty("j3d.stereo");
}
});
// update template based on properties.
if (stereo != null)
{
if (stereo.equals("REQUIRED"))
template.setStereo(template.REQUIRED);
else
if (stereo.equals("PREFERRED"))
template.setStereo(template.PREFERRED);
}
// Return the GraphicsConfiguration that best fits our needs.
return GraphicsEnvironment.getLocalGraphicsEnvironment().
getDefaultScreenDevice().getBestConfiguration(template);
}
I would appreciate any help
Thanks,
Ilya Braude
===========================================================================
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".