Archived

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

OT: unpacking 3ds files

This topic is 5888 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
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