mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-09-26 05:10:22 +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
121 lines
2.0 KiB
Plaintext
121 lines
2.0 KiB
Plaintext
v 0.5 1.5 -0.375
|
|
v -0.5 1.5 -0.375
|
|
v 0.5 -0.5 -0.375
|
|
v -0.5 -0.5 -0.375
|
|
v -0.5 1.5 -0.5
|
|
v 0.5 1.5 -0.5
|
|
v -0.5 -0.5 -0.5
|
|
v 0.5 -0.5 -0.5
|
|
v 0.484 1.484 -0.437
|
|
v -0.484 1.484 -0.437
|
|
v 0.484 -0.484 -0.437
|
|
v -0.484 -0.484 -0.437
|
|
v -0.484 1.484 -0.438
|
|
v 0.484 1.484 -0.438
|
|
v -0.484 -0.484 -0.438
|
|
v 0.484 -0.484 -0.438
|
|
v 0.469 -0.5 -0.375
|
|
v 0.5 1.484 -0.375
|
|
v -0.5 1.484 -0.375
|
|
v -0.5 1.484 -0.5
|
|
v 0.5 1.484 -0.5
|
|
v 0.5 -0.484 -0.375
|
|
v -0.5 -0.484 -0.375
|
|
v -0.5 -0.484 -0.5
|
|
v 0.5 -0.484 -0.5
|
|
v 0.484 1.484 -0.375
|
|
v 0.484 -0.484 -0.375
|
|
v 0.484 1.484 -0.5
|
|
v 0.484 -0.484 -0.5
|
|
v -0.484 1.484 -0.375
|
|
v -0.484 -0.484 -0.375
|
|
v -0.484 1.484 -0.5
|
|
v -0.484 -0.484 -0.5
|
|
vt 0.007 0.008
|
|
vt 0.414 0.008
|
|
vt 0.414 0.992
|
|
vt 0.007 0.992
|
|
vt 0.428 0.008
|
|
vt 0.836 0.008
|
|
vt 0.836 0.992
|
|
vt 0.428 0.992
|
|
vt 0.421 0.008
|
|
vt 0.421 0.992
|
|
vt 0.414 0.992
|
|
vt 0.414 0.008
|
|
vt 0.842 0.008
|
|
vt 0.842 0.992
|
|
vt 0.836 0.992
|
|
vt 0.836 0.008
|
|
vt 0.842 0.992
|
|
vt 0.842 0.008
|
|
vt 0.895 0.008
|
|
vt 0.895 0.992
|
|
vt 0.007 0.008
|
|
vt 0.007 0.992
|
|
vt 0 0.992
|
|
vt 0 0.008
|
|
vt 0.428 0.008
|
|
vt 0.428 0.992
|
|
vt 0.421 0.992
|
|
vt 0.421 0.008
|
|
vt 0.947 1
|
|
vt 0.947 0.5
|
|
vt 1 0.5
|
|
vt 1 1
|
|
vt 0 1
|
|
vt 0.421 1
|
|
vt 0.421 1
|
|
vt 0.842 1
|
|
vt 0.947 0.5
|
|
vt 0.947 0
|
|
vt 1 0
|
|
vt 1 0.5
|
|
vt 0.421 0
|
|
vt 0 0
|
|
vt 0.842 0
|
|
vt 0.421 0
|
|
vt 0.947 0.008
|
|
vt 0.947 0.992
|
|
vt 0.895 0.992
|
|
vt 0.895 0.008
|
|
vt 0.947 0
|
|
vt 0.947 1
|
|
vt 0.895 1
|
|
vt 0.895 0
|
|
vt 0.947 0
|
|
vt 1 0
|
|
vt 1 0.5
|
|
vt 0.947 0.5
|
|
vt 0.895 0
|
|
vt 0.895 1
|
|
vt 0.947 0.5
|
|
vt 1 0.5
|
|
vt 1 1
|
|
vt 0.947 1
|
|
vn 0 0 -1
|
|
vn 0 0 1
|
|
vn 1 0 0
|
|
vn 0 -1 0
|
|
vn 0 1 0
|
|
vn -1 0 0
|
|
s off
|
|
f 16/1/1 15/2/1 13/3/1 14/4/1
|
|
f 12/5/2 11/6/2 9/7/2 10/8/2
|
|
f 24/9/1 20/10/1 32/11/1 33/12/1
|
|
f 22/13/2 18/14/2 26/15/2 27/16/2
|
|
f 30/17/3 31/18/3 33/19/3 32/20/3
|
|
f 29/21/1 28/22/1 21/23/1 25/24/1
|
|
f 31/25/2 30/26/2 19/27/2 23/28/2
|
|
f 18/29/4 19/30/4 20/31/4 21/32/4
|
|
f 6/33/1 21/23/1 20/10/1 5/34/1
|
|
f 2/35/2 19/27/2 18/14/2 1/36/2
|
|
f 23/37/5 22/38/5 25/39/5 24/40/5
|
|
f 7/41/1 24/9/1 25/24/1 8/42/1
|
|
f 3/43/2 22/13/2 23/28/2 4/44/2
|
|
f 27/45/6 26/46/6 28/47/6 29/48/6
|
|
f 4/49/6 2/50/6 5/51/6 7/52/6
|
|
f 1/53/5 6/54/5 5/55/5 2/56/5
|
|
f 1/36/3 3/43/3 8/57/3 6/58/3
|
|
f 4/59/4 7/60/4 8/61/4 3/62/4
|