HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

MDX Squisher

05-20-2006, 04:20 PM#1
Guesst
This program makes Warcraft III MDX files, once saved in
the MPQ, 60 to 70% of their original size. To use it,
just run the program, click the button, and choose your
file.

Repeatedly using this program on an MDX and then editing
it again may result in a loss of quality, so you may want
to avoid overwriting your original files.

The thumbnails are examples of how it affects file size and a side-by-side comparison of a squished and unsquished knight, showing that you can't see a difference.
Attached Images
File type: gifmdxsquish.gif (578 bytes)
File type: gifmdxsquish_files.gif (2.0 KB)
File type: jpgmdxsquish_ss.jpg (55.3 KB)
Attached Files
File type: zipMDXSquisher.zip (78.1 KB)
File type: zipMdxSquish_win32.zip (3.7 KB)
05-20-2006, 04:29 PM#2
Tim.
So it merges nearby verts or something? How exactly does it 'squish' the file to conserve space?
05-20-2006, 04:30 PM#3
emjlr3
has this been tested at all and found virus free/working, this could be useful
05-20-2006, 04:56 PM#4
Guesst
It zeros the least useful bytes, and then MPQ compression turns that into a lower file size. A lot of data (normals, for example) are stored with a lot more detail than you would ever see. The program zeros the two lowest-value bytes for a bunch of floats. Specificially, it goes after vertices, normals, tvertices, movement, rotation, and scaling.
05-20-2006, 05:18 PM#5
Rao Dao Zao
Sounds good; usually I snap to grid anyway on the geosets, but animation data could do with it in a lot of cases. Will have to examine this.

EDIT: Preliminary tests show no apparent loss of quality, so there's no reason not to approve this.
05-20-2006, 05:31 PM#6
Tim.
In that case I approve it on behalf of the art section, however please make sure to include the following so that it meets the tool requirements:
Quote:
Originally Posted by Resource Submission Rules: Tools
* An included readme file that at least contains release date, program version, author, contact information (eg. e-mail or a link to the wc3c forum thread)
* Short description what the tool does
* Note about required files in the description and/or readme if any (eg. .NET framework, Visual Basic Runtime Files ...)
* Note about the required OS if not Windows 2k/XP
* An icon attached to the thread - if no icon is provided, the icon of the executable will be extracted and used
* Tools that contain viruses, too many bugs or generally are not useful will not be accepted
Once it does please let us know.
05-20-2006, 05:41 PM#7
Guesst
It does.
05-20-2006, 06:06 PM#8
Tim.
Great, off she goes, then!
05-21-2006, 12:03 AM#9
Jazradel
This tool has incredible potential. I'm gonna have to fun a few mroe tests to see how well it works, but it's looking good so far.
05-21-2006, 01:04 AM#10
Vexorian
Mind sharing sources?
05-21-2006, 01:28 AM#11
PipeDream
Clever hack, Guesst.
05-21-2006, 01:32 AM#12
emjlr3
wow this could significantly reduce the size of my map, I am excited !
05-21-2006, 02:05 AM#13
Guesst
Quote:
Originally Posted by Vexorian
Mind sharing sources?
Ok, here it is.
Attached Files
File type: zipMdxSquish_win32.zip (3.7 KB)
05-21-2006, 07:21 AM#14
BertTheJasser
Very good! +Rep
05-21-2006, 08:45 AM#15
nooK
Tested it on Black_Stan`s models and it screwed up some small parts of them.
Don´t know if it works better on other models.

Nevertheless good tool