Problem with stereo

Hi,

I want to use stereo on windows xp with nvidia mx440. Stereo works with NVIDIA drivers and shutter glases. When I set stereo true using GLCapabilities before creating the canvas I got an exception wich tells me that the requested configuration is not available.

glcp = new GLCapabilities();
glcp.setStereo(true);
canvas = GLDrawableFactory.getFactory().createGLCanvas(glcp);

I looked to the source of the windows implementation. But I dont have any idea how to switch on stereo.

best wishes

Hans

I personally haven’t used stereo so can’t tell you what might be happening here. Try running with -Djogl.debug.DefaultGLCapabilitiesChooser and see if the output indicates there are any stereo pixel formats available. If so, try running with -Djogl.debug.GLContext and see from the output if you can tell which pixel format is being chosen. If it’s just that the wrong one is being chosen, you can write your own GLCapabilitiesChooser to choose a stereo format. Otherwise there may be more work needed in the JOGL implementation; in this case please file a bug with the JOGL Issue Tracker and attach a small test case. Also try a Google search for “stereo opengl”; I saw a few useful articles.

Hi Ken,

thanks for your answer. I did all this before sending my question. I also extendet glCapabilitie2PFD in WindowsGLContext because WGL.PFD_STEREO was not used. I put in this statement:

if (caps.getStereo()) pfdFlags |= WGL.PFD_STEREO ;

Maybe the problem is in the WGL class but I do not have any idea where to look at.

Hans

Do you have a test case using JOGL which is supposed to work? Alternatively, do you have a small C test case which works? If so, please open a bug with the JOGL Issue Tracker (you need to be an Observer of the project to do so) and attach the test case. Thanks.

AFAIK the consumer nVidia cards do
not support stereo at OpenGL API level.
The stereo is done via a trick at the
driver-level. Search for ‘nvidia stereo
driver’ and you should find some info.

By stereo glasses, do you mean one
of those CrystalEyes that take flip signals
from the card’s stereo jack or just a
passive red/blue glasses?

Yes, I mean this shutter glases not Red/Green. I am using the Revelator from ELSA.

Thanks for your tip, I will search for nvidia driver information.

The NVidia stereo driver is some sort of add-on-driver to the standard nvidia graphics driver and as such modifies the 3d rendering of almost any Direct3d and OpenGL game/application running in fullscreen mode without having to prepare the game/app in advance when developing. I already managed to run the standard GearTest example included in the Java3d examples after having it modified to run in fullscreen mode. But this was the only modification necessary. I used the Java3d version that is using OpenGL behind the scene. I tried the same with some JOGL examples, but the only thing I get is a crash of the JVM. And by the way: the stereo driver of Nvidia is both capable of running with red/green or custom color settings and shutter glasses like the revelator and a lot more…

Would be great seeing JOGL in stereo action instead of a crash :slight_smile:

amusi

Hi amusi,

how did you switch on full screen mode ? I will test it with J3D and also with JOGL.

Thanks

HGS

I did what is explained here:
http://java.sun.com/docs/books/tutorial/extra/fullscreen/exclusivemode.html

regards,
amusi

I just wanted to mention I filed an issue in the issue tracker now, hope the description is detailed enough.

Hi,

looking to the nVidia home page I found, that the Quadro4 graphics card support stereo on OpneGL level. I orderd one and will check stereo with JOGL again after installing the Quadro4 graphics card.

best wishe

HGS

I just upgraded Amusi’s issue 161 with some more information. I installed the 71.89 drivers on my GeForce FX 5800 Ultra machine and the stereo package and after some initial hiccups it looks like everything is working. I don’t know how the driver detects whether an application is full-screen or not but it appears to transparently enable stereo for fullscreen applications and disable it for windowed apps. I was able to launch the Grand Canyon demo in full-screen mode and see it in anaglyph format (I don’t have shutter stereo glasses). I’ll wait for Amusi to post an hs_err log but for now it looks like stereo is working at least with NVidia’s stereo support.

We’ve had similar trouble getting our JOGL application to work in stereo mode on a nvidia setup.

Going into exclusive fullscreen didn’t do the trick. And when I added a call to setStereo(true), the application crashes.

We tried with both JOGL 1.1.0-b09 and 1.1.0-b10.

Thanks,
Andrei

Do non-JOGL applications work? Could you try with JOGL 1.1 b11 and post the hs_err log (inside “code” tags so they don’t get YABB-ized)?

Hi,

I tested stereo with JOGL and nVidia Quadro4 graphics card. It works very well. No problem to use stereo via OpenGL !

Thanks for your help

HGS