Yes, I first load textures like this:
And then load serialized object like this:
Texture name is stored inside serialized object, it's set automatically after loading.
May be there're problems with adding texture ot TextureManager thinks that texture is already loaded...
Code Select
if (!tm.containsTexture("smlm"))
tm.addTexture("smlm", new Texture(res.openRawResource(R.raw.smlm)));
And then load serialized object like this:
Code Select
if (objWalls == null)
objWalls = Loader.loadSerializedObject(res.openRawResource(R.raw.model_walls));
objWalls.setName("objWalls");
Texture name is stored inside serialized object, it's set automatically after loading.
May be there're problems with adding texture ot TextureManager thinks that texture is already loaded...