Zipped Models In Jirr

Discussion about Irrlicht's Java wrapper
Post Reply
JamieEclipse
Posts: 1
Joined: Tue May 24, 2011 7:05 pm

Zipped Models In Jirr

Post by JamieEclipse »

I've found that it seems when I load obj files from a directory in my IDE (netbeans) it works fine, importing textures and all. However when I try to make a .jar do this, it loads the mesh and fails to load the material information from the .mtl.

So I thought I'd try putting the models in the jar and loading them from there, even though this makes it a pain as I have to change the code a little to load from the IDE. I'm (apparently) successfully opening the jar, as indicated by the return value of addZipFileArchive's return value. But then I hit two problems.

1. If I get the IFileSystem instance to produce a file list, it doesn't contain any files from the jar.

2. When I want to load a model with iSceneManager.getMesh() and IFileSystem.createMemoryReadFile, I get nothing. There are some weird parameters in createMemoryReadFile that could be causing the problem.

So I'd like to know what to do, even if that resorts to fixing the .obj file problem instead.

Thanks,
JamieEclipse.

TL;DNR
How do I get models from a Zip/jar? Obj materials are broken.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Such problems occured from time to time, but were fixed in most cases in the engine now. However, jirr is so old that there's good chance that mayn of those errors are still in there.
Post Reply