Exception in thread "Thread-2" java.lang.NullPointerException
at org.lwjgl.opengl.GL11.glClearColor(GL11.java:566)
at com.jme.renderer.lwjgl.LWJGLRenderer.setBackgroundColor(LWJGLRenderer.java:445)
at canvas.standard.StandardCanvasGame.setBackColor(StandardCanvasGame.java:130)
at terrainModeling.TerrainModeler2$3.run(TerrainModeler2.java:898)
at java.lang.Thread.run(Unknown Source)
I get this exception whenever I try to set the background color during runtime... is it really impossible to set the background color during runtime... I use StandardCanvasGame btw
Looks like a task for GameTaskQueueManager!! When working with StandardGame in any fashion, its important to have a good understanding of what it means to the underpinnings of jME. See here for excellent discourse on the subject. (I’ve linked you to the middle for parts pertinent to this question… reading from there to the bottom should be helpful but read the top when you get a chance :))
Happy to help. Whenever you see an exception thrown by OpenGL when using StandardGame, it's almost always because the function being called needs to be injected in the GL thread. You'll get a pretty quick working knowledge of a few calls which need to be put in there