mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-09-19 18:00:26 +02:00
f9ca183f2a
This commit performs both lossless and lossy compression on every .obj and .png in homedecor. The .png files were all 100% losslessly compressed using ect.exe and optipng.exe (more details below) at maximum settings. The .obj files were lossy-compressed so that comments were removed, trailing 000's were removed and all numbers rounded to 3 decimal places max. Blender exports at 6 decimal places but for minetest, 3 decimal places is the absolute maximum a person with anything under a 256K screen will ever need. ## Results ``` Original entire modpack size: 6343.5 KB New entire modpack size: 5312.2 KB Total Reduction: 1031.3 KB (16.3% less) ``` Please note that actual media size is likely more like 4,500 KB so media reduction is more around 20-25%. ## Details / What actions were actually performed Used these programs: https://github.com/ExeVirus/Compress-Obj https://sourceforge.net/projects/optipng/ https://github.com/fhanau/Efficient-Compression-Tool Ran this command on every .obj: (fast) ``` luajit.exe compress.lua -f <file> -precision 3 ``` Ran these commands on every .png: (slow) ``` ect.exe -9 -strip --allfilters-b <file> optipng.exe -o7 -strip all -clobber <file> ``` Note that for future compression, I recommend only using optipng.exe instead of both. ECT can get better results but it takes a LOT longer and only ever saves another 1-2% of the file size. Not worth an extra 10-20 seconds per texture file in my opinion. ## Time spent Roughly 2 Hours from start to finish + commit + PR
66 lines
1.2 KiB
Plaintext
66 lines
1.2 KiB
Plaintext
v -0.25 -0.5 -0.5
|
|
v -0.25 -0.375 -0.5
|
|
v 0.25 -0.375 -0.5
|
|
v 0.25 -0.5 -0.5
|
|
v -0.25 -0.5 0.188
|
|
v -0.25 -0.375 0.188
|
|
v 0.25 -0.375 0.188
|
|
v 0.25 -0.5 0.188
|
|
v 0.188 -0.5 0.312
|
|
v 0.188 -0.25 0.312
|
|
v 0.188 -0.25 0.062
|
|
v 0.188 -0.5 0.062
|
|
v 0.188 -0.25 0.312
|
|
v 0.188 -0.5 0.312
|
|
v -0.187 -0.25 0.312
|
|
v -0.187 -0.5 0.312
|
|
v 0 -0.5 0.312
|
|
v 0 -0.25 0.312
|
|
v -0.187 -0.5 0.312
|
|
v -0.187 -0.25 0.312
|
|
v 0 -0.5 0.062
|
|
v 0 -0.25 0.062
|
|
v 0 -0.25 0.312
|
|
v 0 -0.5 0.312
|
|
v -0.187 -0.25 0.062
|
|
v -0.187 -0.5 0.062
|
|
vt 0.781 0.844
|
|
vt 0.656 0.844
|
|
vt 0.656 0.156
|
|
vt 0.781 0.156
|
|
vt 0.156 0.844
|
|
vt 0.156 0.156
|
|
vt 0.031 0.844
|
|
vt 0.031 0.156
|
|
vt 0.969 0.656
|
|
vt 0.813 0.656
|
|
vt 0.813 0.469
|
|
vt 0.969 0.469
|
|
vt 0.656 0.031
|
|
vt 0.156 0.031
|
|
vt 0.969 1
|
|
vt 0.719 1
|
|
vt 0.719 0.75
|
|
vt 0.969 0.75
|
|
vt 0.656 0.969
|
|
vt 0.156 0.969
|
|
vn -1 0 0
|
|
vn 0 1 0
|
|
vn 1 0 0
|
|
vn 0 -1 0
|
|
vn 0 0 -1
|
|
vn 0 0 1
|
|
s off
|
|
f 5/1/1 6/2/1 2/3/1 1/4/1
|
|
f 6/2/2 7/5/2 3/6/2 2/3/2
|
|
f 7/5/3 8/7/3 4/8/3 3/6/3
|
|
f 8/9/4 5/10/4 1/11/4 4/12/4
|
|
f 1/13/5 2/3/5 3/6/5 4/14/5
|
|
f 13/15/3 14/16/3 12/17/3 11/18/3
|
|
f 24/16/1 23/15/1 22/18/1 21/17/1
|
|
f 9/16/1 10/15/1 11/18/1 12/17/1
|
|
f 15/15/3 16/16/3 26/17/3 25/18/3
|
|
f 18/15/3 17/16/3 21/17/3 22/18/3
|
|
f 19/16/1 20/15/1 25/18/1 26/17/1
|
|
f 5/19/6 8/20/6 7/5/6 6/2/6
|