Sirs, this is happening with Font3D:
- I try to create a Font3D in my code, like this:
Font3D font3D = new Font3D(new Font("Arial", Font.PLAIN, 12), 0.001f, false, true, false);
- And then I get the following exception:
15-mar-2008 21:19:21 com.jmex.font3d.math.Triangulator$SweepLineComparer compare
INFO: Other end(2):[indx:83,(0.171875,0.71875),type:START]
Exception in thread "main" java.lang.NullPointerException
at org.lwjgl.opengl.GL11.glGenLists(GL11.java:1357)
at com.jme.renderer.lwjgl.LWJGLRenderer.createDisplayList(LWJGLRenderer.java:1511)
at com.jme.scene.batch.GeomBatch.lockMeshes(GeomBatch.java:537)
at com.jme.scene.Geometry.lockMeshes(Geometry.java:750)
at com.jme.scene.SceneElement.lockMeshes(SceneElement.java:336)
at com.jmex.font3d.Font3D.<init>(Font3D.java:159)
Any idea why Font3D is not initlializing properly?