Hi, Try something like this when you create the Canvas3D: --------------------------------------
GraphicsConfigTemplate3D tmpl = new GraphicsConfigTemplate3D(); tmpl.setStereo( tmpl.PREFERRED ); GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice device = env.getDefaultScreenDevice(); GraphicsConfiguration config = device.getBestConfiguration(tmpl); Canvas3D canvas3D = new Canvas3D(config); canvas3D.setStereoEnable(true); -------------------------------------- If the graphic card supports stereo, you will get stereo. Octavian Karl Parry wrote: > > Hi, > I have an application I want to run in stereoscopic > mode. At the moment I can do this by using the command > line instruction: > > java -Dj3d.stereo=PREFERRED MyProgram > > This works fine but how do I get the program to run in > stereoscopic mode without the command line > instruction? > > I want to be able to run the application by simply > saying: > > java MyProgram > > but it still runs in stereo. > > I want to be able to then place the application into a > web browser and run in stereoscopic mode, any ideas? > > Thanks for your time, > > KP > > __________________________________________________ > Do You Yahoo!? > Everything you'll ever need on one web page > from News and Sport to Email and Music Charts > http://uk.my.yahoo.com > > =========================================================================== > 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". -- _____________________________________________________ Octavian Nasarimba Tel. +49 711 / 96 72-113 KLEIN+STEKL GmbH Fax +49 711 / 96 72-1 30 Heusteigstrasse 41 http://www.klst.com 70180 Stuttgart/GERMANY mailto:[EMAIL PROTECTED] Amtsgericht Kirchheim/Teck HRB 180 =========================================================================== 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".
