Hello there,
I’m using SVN jme3 and after adding another ViewPort using createPostView on my SimpleApplication’s renderManager instance within the simpleInitApp method. I get the following error:
08.03.2011 17:35:23 com.jme3.app.Application handleError
SCHWERWIEGEND: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
java.lang.IllegalStateException: Scene graph is not properly updated for rendering.
Make sure scene graph state was not changed after
rootNode.updateGeometricState() call.
Problem spatial name: null
at com.jme3.scene.Spatial.checkCulling(Spatial.java:229)
at com.jme3.renderer.RenderManager.renderScene(RenderManager.java:508)
at com.jme3.renderer.RenderManager.renderViewPort(RenderManager.java:712)
at com.jme3.renderer.RenderManager.render(RenderManager.java:745)
at com.jme3.app.SimpleApplication.update(SimpleApplication.java:249)
at jMonkeyEngine.core.proxy$com.jme3.app.SimpleApplication$0.update(Unknown Source)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:146)
at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:203)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:208)
at java.lang.Thread.run(Thread.java:662)
I don't really do anything with the new ViewPort besides adding the simpleApp's rootNode to it. Also, the rootNode contains only one element which is a BitmapText with a BillboardControl added to it. Removing the code for creating the new ViewPort or, removing the code for adding a single BitmapText element or removing the code for adding a BillboardControl to the BitmapText instance solves the problem.
My guess is adding the BillboardControl within the initApp method is the problem - but where should I put it instead?
kind regards,
MHOOO