tb = new TerrainBlock("Terrain", terrainSize, vector3f,terrainMap, new Vector3f(0, 0, 0), false);
But when I run the test I am keep getting:
INFO: Child (3D Scene Node) attached to this node (rootNode)
15-Aug-2004 11:37:52 com.jme.scene.Node attachChild
INFO: Child (Camera Node) attached to this node (3D Scene Node)
org.lwjgl.opengl.OpenGLException: Invalid value (1281)
at org.lwjgl.opengl.Util.checkGLError(Unknown Source)
at org.lwjgl.opengl.Window.update(Unknown Source)
at com.jme.renderer.lwjgl.LWJGLRenderer.displayBackBuffer(Unknown Source)
at com.jme.app.VariableTimestepGame.start(Unknown Source)
Let me repeat myself and expound a bit on this topic.
GL errors are automatically checked every frame by LWJGL. This happens in ONE place and that is Window.update(); So no matter where the openGL call is that is causing your program error, it is going to generate a stack trace at that point in the code. Thus, the differences in the two methods you point out is likely not the cause of the exception.
A stack trace like yours means that some openGL code called by jME is invalid for your card. It may also be invalid for everyone’s card, however it is more likely that your card needs a driver update or just can’t support the given code. The reason the old jME lib worked is likely because jME did not previously contain feature X or optimization X that is now causing your card to choke. If you can find out what the feature is (debugging and putting a watch on org.lwjgl.opengl.Util.checkGLError or similar for example) and it’s just incompatible with a large array of cards, we could put in an alternative path for those cards. (Honestly, I don’t think the 9600 should have any problems because others on this forum use that card.)
If you want to be absolutely positive that it is not the RenderQueue, you can always force off render queue on each of your scene objects.
One possibility is Aniso filtering. I noticed it was not checking for support before setting the level, this was fixed a few days after the .7 cut. I WAS a bit more certain it was that when people were just complaining about old laptop cards, but now I’m not sure given the 9600 mentioned above.