OT: unpacking 3ds files

Started by
3 comments, last by penetrator 22 years, 5 months ago
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

Advertisement
How about encrypting the original .3ds file? That way you can safely distribute the files
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
how can i encrypt files ?

glHorizon_Project



www.web-discovery.net


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!

This topic is closed to new replies.

Advertisement