Hello, it's David again. I am having a small problem that I have searched for both on the JMonkey site and the Nifty site, but have so far come up blank.
When my application starts, there is a Nifty screen with options and the like, with an animated (via JMonkey) 3d scene going on in the background. When the user clicks "Start Game" I then clear the JMonkey root node, and load the main 3d environment of the game. To make the nifty screen 'go away' I tried to call nifty.getCurrentScreen().endScreen(...). This seemed to work at first as the screen does indeed 'go away' and I can start playing in my 3d environment. The problem is that the keyboard keys still seem to be bound to that last nifty menu. For example 'space' or 'enter' will call my callback method on my ScreenController, resulting in my program trying to run though creating the 3d environment all over again as if the "Start Game" button was still visible and selected.
I am obviously missing something. The only thing I could find was this old blog post:
It details about go back and froth between 3d rendering in Slick and 2d rendering in Nifty. I don't know if 1) this still applies, and if it does if it applies to my situation above and 2) what the equivalent in JMonkey would be.
Thanks for any help,