GameState and Models

Moving along with the test set up noted in http://www.jmonkeyengine.com/jmeforum/index.php?topic=8421.msg65472#msg65472 I am now attaching a model to the rootNode of the GameState in question, but the model is not displaying.  I have the model set up as in other projects that do not use GameState (and in which the model shows up without a problem), and other scene elements attached to the rootNode in the GameState (like a simple jME box) show up without a problem.  I can see via the console log and the JMETreeModel viewer that the model is indeed attached to the rootNode.



Jul 5, 2008 10:00:32 AM com.jme.scene.Node <init>

INFO: Node created.

Jul 5, 2008 10:00:32 AM com.jme.scene.Node attachChild

INFO: Child (SPPlanet) attached to this node (ms3d file)

Jul 5, 2008 10:00:32 AM com.jme.scene.Node attachChild

INFO: Child (SPDisk2) attached to this node (ms3d file)

Jul 5, 2008 10:00:32 AM com.jme.scene.Node attachChild

INFO: Child (SPBase) attached to this node (ms3d file)

Jul 5, 2008 10:00:32 AM com.jme.scene.Node attachChild

INFO: Child (SPDisk1) attached to this node (ms3d file)

Jul 5, 2008 10:00:32 AM com.jme.scene.Node attachChild

INFO: Child (SPAxis) attached to this node (ms3d file)

Jul 5, 2008 10:00:32 AM com.jme.scene.Node attachChild

INFO: Child (SPMoon) attached to this node (ms3d file)

Jul 5, 2008 10:00:32 AM com.jme.scene.Node <init>

INFO: Node created.

Jul 5, 2008 10:00:32 AM com.jme.scene.Node attachChild

INFO: Child (ms3d file) attached to this node (rootNode)



In stepping back with GameState, the model shows up when using DebugGameState without a problem.  And of course, in GameState render I am calling draw on rootNode – which the model is attached to.



Any ideas?  Is there something special that needs to be done in GameState in order to get external models to display?


Ahahaha… another simple thing.  After resetting the display depth to 32 (away from the original 16) the model showed up. 

[me=ashtonv]makes a note.[/me]



Onward.

[me=ashtonv]makes another note:[/me]



Scale was an issue too.