I’m developing a server application which uses OpenGL to render 3D scenes. Therefore I need the offscreen features of jogl. My application is working fine on windows using a recent NVidia card & driver. However, when I’m trying to use an old nvidia driver (12.xx) or MesaGL for Windows, I’m keep getting the following exception
net.java.games.jogl.GLException: Method “wglChoosePixelFormatARB” not available
at net.java.games.jogl.impl.windows.WindowsGLImpl.wglChoosePixelFormatARB(WindowsGLImpl.java:22201)
at net.java.games.jogl.impl.windows.WindowsPbufferGLContext.createPbuffer(WindowsPbufferGLContext.java:207)
at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent(WindowsOnscreenGLContext.java:116)
at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:162)
at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:182)
at net.java.games.jogl.GLCanvas.display(GLCanvas.java:82)
when creating the offscreen renderer.
It seems that wglChoosePixelFormatARB is not implemented in all OpenGL drivers/implementations for windows.
Is it possible to get around this requirement somehow (maybe replace wglChoosePixelFormatARB with wglChoosePixelFormat?). Or was someone able to get the osmesa functions to work with jogl, which would be the best solution for me since I could then have a “pure” offscreen rendering?
I need the Mesa support to have a grapics driver independent solution since most server machines only have limited or no 3D hardware.
Andreas