I have a 3ds file that is 10mb. jMonkey it takes too long time to load it.
I tried to export 3ds file to jme but (jme file) loads without textures.
ResourceLocator doesn't helps. Please help.
Is jme can load textures? if do then how to do it???
or how i can make a 3ds file to load faster ( Threads maybe, HOW?)
converting it once to .jme and then loading directly the .jme version will be the best method i guess.
Did you set up ResourceLocator correctly?
i think so
can you give me an example how to do it correctly?
Would be great if the jmetest be updated to load a texturized 3ds and all this problems would be solved
first set up the resource locator:
(once when the game starts up)
ResourceLocatorTool.addResourceLocator(ResourceLocatorTool.TYPE_TEXTURE,
new SimpleResourceLocator(Main.class.getClassLoader().getResource("com/jmedemos/physics_fun/resources/")));
and later use the locator to search the file:
Texture tex = TextureManager.loadTexture(
ResourceLocatorTool.locateResource(ResourceLocatorTool.TYPE_TEXTURE,"floor.png"),
Texture.MM_LINEAR, Texture.FM_LINEAR, Image.GUESS_FORMAT_NO_S3TC, 0.0f, true);
What if i have multiply textures ?
the object builded from multiply objects, where each one uses another texture
if u wanna save the texture image file along with ur jme file, do
Texture.DEFAULT_STORE_TEXTURE = true;
in the constructor of ur class or anywhere before the game is started.
if u dont wanna save the texture along with the jme file but still wanna use the old jpg, tga or whatever image u use, using resourcelocator tool should be fine. make sure u direct the base directory to the dir where ur textures r.