Iβm new here and Iβm not sure if this is the right forum to ask my question so please move my post if neccessary.
I created a box in Blender and I put a UV-Texture on it. It is just a simple wooden texture. After that I used the ogre mesh exporter to export my model in a ogre mesh file. Everything worked fine and the texture got copied. After I tried to load my model in jMonkeyEngine I just see a dark grey cube. Now I would like to know why.
Here is my jMonkeyEngine code:
package de.rene.jme3.hellomodel;
import com.jme3.app.SimpleApplication;
import com.jme3.light.DirectionalLight;
import com.jme3.math.Vector3f;
import com.jme3.scene.Spatial;
/**
*
@author rene
*/
public class HelloModel extends SimpleApplication {
It could be several things but with your code theres nothing wrong. If the texture isnt displayed in the first place its also not referenced properly in the j3o file. Does the ogre material file have the same name as the mesh or scene file? Did you really apply the texture in blender in a way so that it can be exported? Procedural textures cannot be exported for example, see the help of the ogre exporter for more info.
I am having the same problem. I exported to βModels/ogre/β under jme3. Here are the files: (please note I have replaced the greater than/lessthan brackets with {} for the code to show)
boxFigure.scene:
{scene formatVersion=β1.0.0β}
{nodes}
{node name=βmyEmptyβ}//an empty locator with the main mesh
I have no idea why the exporter decides to reference boxFigure.jpg as boxFigure/SOLID/TEX/boxFigure.jpg, but I have tried fixing the path from Models to no avail. I have no problem converting boxFigure.scene to a j3o, but when I open it using code like the above I get a red figure with no textures. Please help this is driving me nuts.
Thankyou nehon⦠I renamed all the files boxFigure.etc and is now working as it ought. Pretty obscure fix⦠no wonder there has been so much swearing about my workspace.