Problems to load a terrain from MW3D in a SimpleGame class

I see only a black screen with the text Counts: nothing displaying.

if I use the option Export selected, I see the terrain but without textures.


public class Teste extends SimpleGame {
    @Override
    protected void simpleInitGame() {
        URL u = Teste.class.getClassLoader().getResource("jmeteste1/imagens/modelos/cenario1.jme");
        try {
            Node fileJme = (Node) BinaryImporter.getInstance().load(u);
            rootNode.attachChild(fileJme);
        } catch (IOException ex) {
            Logger.getLogger(Teste.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    public static void main(String[] args) {
        Teste app = new Teste();
        app.setDialogBehaviour(AbstractGame.ALWAYS_SHOW_PROPS_DIALOG);
        app.start();
    }
}

Hi fabioluizfs,



Please see this thread about how to use the saved terrain in your simple game.



http://monkeyworld3d.com/e107_plugins/forum/forum_viewtopic.php?230



Hopefully this will help.



Please let us know if you are still facing issues.

thanks outrunner that works! Very good, my game is equal to the mw3d view port. :stuck_out_tongue: