mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-09-27 13:50:19 +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
98 lines
1.8 KiB
Plaintext
98 lines
1.8 KiB
Plaintext
v -0.312 -0.187 0.5
|
|
v 0.313 -0.187 0.5
|
|
v -0.312 0.5 0.5
|
|
v 0.313 0.5 0.5
|
|
v -0.312 0.5 0.375
|
|
v -0.312 -0.187 0.375
|
|
v 0.313 0.5 0.375
|
|
v 0.313 -0.187 0.375
|
|
v -0.312 -0.187 -0.25
|
|
v -0.312 0.5 -0.25
|
|
v -0.312 0.438 0.375
|
|
v -0.312 0.438 -0.25
|
|
v -0.312 -0.125 0.375
|
|
v -0.312 -0.125 -0.25
|
|
v -0.312 0.438 0.313
|
|
v -0.312 -0.125 0.313
|
|
v -0.312 0.438 -0.187
|
|
v -0.312 -0.125 -0.187
|
|
v -0.25 0.5 0.375
|
|
v -0.25 -0.187 0.375
|
|
v -0.25 0.5 -0.25
|
|
v -0.25 -0.187 -0.25
|
|
v 0.25 0.438 0.375
|
|
v 0.25 -0.125 0.375
|
|
v -0.25 0.125 0.375
|
|
v 0.25 0.125 0.375
|
|
v 0.25 0.188 0.375
|
|
v -0.25 0.188 0.375
|
|
v -0.25 -0.125 0.375
|
|
v -0.25 0.438 0.375
|
|
v 0.313 0.438 0.375
|
|
v 0.313 -0.125 0.375
|
|
vt 0.875 0.875
|
|
vt 0.875 1
|
|
vt 0.188 1
|
|
vt 0.188 0.875
|
|
vt 0.813 1
|
|
vt 0.188 0.313
|
|
vt 0.813 0.313
|
|
vt 0.813 0.375
|
|
vt 0.188 0.375
|
|
vt 0.188 0.938
|
|
vt 0.813 0.938
|
|
vt 0.25 0.125
|
|
vt 0.25 0.063
|
|
vt 0.875 0.063
|
|
vt 0.875 0.125
|
|
vt 0.813 0.813
|
|
vt 0.188 0.813
|
|
vt 0.25 0.25
|
|
vt 0.875 0.25
|
|
vt 0.875 0.563
|
|
vt 0.875 0.688
|
|
vt 0.188 0.688
|
|
vt 0.188 0.563
|
|
vt 0.75 0.938
|
|
vt 0.75 0.375
|
|
vt 0.25 0.938
|
|
vt 0.25 0.375
|
|
vt 0.875 0.75
|
|
vt 0.188 0.75
|
|
vt 0.75 0.313
|
|
vt 0.75 1
|
|
vt 0.25 0.688
|
|
vt 0.25 0.625
|
|
vt 0.75 0.625
|
|
vt 0.75 0.688
|
|
vn 1 0 0
|
|
vn 0 0 1
|
|
vn -1 0 0
|
|
vn 0 1 0
|
|
vn 0 -1 0
|
|
vn 0 0 -1
|
|
g 1
|
|
s off
|
|
f 7/1/1 4/2/1 2/3/1 8/4/1
|
|
f 4/5/2 3/3/2 1/6/2 2/7/2
|
|
f 9/6/3 6/7/3 13/8/3 14/9/3
|
|
f 21/3/4 10/10/4 5/11/4 19/5/4
|
|
f 20/12/5 6/13/5 9/14/5 22/15/5
|
|
f 5/5/3 10/3/3 12/10/3 11/11/3
|
|
f 4/16/4 7/11/4 5/10/4 3/17/4
|
|
f 1/18/5 6/12/5 8/15/5 2/19/5
|
|
f 3/20/3 5/21/3 6/22/3 1/23/3
|
|
f 22/7/1 21/5/1 19/3/1 20/6/1
|
|
f 15/24/3 16/25/3 13/8/3 11/11/3
|
|
f 17/26/3 12/10/3 14/9/3 18/27/3
|
|
f 10/21/6 21/28/6 22/29/6 9/22/6
|
|
f 8/6/6 20/30/6 29/25/6 32/9/6
|
|
f 19/31/6 7/3/6 31/10/6 30/24/6
|
|
f 23/26/6 31/10/6 32/9/6 24/27/6
|
|
f 27/32/6 26/33/6 25/34/6 28/35/6
|
|
g 2
|
|
f 16/25/3 15/24/3 17/26/3 18/27/3
|
|
g 3
|
|
f 23/26/6 27/32/6 28/35/6 30/24/6
|
|
f 25/34/6 26/33/6 24/27/6 29/25/6
|