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
122 lines
2.0 KiB
Plaintext
122 lines
2.0 KiB
Plaintext
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.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.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.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.469 -0.5 -0.5
|
|
v 0.469 -0.5 -0.5
|
|
v -0.5 1.484 -0.5
|
|
v 0.5 1.484 -0.5
|
|
v 0.5 1.484 -0.375
|
|
v -0.5 1.484 -0.375
|
|
v -0.5 -0.484 -0.5
|
|
v 0.5 -0.484 -0.5
|
|
v 0.5 -0.484 -0.375
|
|
v -0.5 -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
|
|
v 0.484 1.484 -0.375
|
|
v 0.484 -0.484 -0.375
|
|
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 25/9/1 21/10/1 33/11/1 34/12/1
|
|
f 23/13/2 19/14/2 27/15/2 28/16/2
|
|
f 31/17/3 32/18/3 34/19/3 33/20/3
|
|
f 30/21/1 29/22/1 22/23/1 26/24/1
|
|
f 32/25/2 31/26/2 20/27/2 24/28/2
|
|
f 19/29/4 20/30/4 21/31/4 22/32/4
|
|
f 6/33/1 22/23/1 21/10/1 5/34/1
|
|
f 2/35/2 20/27/2 19/14/2 1/36/2
|
|
f 24/37/5 23/38/5 26/39/5 25/40/5
|
|
f 7/41/1 25/9/1 26/24/1 8/42/1
|
|
f 3/43/2 23/13/2 24/28/2 4/44/2
|
|
f 28/45/6 27/46/6 29/47/6 30/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
|