Re: stereo

Hi Jack,

Actually, what you want is already done in VisAD.  Check out
visad/examples/TestStereo.java which constructs a
GraphicsConfiguration just like your code does, then passes
it as an argument to the DisplayImplJ3D constructor:

  new DisplayImplJ3D("display1", DisplayImplJ3D.APPLETFRAME, config);

where it ends being passed to the super(config) constructor
for Canvas3D by the VisADCanvasJ3D constructor.

Please let me know if you have any problems with this.

Cheers,
Bill

> I am attempting to get a project that we did here at Penn State to work in
> stereo,
> Collaborative Geographic Visualization from the Penn State GeoVISTA Center.
> 
> I have been successful at getting java3D demos to work in stereo on an SGI. 
> The
> way I
> did this was to put the following code in the constructor.
> .
> .
> .
> GraphicsConfigTemplate3D template = new GraphicsConfigTemplate3D();
> template.setStereo(template.PREFERRED);
> 
> GraphicsConfiguration gcfg = 
> GraphicsEnvironment.getLocalGraphicsEnvironment().
>                         
> getDefaultScreenDevice().getBestConfiguration(template);
> 
> Canvas3D c = new Canvas3D(gcfg);
> c.setStereoEnable(true);
> .
> .
> .
> The problem is that I would like to add this to the VisAD classes to enable
> stereo in the above project, but this
> does not seem trivial after looking at the VisAD classes involved. How 
> difficult > would this be?

-- 
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html