NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

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

  • 2000 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: