Hi
I want to use CloneImportExport to increase the performance when loading a model. It kinda worked in the past, but since months it seems to be buggy now. Since it is still today, I finally decided to post it here:
- When loading saved models that have textures the textures are not loaded (there exists a TextureState, but they don’t have any Texture object).
- I use a lot of the same models simultaneously (not the same java-objects, but the equal models of course). When I load saved models many of them just won’t appear and only one of them is actually rendererd, as if they share the same java-object (I guess it’s the problem like here: http://hub.jmonkeyengine.org/groups/general-2/forum/topic/bug-in-cloneimportexport-identical-objects-in-hierarchy/ but it doesn’t seem to be fixed to me…).
The first problem is minor since I can cirumvent it by manually saving addional information about the textures, which has worked so far.
But the second problem prevents me from using CloneImportExport.
Here is how I use it:
Storing a model:
[java]
CloneImportExport clone = new CloneImportExport();
clone.saveClone(model);
[/java]
Loading a saved model:
[java]
clone = new CloneImportExport();
clone.saveClone(model);
[/java]
Am I using it the wrong way? Is there a possibility that it will be fixed in the near future (if it is an actually bug and not my fault)?
Is there maybe another way of cloning/caching loaded objects to reuse them?