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
106 lines
1.8 KiB
Plaintext
106 lines
1.8 KiB
Plaintext
v -0.375 1.375 -0.375
|
|
v -0.375 1.375 -0.5
|
|
v 0.375 1.375 -0.5
|
|
v 0.375 1.375 -0.375
|
|
v -0.5 -0.5 -0.375
|
|
v 0.5 -0.5 -0.375
|
|
v -0.375 0.375 -0.375
|
|
v 0.375 0.375 -0.375
|
|
v 0.5 1.5 -0.375
|
|
v -0.5 1.5 -0.375
|
|
v 0.5 -0.5 -0.5
|
|
v -0.5 -0.5 -0.5
|
|
v -0.5 1.5 -0.5
|
|
v 0.5 1.5 -0.5
|
|
v 0.375 0.375 -0.5
|
|
v -0.375 0.375 -0.5
|
|
v -0.375 1.375 -0.437
|
|
v 0.375 1.375 -0.437
|
|
v 0.375 0.375 -0.437
|
|
v -0.375 0.375 -0.437
|
|
v 0.375 1.375 -0.436
|
|
v -0.375 1.375 -0.436
|
|
v -0.375 0.375 -0.436
|
|
v 0.375 0.375 -0.436
|
|
vt 1 0.938
|
|
vt 0.947 0.938
|
|
vt 0.947 0.563
|
|
vt 1 0.563
|
|
vt 0.789 0.438
|
|
vt 0.474 0.438
|
|
vt 0.421 0
|
|
vt 0.842 0
|
|
vt 0.368 0.438
|
|
vt 0.053 0.438
|
|
vt 0 0
|
|
vt 0.421 0
|
|
vt 0.053 0.938
|
|
vt 0 1
|
|
vt 0.421 1
|
|
vt 0.368 0.938
|
|
vt 0.789 0.938
|
|
vt 0.842 1
|
|
vt 0.421 1
|
|
vt 0.474 0.938
|
|
vt 1 1
|
|
vt 0.947 1
|
|
vt 0.947 0.5
|
|
vt 1 0.5
|
|
vt 1 0
|
|
vt 1 0.5
|
|
vt 0.947 0.5
|
|
vt 0.947 0
|
|
vt 0.842 1
|
|
vt 0.842 0
|
|
vt 0.895 0
|
|
vt 0.895 1
|
|
vt 0.947 0
|
|
vt 0.947 1
|
|
vt 0.895 1
|
|
vt 0.895 0
|
|
vt 1 0.063
|
|
vt 1 0.438
|
|
vt 0.947 0.438
|
|
vt 0.947 0.063
|
|
vt 0.895 0.938
|
|
vt 0.842 0.938
|
|
vt 0.842 0.438
|
|
vt 0.895 0.438
|
|
vt 0.947 0.938
|
|
vt 0.895 0.938
|
|
vt 0.895 0.438
|
|
vt 0.947 0.438
|
|
vt 0.789 0.938
|
|
vt 0.474 0.938
|
|
vt 0.474 0.438
|
|
vt 0.789 0.438
|
|
vt 0.368 0.938
|
|
vt 0.053 0.938
|
|
vt 0.053 0.438
|
|
vt 0.368 0.438
|
|
vn 0 -1 0
|
|
vn 0 0 -1
|
|
vn 0 0 1
|
|
vn 0 1 0
|
|
vn 1 0 0
|
|
vn -1 0 0
|
|
s off
|
|
f 1/1/1 2/2/1 3/3/1 4/4/1
|
|
f 16/5/2 15/6/2 11/7/2 12/8/2
|
|
f 8/9/3 7/10/3 5/11/3 6/12/3
|
|
f 5/11/3 7/10/3 1/13/3 10/14/3
|
|
f 6/12/3 9/15/3 4/16/3 8/9/3
|
|
f 9/15/3 10/14/3 1/13/3 4/16/3
|
|
f 2/17/2 16/5/2 12/8/2 13/18/2
|
|
f 14/19/2 3/20/2 2/17/2 13/18/2
|
|
f 3/20/2 14/19/2 11/7/2 15/6/2
|
|
f 5/21/1 12/22/1 11/23/1 6/24/1
|
|
f 10/25/4 9/26/4 14/27/4 13/28/4
|
|
f 9/29/5 6/30/5 11/31/5 14/32/5
|
|
f 5/33/6 10/34/6 13/35/6 12/36/6
|
|
f 7/37/4 8/38/4 15/39/4 16/40/4
|
|
f 2/41/5 1/42/5 7/43/5 16/44/5
|
|
f 4/45/6 3/46/6 15/47/6 8/48/6
|
|
f 17/49/2 18/50/2 19/51/2 20/52/2
|
|
f 21/53/3 22/54/3 23/55/3 24/56/3
|