Make sure you check “Copy Textures” if you’re using the OgreXML Exporter. I’m creating textures in Blender using UV Meshes and unwrapping and I have to check it every time.
Oh and I also need to rename the “Scene.material” in the exporter to the name of your model. It would be “Plane.material” in your case I think if that is the name you are saving the file as. Then right-click Plane.mesh.xml within jME SDK and “Convert to j3o” and then import the j3o to your game. I think directly importing the XML without converting works too but i always convert it.
If you open your model in the jME SDK SceneViewer and click the lightbulb, do you see it’s texture?
Perhaps it bugs because of spaces in names. I don’t think it’s likely but export it as planetExpress or something just to be sure. I generally don’t use spaces in file names.
I’m having the same problem. I did everything I’m supposed to and it still doesn’t work, so I shoved it on the back burner for a while. Nice to see I’m not alone in this.
When you run Ogre Meshes export: (this is for single meshes… NOT scenes)
Make sure you rename the .materials file to the same name as the Mesh you are exporting.
Make sure that the script output shows that it wrote the material properly (i.e. you’ll see the texture name… such as…
Begin writing materials:
Material (or whatever the material was named)
Done.
). If the material is not listed… it didn’t write the .materials file properly and you won’t see the material.
Make sure you have the following files in the Models directory at least until you convert to j3o: (This is assuming that the mesh is named: myObject)
myObject.mesh.xml
myObject.material
myObject.png (or whatever the name of the actual UV map is)
and… if you have animated it–
myObject.skeleton.xml
Once you have each of these in an assets folder, right-click and convert to j3o.
Right-click the j3o file and select View Model… you should see your model WITH the texture.
–EXTRA–
The textures as they are imported into jme3 via ogre3d are odd at best. I suggest creating the materials yourself and applying them post loading of the model as such: