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
150 lines
2.6 KiB
Plaintext
150 lines
2.6 KiB
Plaintext
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.625 -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.625 -0.5
|
|
v 0.313 0.688 -0.453
|
|
v -0.312 1.313 -0.453
|
|
v -0.375 1.375 -0.375
|
|
v -0.375 1.375 -0.5
|
|
v 0.375 1.375 -0.5
|
|
v 0.313 1.313 -0.422
|
|
v 0.313 1.313 -0.453
|
|
v -0.375 0.625 -0.375
|
|
v -0.312 0.688 -0.453
|
|
v -0.312 0.688 -0.422
|
|
v 0.375 0.625 -0.5
|
|
v 0.313 0.688 -0.422
|
|
v -0.312 1.313 -0.422
|
|
v -0.312 0.688 -0.436
|
|
v 0.313 1.313 -0.436
|
|
v -0.312 1.313 -0.436
|
|
v 0.313 0.688 -0.436
|
|
v -0.312 0.688 -0.437
|
|
v 0.313 1.313 -0.437
|
|
v -0.312 1.313 -0.437
|
|
v 0.313 0.688 -0.437
|
|
vt 0.789 0.563
|
|
vt 0.474 0.563
|
|
vt 0.421 0
|
|
vt 0.842 0
|
|
vt 0.368 0.563
|
|
vt 0.053 0.563
|
|
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.906
|
|
vt 0.974 0.906
|
|
vt 0.974 0.594
|
|
vt 1 0.594
|
|
vt 0.763 0.906
|
|
vt 0.5 0.906
|
|
vt 0.868 0.906
|
|
vt 0.868 0.594
|
|
vt 0.895 0.594
|
|
vt 0.895 0.906
|
|
vt 0.5 0.594
|
|
vt 0.763 0.594
|
|
vt 0.947 0.938
|
|
vt 0.947 0.938
|
|
vt 0.895 0.938
|
|
vt 0.895 0.938
|
|
vt 0.947 0.938
|
|
vt 0.947 0.938
|
|
vt 0.895 0.938
|
|
vt 0.895 0.938
|
|
vt 1 0.406
|
|
vt 0.974 0.406
|
|
vt 0.974 0.094
|
|
vt 1 0.094
|
|
vt 0.079 0.594
|
|
vt 0.079 0.906
|
|
vt 0.342 0.594
|
|
vt 0.342 0.906
|
|
vt 0.079 0.906
|
|
vt 0.079 0.594
|
|
vt 0.342 0.594
|
|
vt 0.342 0.906
|
|
vt 0.5 0.906
|
|
vt 0.5 0.594
|
|
vt 0.763 0.594
|
|
vt 0.763 0.906
|
|
vt 0.947 0.906
|
|
vt 0.921 0.906
|
|
vt 0.921 0.594
|
|
vt 0.947 0.594
|
|
vn 0 0 -1
|
|
vn 0 0 1
|
|
vn 0 -1 0
|
|
vn 0 1 0
|
|
vn 1 0 0
|
|
vn -1 0 0
|
|
vn 0 -0.6 -0.8
|
|
vn 0 0.6 -0.8
|
|
vn 0.707 0.707 0
|
|
vn 0.6 0 -0.8
|
|
vn -0.707 0.707 0
|
|
vn 0.6 0 0.8
|
|
vn 0 0.6 0.8
|
|
vn -0.6 0 -0.8
|
|
vn -0.6 0 0.8
|
|
vn 0 -0.6 0.8
|
|
s off
|
|
f 11/1/1 22/2/1 7/3/1 8/4/1
|
|
f 4/5/2 19/6/2 2/7/2 3/8/2
|
|
f 2/7/2 19/6/2 14/9/2 6/10/2
|
|
f 3/8/2 5/11/2 1/12/2 4/5/2
|
|
f 5/11/2 6/10/2 14/9/2 1/12/2
|
|
f 15/13/1 11/1/1 8/4/1 9/14/1
|
|
f 10/15/1 16/16/1 15/13/1 9/14/1
|
|
f 16/16/1 10/15/1 7/3/1 22/2/1
|
|
f 2/17/3 8/18/3 7/19/3 3/20/3
|
|
f 6/21/4 5/22/4 10/23/4 9/24/4
|
|
f 5/25/5 3/26/5 7/27/5 10/28/5
|
|
f 2/29/6 6/30/6 9/31/6 8/32/6
|
|
f 24/33/3 13/34/3 18/35/3 17/36/3
|
|
f 13/37/7 15/13/7 16/16/7 18/38/7
|
|
f 24/39/5 21/40/5 20/41/5 13/42/5
|
|
f 12/43/8 22/2/8 11/1/8 20/44/8
|
|
f 14/45/9 24/46/9 13/47/9 15/48/9
|
|
f 20/44/10 11/1/10 15/13/10 13/37/10
|
|
f 17/49/11 1/50/11 16/51/11 18/52/11
|
|
f 23/53/4 12/54/4 20/55/4 21/56/4
|
|
f 14/9/12 19/6/12 21/57/12 24/58/12
|
|
f 21/57/13 19/6/13 4/5/13 23/59/13
|
|
f 16/16/14 22/2/14 12/43/14 18/38/14
|
|
f 23/59/15 4/5/15 1/12/15 17/60/15
|
|
f 14/9/16 24/58/16 17/60/16 1/12/16
|
|
f 27/61/2 25/62/2 28/63/2 26/64/2
|
|
f 30/65/1 32/66/1 29/67/1 31/68/1
|
|
f 17/69/6 18/70/6 12/71/6 23/72/6
|