JoGL does not recognize stereo on Planar StereoMirror

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

JoGL does not recognize stereo on Planar StereoMirror

blainebell
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

Reply | Threaded
Open this post in threaded view
|

Re: JoGL does not recognize stereo on Planar StereoMirror

Wade Walker
Administrator
Hmm, looks like the Planar StereoMirror is a monitor, rather than a graphics card... maybe you could identify it with GraphicsDevice.getIDString() (http://download.oracle.com/javase/1.4.2/docs/api/java/awt/GraphicsDevice.html) or something similar from GraphicsEnvironment/GraphicsConfiguration?
Reply | Threaded
Open this post in threaded view
|

Re: JoGL does not recognize stereo on Planar StereoMirror

Sven Gothel
Administrator
In reply to this post by blainebell
On Wednesday, May 18, 2011 12:48:08 am blainebell [via jogamp] wrote:

>
> 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:
> http://forum.jogamp.org/file/n2954735/stereoout.txt 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.

Stereo is a GL/[GLX, WGL, ..] feature unrelated to your monitor device.

You/We would need to know how your setup (GPU/Monitor/Driver) achieves stereo.
Obviously not via the std GL stereo feature, maybe via 2 dedicated framebuffers
on each GPU as you point out ? Sounds funny thought, since that would need
some big time synchronization in the 'parallel running threads' using each GPU device.

One would think that this vendor would support some established solution,
if you can say this in regards to the lack of stereo hardware 'solutions' today :)

~Sven

>
> Thanks in advance.
>
> Blaine
>