Alhexx' Heavy Metal FAKK2 TEX Format Description 1.0 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= First, I've got to mention that this description is based on the source code from the FAKKTools by Ritual Entertainment, Inc. (qfiles.h) If you want to have the C++-Types, download FAKKTools. (e.g. from http://www.fileplanet.com) (BTW: This is going to be one of my shortest descs...) -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= This format is very simple. Let's just take a look at the header: struct ftx_s { int width; int height; int has_alpha; }; As you can see, it only consists of 12 Bytes. A 4-Byte Int telling you the width and one telling you the height. Usually the width is the same as the height. has_alpha is a 4-Byte Integer telling you if the Texture uses the Alpha-Channel (if not, the alpha channel is set to 0xFF) The Pixel Data itself is stored as a 32Bit RGBQuad. Oh, and if I can remember well, you'll have to mirror the image horizontally... or not? Don't remember, sorry. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ~~ Greetings Fly Out To: ~~ Darkness Ficedula Kaddy #17 Kaoru S. Night Mirex Phaeron Qhimm Sephiroth 3D ShinRa Inc. The SaiNt ... and everyone I've forgotten! Visit or contact me: -------------------- Home : http://www.alhexx.com Forum : http://forums.alhexx.com Mail : alhexx@alhexx.com - Alhexx 16:49 2002-11-16