Hi,
i have a strange problem with ms3d file. From this location i downloaded project:
http://www.3d-resources.com/models/56/dwarf.zip
When i use this project with jME it works fine and i can see this warrior with textures.
But when i use MilkShape and open it, MilkShape can't see textures location (warrior is white). Of course i can reload them in Materials but when i save this project after that, jME don't show me textures and i have error :
2008-01-08 05:47:12 com.jme.util.resource.ResourceLocatorTool locateResource
WARNING: Unable to locate: .dwarf2.jpg
2008-01-08 05:47:12 com.jme.util.resource.ResourceLocatorTool locateResource
WARNING: Unable to locate: .axe.jpg
I took code from tutorial. I only changed path and created my jar file :
try {
ResourceLocatorTool.addResourceLocator(
ResourceLocatorTool.TYPE_TEXTURE,
new SimpleResourceLocator(TestMilkJmeWrite.class
.getClassLoader().getResource(
"com/data/")));
} catch (URISyntaxException e1) {
logger.log(Level.WARNING, "unable to setup texture directory.", e1);
}
MilkToJme converter=new MilkToJme();
URL MSFile=TestMilkJmeWrite.class.getClassLoader().getResource(
"com/data/dwarf2.ms3d");
ByteArrayOutputStream BO=new ByteArrayOutputStream();
All files are in jar file in location com/data/…
Thx for any help.
Regards
Marius