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
109 lines
1.8 KiB
Plaintext
109 lines
1.8 KiB
Plaintext
v -0.5 -0.5 0.5
|
|
v -0.5 -0.5 0.438
|
|
v 0.5 -0.5 0.438
|
|
v 0.5 -0.5 0.5
|
|
v -0.5 0.5 0.5
|
|
v -0.5 0.5 0.438
|
|
v 0.5 0.5 0.438
|
|
v 0.5 0.5 0.5
|
|
v -0.5 0.469 0.438
|
|
v 0.5 0.469 0.438
|
|
v -0.5 -0.469 0.438
|
|
v 0.5 -0.469 0.438
|
|
v -0.469 0.469 0.438
|
|
v -0.469 -0.469 0.438
|
|
v 0.469 0.469 0.438
|
|
v 0.469 -0.469 0.438
|
|
v -0.469 0.469 0.469
|
|
v -0.469 -0.469 0.469
|
|
v 0.469 0.469 0.469
|
|
v 0.469 -0.469 0.469
|
|
v -0.469 0.469 0.5
|
|
v -0.469 -0.469 0.5
|
|
v 0.469 0.469 0.5
|
|
v 0.469 -0.469 0.5
|
|
v -0.5 -0.469 0.5
|
|
v 0.5 -0.469 0.5
|
|
v -0.5 0.469 0.5
|
|
v 0.5 0.469 0.5
|
|
vt 0.25 1
|
|
vt 0.5 1
|
|
vt 0.5 -3
|
|
vt 0.25 -3
|
|
vt 0 1
|
|
vt 0 -3
|
|
vt 0.25 1.063
|
|
vt 0.5 1.063
|
|
vt 0.5 -2.937
|
|
vt 0.25 -2.937
|
|
vt 0 -2.937
|
|
vt 0 1.063
|
|
vt 0.375 1
|
|
vt 0.375 -3
|
|
vt 0.125 1
|
|
vt 0.125 -3
|
|
vt 0.25 0.875
|
|
vt 0.25 -2.875
|
|
vt 0.375 -2.875
|
|
vt 0.375 0.875
|
|
vt 0.125 0.875
|
|
vt 0 0.875
|
|
vt 0 -2.875
|
|
vt 0.125 -2.875
|
|
vt 0.75 -2.875
|
|
vt 0.5 -2.875
|
|
vt 0.5 0.875
|
|
vt 0.75 0.875
|
|
vt 1 -2.875
|
|
vt 1 0.875
|
|
vt 1 -2.812
|
|
vt 1 0.938
|
|
vt 0.75 0.938
|
|
vt 0.75 -2.812
|
|
vt 0.625 -3
|
|
vt 0.625 1
|
|
vt 0.75 1
|
|
vt 0.75 -3
|
|
vt 1 1
|
|
vt 1 -3
|
|
vt 0.875 -3
|
|
vt 0.875 1
|
|
vt 0.5 -2.812
|
|
vt 0.5 0.938
|
|
vt 0.875 0.875
|
|
vt 0.875 -2.875
|
|
vt 0.625 -2.875
|
|
vt 0.625 0.875
|
|
vt 0.031 0.031
|
|
vt 0.969 0.031
|
|
vt 0.969 0.969
|
|
vt 0.031 0.969
|
|
vn -1 0 0
|
|
vn 1 0 0
|
|
vn 0 -1 0
|
|
vn 0 1 0
|
|
vn 0 0 -1
|
|
vn 0 0 1
|
|
g 1
|
|
s off
|
|
f 5/1/1 6/2/1 2/3/1 1/4/1
|
|
f 7/1/2 8/5/2 4/6/2 3/4/2
|
|
f 1/7/3 2/8/3 3/9/3 4/10/3
|
|
f 8/11/4 7/10/4 6/7/4 5/12/4
|
|
f 6/3/5 7/2/5 10/13/5 9/14/5
|
|
f 3/15/5 2/16/5 11/4/5 12/1/5
|
|
f 13/17/5 14/18/5 11/19/5 9/20/5
|
|
f 15/21/5 10/22/5 12/23/5 16/24/5
|
|
f 16/25/1 20/26/1 19/27/1 15/28/1
|
|
f 14/29/2 13/30/2 17/28/2 18/25/2
|
|
f 16/31/4 14/32/4 18/33/4 20/34/4
|
|
f 1/35/6 4/36/6 26/37/6 25/38/6
|
|
f 8/39/6 5/40/6 27/41/6 28/42/6
|
|
f 19/43/3 17/44/3 13/33/3 15/34/3
|
|
f 22/25/6 21/28/6 27/45/6 25/46/6
|
|
f 24/47/6 26/26/6 28/27/6 23/48/6
|
|
g 2
|
|
f 22/49/6 24/50/6 23/51/6 21/52/6
|
|
g 3
|
|
f 18/50/5 17/51/5 19/52/5 20/49/5
|