Hi all!
I am importing *.3ds files from Blender to JPCT-AE
Using the code below to get the textures names I see that the textures can not be loaded because the filenames are truncated:
-> Texture file not found: alienmat1.jp
-> Texture file not found: flagtexture.
These should be alienmat1.jpg and flagtexture.jpg
The names are truncated at 12 characters (old DOS 8.3 file names?)
Code:
private void checkTextures() {
int texCnt = TextureManager.getInstance().getTextureCount();
Log.d(TAG, ">> Have " + texCnt + " textures");
if (texCnt > 0) {
Set<String> texNames = TextureManager.getInstance().getNames();
Iterator itr = texNames.iterator();
while (itr.hasNext()) {
String tex = itr.next().toString();
Log.d(TAG, "Texture " + tex);
try {
TextureManager.getInstance().replaceTexture(tex, new Texture(mContext.getAssets().open(tex.toLowerCase())));
} catch (java.io.FileNotFoundException e ) {
Log.d(TAG,"-> Texture file not found: "+tex);
} catch (java.io.IOException e) {
e.printStackTrace();
}
}
}
}
Why? Anyone also experiencing this?
Robert