Archived

This topic is now archived and is closed to further replies.

penetrator

OT: unpacking 3ds files

Recommended Posts

I have several .3ds files which i''m able to load from the disk directly into my opengl application. Some of these files are copyrighted so i can''t release them, nor i can makeintoresource, otherwise the .exe files becomes too huge. Is there a way to compact these files (maybe zipping them with a password) and unpacking them at runtime ? Thanks glHorizon_Project

www.web-discovery.net

Share this post


Link to post
Share on other sites
How about encrypting the original .3ds file? That way you can safely distribute the files

Share this post


Link to post
Share on other sites
Also try this ...

http://romka.demonews.com/opengl/demos/texture_eng.htm

it''s a demo of reading data (in this case textures) from a zip file

Share this post


Link to post
Share on other sites
what a good question! there are at least a million different encryption methods out there!

an example of the kinds of thing you can do ...

for every byte stored in the .3ds file, try reversing the bit order (ie NOT byte). and when you read it back in, just reverse them again to restore the oginal data.

here''s an example ...

the byte representation

1,2,3,4,5

when reversed would be

254,253,252,251,250

that maybe a very simplistic example ... there are many devious ways of changing data!

Share this post


Link to post
Share on other sites