Hi guys, I’m getting the following exception after updating my JME today. Note that I haven’t updated my JME for a month or two:
[java]Aug 30, 2011 1:49:42 AM com.jme3.app.Application handleError
SEVERE: Failed to initialize OpenGL context
org.lwjgl.LWJGLException: Failed to find ARB pixel format 1 0
at org.lwjgl.opengl.WindowsPbufferPeerInfo.nCreate(Native Method)
at org.lwjgl.opengl.WindowsPbufferPeerInfo.<init>(WindowsPbufferPeerInfo.java:47)
at org.lwjgl.opengl.WindowsDisplay.createPbuffer(WindowsDisplay.java:619)
at org.lwjgl.opengl.Pbuffer.createPbuffer(Pbuffer.java:234)
at org.lwjgl.opengl.Pbuffer.<init>(Pbuffer.java:219)
at org.lwjgl.opengl.Pbuffer.<init>(Pbuffer.java:190)
at org.lwjgl.opengl.Pbuffer.<init>(Pbuffer.java:166)
at com.jme3.system.lwjgl.LwjglCanvas.makePbufferAvailable(LwjglCanvas.java:272)
at com.jme3.system.lwjgl.LwjglCanvas.createContext(LwjglCanvas.java:339)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:108)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:200)
at java.lang.Thread.run(Thread.java:662)[/java]
This only occurs when I attempt to set the sample rate in the settings higher than 1
[java]
// Create JME settings and apply them
settings = new AppSettings(true);
settings.setWidth(640); // render width (will be overridden)
settings.setHeight(480); // render height (will be overridden)
settings.setBitsPerPixel(32);
settings.setSamples(4); // No error when commented out
scene.setSettings(settings);
scene.setPauseOnLostFocus(false);
scene.setShowSettings(false);
// create the canvas
scene.createCanvas();
ctx = (JmeCanvasContext) scene.getContext();
ctx.setSystemListener(scene);
add(ctx.getCanvas());
// Tell application to do canvas magic
scene.startCanvas(true); // Explosion! noooooo
[/java]
Previous to updating, I could set the samples to 4 with no problems.
Video Card: Nvidia GTX 280
Driver: 8.17.0012.6724
Any ideas what is happening? My stuff has become all aliased
I should mention that this is only the case when rendering in canvas mode.
Running TestSafeCanvas and setting the sample rate to 4 will break.
Running TestManyLights and setting the sample rate to 4 (through the JME popup settings window) will run just fine.
EDIT::
Everything is working fine on my laptop (ATI card). And I tried updated my nVidia drivers on my PC but they are failing to install. Perhaps this is all on my end with broken drivers
im not sure, but maybe you can try the FXAA filter and see if that works:
http://hub.jmonkeyengine.org/groups/development-discussion-jme3/forum/topic/fxaa-rules-ok/?topic_page=1&num=15
Whoa mama, excellent! That will work just fine, thanks wez