Hi Guys.
First of all, sorry for my bad english. I don`t speak english very well.
I have this problem:
I make a ResourceHandler’s class. I have this method:
[java]public InputStream getResource(String path);[/java]
When i can load a model, i call this method with the path of the model and it returns the InputStream.
Now, i can load the model from this InputStream.
I have reading this topic http://hub.jmonkeyengine.org/forum/topic/loading-a-jme-model-problems/ but I did’n succeed.
I tried this:
[java]Spatial mainMesh = (Spatial)BinaryImporter.getInstance().load(ResourceHandler.getResource(mainMeshPath));
rootNode.attachChild(mainMesh);[/java]
but it isn’t work.
What can i try?
Thanks a lot for your replies and sorry again for my horrible english.