I wanted to give LWJGL a try, skipping directly to applets (webstart is not an option anymore for now…)
I’m using the basic Gears demo as a test ( http://lwjgl.org/applet/ )
So far, it works fine on 3 different Windows machines (using FF and Explorer…)
Unfortunately, it’s another story on my MacBook Pro (Snow Leopard 10.6.4; Java 1.6.0_20; NVIDIA GeForce GT 330M):
-
It does work, using Safari 5.0
-
It does not work, using FF 3.6.8, with the following log:
MRJ Plugin for Mac OS X v1.0.1
[starting up Java Applet Security @ Sun Aug 01 16:52:13 IDT 2010]
Sun Aug 01 16:52:14 IDT 2010 JEP creating applet org.lwjgl.util.applet.AppletLoader (http://lwjgl.org/applet/)
org.lwjgl.LWJGLException: Could not create pixel format
at org.lwjgl.opengl.MacOSXPeerInfo.nChoosePixelFormat(Native Method)
at org.lwjgl.opengl.MacOSXPeerInfo.choosePixelFormat(MacOSXPeerInfo.java:55)
at org.lwjgl.opengl.MacOSXPeerInfo.(MacOSXPeerInfo.java:50)
at org.lwjgl.opengl.MacOSXCanvasPeerInfo.(MacOSXCanvasPeerInfo.java:49)
at org.lwjgl.opengl.MacOSXDisplayPeerInfo.(MacOSXDisplayPeerInfo.java:48)
at org.lwjgl.opengl.MacOSXDisplay.createPeerInfo(MacOSXDisplay.java:246)
at org.lwjgl.opengl.Display.create(Display.java:853)
at org.lwjgl.opengl.Display.create(Display.java:783)
at org.lwjgl.opengl.Display.create(Display.java:764)
at org.lwjgl.test.applet.GearsApplet$1.run(GearsApplet.java:54)
Exception in thread “Thread-9” java.lang.NullPointerException
at org.lwjgl.opengl.GL11.glClear(GL11.java:585)
at org.lwjgl.test.applet.GearsApplet.drawLoop(GearsApplet.java:196)
at org.lwjgl.test.applet.GearsApplet.gameLoop(GearsApplet.java:136)
at org.lwjgl.test.applet.GearsApplet$1.run(GearsApplet.java:59)
I’m using the “defaults settings” in Java Preferences, since I’m looking for a solution that works “out-of-the-box” for the average user.
Any clues?
Thanks!
Ariel
http://chronotext.org
