Missing Objects when Loading from zip archive

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Granthus
Posts: 16
Joined: Mon Jan 22, 2007 8:04 am
Location: Australia
Contact:

Missing Objects when Loading from zip archive

Post by Granthus »

Not sure how best to explain this.

During development, my project reads all models, textures etc from a ./data directory.

eg.

Code: Select all

device->getFileSystem()->addFolderFileArchive("/data/"); 
For release however, this same data dir is zipped and renamed

Code: Select all

device->getFileSystem()->addZipFileArchive("archive.ext");
Recently however I have noticed that under the 'Release' model, several of my objects do not display at all. Extracting the archive (bringing the embedded /data/ dir back to root) and the same binary displays those same models fine again.

Is this a known limitation/problem using standard .zip type archives as my FileSystem?

For now I have kinda worked around it by making sure all my models are created with tangents (->createMeshWithTangents) & some normal maps, however I can not understand why 'extracted' everything displays, zipped and I lose objects - no changes to binary at all.

I have tried searching for similar problems and havent found any - however perhaps Im not looking for the right thing so any thoughts/suggestions appreciated.
Granthus
Posts: 16
Joined: Mon Jan 22, 2007 8:04 am
Location: Australia
Contact:

Re: Missing Objects when Loading from zip archive

Post by Granthus »

Thought some screenshots may better show it

1. From /data/ dir - release compiled binary
Image

2. From archive.ext (standard .zip of above DATA dir)
Image

As can be seen .. from directory there are 2 stations showing (1.) however in (2.) the top station is gone (problem topic of post) and the bottom one is my work around to make it show as mentioned

(Same Release Binary used for Both Screenshots)
Thanks

G

EDIT: I have checked Console output while using archive and it shows all meshes & textures loading with no errors
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Missing Objects when Loading from zip archive

Post by hybrid »

Which kind of file types are involved (inside the zip)? Could be - since our zip files are still not completely integrated into all file methods, that we miss some parts inside the loaders. Could be even silent, as some routines check the existence of files, which might fail here.
Granthus
Posts: 16
Joined: Mon Jan 22, 2007 8:04 am
Location: Australia
Contact:

Re: Missing Objects when Loading from zip archive

Post by Granthus »

Hybrid

My apologies, should have thought to include that info also.

All objects are standard .OBJ models with textures being either .BMP or .PNG

I also try to ensure that all my models have correct normals, are modeled in quads etc.

As can also be seen in the screens, this also seems to impact my lighting (which I cant understand) and suspect it may be related to the same problem as thats when I see it.
Post Reply