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