Hi, I'm new to jME and used to using openGL, my problem is that I simply want to add a Quad to my rootNode, when I create and attach the Quad during simpleInitGame() everything is fine.
But when I use the same code (quad creation and attach) in simpleUpdate, the Quad is textured with the fpsNode font texture, and appears to have Depth test problems (every other object draws on top of it). This is true unless I have another object of my rootNode previously drawn in the queues.
I think I am missing something really obvious here. What is the difference between creating the Quad in simpleInitGame or in simpleUpdate ? Do I need to explicitly create all render states when I create the Quad in update ?
Thanks in advance.
Here is the code used to create and attach the Quad :
Quad test = new Quad("testQuad", 100,100);
// test.setTextureBuffer(0, null);
This is what I get when using the code in update (not good) :
And this is what I get when using the code in init (it's ok) :