> Date: Tue, 23 Apr 2002 10:12:56 -0500 > From: "Simeon H.K. Fitch" <[EMAIL PROTECTED]> > > Anyone know when this entry was written (it seems old)? It states that "Once > the manufacturers update their drivers to support stereo as described in the > OpenGL specification then stereo should work in Java 3D". The nVidia docs > claim that the OpenGL stereo extension is enabled when you install the > stereo drivers, so I was confused as to why Java3D didn't pick it up. Anyone > here know what OpenGL property is queried?
For Unix systems, Java 3D uses glXChooseVisual() to select a stereo visual by setting GLX_STEREO in the attributes array. For Windows systems, Java 3D uses ChoosePixelFormat() and sets the PFD_STEREO bit in the dwFlags word of the pixel format descriptor. If these functions fail to return a visual or pixel format supporting stereo, then Java 3D won't run in stereo on that system. It could be that the nVidia stereo drivers support stereo by imposing restrictions on or reducing the available screen resolution, color depth, or Z buffer depth. If so, there may be a problem with how Java 3D chooses the "best" graphics configuration -- glXChooseVisual() and ChoosePixelFormat() may be rejecting stereo because of conflicting demands between screen resolution, color depth, Z buffer depth, and the extra buffers needed for stereo support. You might try running a lower screen resolution or using full screen exclusive mode to change it on the fly and see if that enables stereo. It's too late for Java 3D beta 2, but if it turns out that the most popular cards can only support stereo with, say, a 16-bit Z buffer, then we may be able to change the pixel format algorithm to accomodate that for FCS. Be aware also that some graphics cards may only support stereo in a non-OpenGL compliant manner, perhaps through a driver setting that requires the rendering engine to do something special. Finally, DirectX 8 doesn't support stereo, so Java 3D 1.3 can't provide stereo windows when running on D3D. If you must have stereo support with D3D systems, then you'll have to use Java 3D 1.2.1, which runs with DirectX 7. -- Mark Hood =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".