From: Pontus L. <po...@ly...> - 2000-01-26 13:22:43
|
On Wed, 26 Jan 2000, Sven Goethel wrote: > Now I have tested the Method glGetIntegerv(GL_STENCIL_BITS,...) > with GL4Java Version 2.1.3.2 and: > > - WinNT 4.0 + Matrox G200 OpenGL > Stencil bits are 8 > Color bits are 5 > - WinNT 4.0 + NVidia GeForce256 + Elsa X2 OpenGL Driver > Stencil bits are 0 > Color bits are 5 > - Linux + NVidia GeForce256 + NVidia GLX 1.2 Mesa 3.0 OpenGL Driver > Stencil bits are 0 > Color bits are 5 > - Linux + Mesa 3.1 Soft OpenGL Driver > Stencil bits are 0 > Color bits are 5 > > So I guess it is about the Stencil capabilities of the gfx-card and the > driver. > I guess the Method glGetIntegerv(GL_STENCIL_BITS,...) is OpenGL1.2 only > - right ? > Or should we enable Stencil with glEnable(GL_STENCIL...) ? > > But it is not a bug in GL4Java ! In the example stencil.c that comes with the Mesa distribution, there is an example of having an 8 bit stencil buffer. However, the example calls glutInitDisplay(GLUT_RGB|GLUT_SINGLE|GLUT_STENCIL), so I guess one must do some initialization, as you say with glEnable(GL_STENCIL). You could implement it the same way as the current "doubleBuffer=true", i.e., "stencilBuffer=true" in the users' preInit() method. Regards, Pontus -- Pontus Lidman, po...@ma..., Software Engineer No matter how cynical you get, it's impossible to keep up. Scene: www.dc-s.com | MUD: tyme.envy.com 6969 | irc: irc.quakenet.eu.org |