Posted by
Sven Gothel on
May 18, 2011; 1:27am
URL: https://forum.jogamp.org/JoGL-does-not-recognize-stereo-on-Planar-StereoMirror-tp2954735p2955139.html
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
>