Hi I have a problem with loading textures from 3ds max (Rendering/render to texture) to my models
here is my first try i can see my texture but it’s not the desired solution :x
and here is the code: [java]<ul>Spatial house = assetManager.loadModel(“Models/Buildings/Middleagehouse/obj0.mesh.j3o”);
Material mat = new Material(assetManager, “Common/MatDefs/Misc/ColoredTextured.j3md”);
mat.setTexture(“m_Color”, assetManager.loadTexture(“Models/Buildings/Middleagehouse/obj0.mesh.png”));
house.setMaterial(mat);
//house.scale(1.05f, 1.05f, 1.05f);
house.rotate(0.0f, -3.0f, 0.0f);
house.setLocalTranslation(0.0f, 6.0f, -2.0f);
rootNode.attachChild(house);</ul>[/java]
please help me to find a solution for my problem