When I export from blender to ogre using the blender2ogre add-on, I'm not getting anything besides a scene most of the time and when I get a mesh I never get a material. Is there something wrong with my export procedure or what else could I be doing wrong?
I can export the basic cube from blender to ogre but when I download a model and try to export it I don't get the meshes.
I tried again and selecting the model in Blender does the difference like the answer here says. I can export an alien and get the mesh and material:
I rename the files:
$ ls workspace/DungeonWorld2/assets/objects/creatures/alien/ Cube.001.mesh Material.002.material Material.005.material Cube.001.mesh.xml Material.003.material Cube.001.skeleton.xml Material.004.material dev@dev-OptiPlex-745:~$ ls workspace/DungeonWorld2/assets/objects/creatures/alien/ alien.mesh Material.002.material Material.005.material alien.mesh.xml Material.003.material alien.skeleton.xml Material.004.material dev@dev-OptiPlex-745:~$
But how do I actually load the material since the alien now turns up in the game with no material but it does render the mesh:
Spatial model3 = assetManager .loadModel("objects/creatures/alien/alien.mesh.xml"); model3.scale(0.3f, 0.3f, 0.3f); model3.setLocalTranslation(-40.0f, 3.5f, -20.0f); rootNode.attachChild(model3);