MTL doesn’t path to images

If you just read everything I wrote, it was irrelevant. I just had a look in the MTLLoader source and saw what I was doing was completely wrong. My question now is, what method would return asset info? I’ve changed my code to:



[java]Spatial sceneModel = assetManager.loadModel(“Scenes/scene/scene.obj”);

Material testSceneMat = new Material(

assetManager, “Common/MatDefs/Misc/Unshaded.j3md”);

testSceneMat.setTexture(“ColorMap”, MTLLoader.load(assetManager.loadAsset"Scenes/scene/scene.mtl"));

sceneModel.scale(5f, 5f, 5f);[/java]



But, loadAsset doesn’t return asset info, but rather the asset, could someone tell me what method returns asset info? Thanks.

I’m sorry if I’ve wasted anyones time, but my question was a stupid one. you dont need to load the textures to an mtl, jme3 does it for you. The correct code is:



[java]Spatial sceneModel = assetManager.loadModel(“Scenes/scene/scene.obj”);

Material testSceneMat = new Material(

assetManager, “Common/MatDefs/Misc/Unshaded.j3md”);

sceneModel.scale(5f, 5f, 5f);[/java]