Login  Register

JoGL does not recognize stereo on Planar StereoMirror

Posted by blainebell on May 17, 2011; 10:48pm
URL: https://forum.jogamp.org/JoGL-does-not-recognize-stereo-on-Planar-StereoMirror-tp2954735.html

When I loop through all of the available Capabilities (using a loop from a previous post):

        AbstractGraphicsDevice agd = GLProfile.getDefaultDevice();
        GLDrawableFactory drawableFactory = GLDrawableFactory.getFactory(GLProfile.getDefault());
        java.util.List availableCapabilities = drawableFactory.getAvailableCapabilities(agd);
        boolean hasStereo = false;
        for (java.util.Iterator it=availableCapabilities.iterator();it.hasNext();){
            Object ob = it.next();
            System.out.println("cap=" + ob);
            if (ob instanceof GLCapabilities){
                if (((GLCapabilities)ob).getStereo()){
                    hasStereo = true;
                    break;
                }
            }
        }

I do not get stereo detected.  Here is the output of this loop: stereoout.txt

I think I know why this is happenning.  Since Planar effectively uses 2 devices to converge the image, both devices are rendering in mono, not stereo.  I guess my question is: is there a way in JoGL to read the name of the device, so that maybe we can make an exception (or exceptions) for devices that do this?  When I override the stereo, and actually setup my rendering for stereo, it ends up working, which is good.

Thanks in advance.

Blaine