Blender 2.66a -orge exporter error part 2

After installation of orge exporter for blender 2.66.1 (2.66a) - . JMonky scene file exported from blender gives an error in JmonkySDK :

INFO: Loaded material definition: Unshaded
kwi 28, 2013 5:11:13 PM com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
kwi 28, 2013 5:11:13 PM com.jme3.app.Application handleError
SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
com.jme3.asset.AssetNotFoundException: mlotek.scene

I am sure that “separate materials " option was off during export process” - any Ideas why this error have occured?

Scene export from blender 2.65 works. I can see whole scene added to the rootNode but how I can access elements of this scene. I have tryied scene.getChild(‘name’) but It trows error. How I can access scene children and what are the names of it. Blender Objects names or meshes names? I have tryied many times always with an error.

I’ll try a scene with blender 2.66 and see what’s the issue. I have no issues with mesh.xml files and this version of blender.

You can explore your j3o in the sdk. Open it and the structure should be displayed in the scene explorer window (bottom left). Else you can traverse the scene graph and diplay the names of every spatial you come across.

I can export scene from blender 2.66a to SDK. In Jmonky I can attachChild to rootNode. In simple loop updater I can’t rotate my model event if I set a protected variable in class body. How I get access to may model from simplelooop updater? Each time if I put myModel.rotate(.1f,.1f,0f); it throws an error. I am following basic tutorials but maybe I can’t get it. Any help will a big help for me.

could you post your code and the mentioned error?

[java]
package mygame;

import com.jme3.app.SimpleApplication;
import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
import com.jme3.math.Vector3f;
import com.jme3.renderer.RenderManager;
import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Box;
import com.jme3.light.DirectionalLight;
import com.jme3.scene.Spatial;
import com.jme3.scene.Mesh;
import com.jme3.math.FastMath;
import com.jme3.scene.Node;

/**

  • test

  • @author normenhansen
    */
    public class Main extends SimpleApplication {

    public static void main(String[] args) {
    Main app = new Main();
    app.start();
    }

    protected Spatial mymodel;

    @Override
    public void simpleInitApp() {

      Spatial mymodel = assetManager.loadModel("Scenes/cross.scene");
    rootNode.attachChild(mymodel);               
    

    DirectionalLight sun = new DirectionalLight();
    sun.setColor(ColorRGBA.White);
    sun.setDirection(new Vector3f(-.5f,-.5f,-.5f).normalizeLocal());
    rootNode.addLight(sun);
    //scene.rotate(0, 2*tpf, 0)
    //Geometry submesh = (Geometry) houseScene.getChild(“door 12”);

    }

    @Override
    public void simpleUpdate(float tpf) {
    //Geometry submesh = (Geometry) scene.getChild(“cross”); ****************** gives an error

     //TODO: add update code
    

    mymodel.rotate(2*tpf,0,0); ************** does nothing ?

    }

    @Override
    public void simpleRender(RenderManager rm) {
    //TODO: add render code
    }
    }
    [/java]