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
166 lines
3.2 KiB
Plaintext
166 lines
3.2 KiB
Plaintext
v -0.5 -0.5 0.5
|
|
v -0.5 -0.5 -0.437
|
|
v 0.5 -0.5 -0.437
|
|
v 0.5 -0.5 0.5
|
|
v -0.5 1.5 0.5
|
|
v -0.5 1.5 -0.437
|
|
v 0.5 1.5 -0.437
|
|
v 0.5 1.5 0.5
|
|
v -0.437 0.25 -0.437
|
|
v -0.437 0.25 -0.5
|
|
v 0.438 0.25 -0.5
|
|
v 0.438 0.25 -0.437
|
|
v -0.437 0.5 -0.437
|
|
v -0.437 0.5 -0.5
|
|
v 0.438 0.5 -0.5
|
|
v 0.438 0.5 -0.437
|
|
v -0.437 -0.062 -0.437
|
|
v -0.437 -0.062 -0.5
|
|
v 0.438 -0.062 -0.5
|
|
v 0.438 -0.062 -0.437
|
|
v -0.437 0.188 -0.437
|
|
v -0.437 0.188 -0.5
|
|
v 0.438 0.188 -0.5
|
|
v 0.438 0.188 -0.437
|
|
v -0.437 -0.375 -0.437
|
|
v -0.437 -0.375 -0.5
|
|
v 0.438 -0.375 -0.5
|
|
v 0.438 -0.375 -0.437
|
|
v -0.437 -0.125 -0.437
|
|
v -0.437 -0.125 -0.5
|
|
v 0.438 -0.125 -0.5
|
|
v 0.438 -0.125 -0.437
|
|
v 0.063 0.563 -0.437
|
|
v 0.063 0.563 -0.5
|
|
v 0.438 0.563 -0.5
|
|
v 0.438 0.563 -0.437
|
|
v 0.063 1.438 -0.437
|
|
v 0.063 1.438 -0.5
|
|
v 0.438 1.438 -0.5
|
|
v 0.438 1.438 -0.437
|
|
v -0.437 0.563 -0.437
|
|
v -0.437 0.563 -0.5
|
|
v -0.062 0.563 -0.5
|
|
v -0.062 0.563 -0.437
|
|
v -0.437 1.438 -0.437
|
|
v -0.437 1.438 -0.5
|
|
v -0.062 1.438 -0.5
|
|
v -0.062 1.438 -0.437
|
|
v -0.5 1.438 -0.437
|
|
v 0.5 1.438 -0.437
|
|
v -0.5 -0.375 -0.437
|
|
v 0.5 -0.375 -0.437
|
|
v -0.5 0.5 0.5
|
|
v -0.5 0.5 -0.437
|
|
v 0.5 0.5 -0.437
|
|
v 0.5 0.5 0.5
|
|
vt 1 0
|
|
vt 1 0.938
|
|
vt 0 0.938
|
|
vt 0 0
|
|
vt 0 1
|
|
vt 0.063 0
|
|
vt 0.063 1
|
|
vt 1 1
|
|
vt 0.875 1
|
|
vt 0.875 0
|
|
vt 0.563 0.938
|
|
vt 0.563 0.063
|
|
vt 0.625 0.063
|
|
vt 0.625 0.938
|
|
vt 0.25 0.938
|
|
vt 0.25 0.063
|
|
vt 0.313 0.063
|
|
vt 0.313 0.938
|
|
vt 0.938 0.438
|
|
vt 0.938 0.563
|
|
vt 0.063 0.563
|
|
vt 0.063 0.438
|
|
vt 0.875 0.938
|
|
vt 0.875 0.063
|
|
vt 0 0.063
|
|
vt 0.063 0.063
|
|
vt 1 0.063
|
|
vt 0.063 0.938
|
|
vt 0.938 0.063
|
|
vt 0.938 0.938
|
|
vt 0.938 1
|
|
vt 0.938 0.75
|
|
vt 1 0.75
|
|
vt 0.063 0.75
|
|
vt 0 0.75
|
|
vt 0.063 0.125
|
|
vt 0.938 0.125
|
|
vt 0.938 0.5
|
|
vt 1 0.5
|
|
vt 0.063 0.5
|
|
vt 0 0.5
|
|
vt 0.938 0
|
|
vt 0.938 0.25
|
|
vt 1 0.25
|
|
vt 0.063 0.25
|
|
vt 0 0.25
|
|
vt 0.063 0.188
|
|
vt 0.938 0.188
|
|
vt 0.5 0.938
|
|
vt 0.438 0.938
|
|
vt 0.438 0.063
|
|
vt 0.5 0.063
|
|
vt 0.438 0
|
|
vt 0.438 1
|
|
vt 0.563 0
|
|
vt 0.563 1
|
|
vn -1 0 0
|
|
vn 0 0 -1
|
|
vn 1 0 0
|
|
vn 0 0 1
|
|
vn 0 -1 0
|
|
vn 0 1 0
|
|
g 1
|
|
s off
|
|
f 53/1/1 54/2/1 2/3/1 1/4/1
|
|
f 6/5/2 7/4/2 50/6/2 49/7/2
|
|
f 55/3/3 56/4/3 4/1/3 3/2/3
|
|
f 56/5/4 53/4/4 1/1/4 4/8/4
|
|
f 1/1/5 2/2/5 3/3/5 4/4/5
|
|
f 8/1/6 7/2/6 6/3/6 5/4/6
|
|
f 3/1/2 2/8/2 51/9/2 52/10/2
|
|
f 5/1/1 6/2/1 54/3/1 53/4/1
|
|
f 7/3/3 8/4/3 56/1/3 55/2/3
|
|
f 17/11/2 20/12/2 32/13/2 29/14/2
|
|
f 9/15/2 12/16/2 24/17/2 21/18/2
|
|
f 8/5/4 5/4/4 53/1/4 56/8/4
|
|
f 33/19/2 44/20/2 48/21/2 37/22/2
|
|
f 51/9/2 54/5/2 13/3/2 25/23/2
|
|
f 52/10/2 28/24/2 16/25/2 55/4/2
|
|
f 40/26/2 50/6/2 55/1/2 16/27/2
|
|
f 45/28/2 13/2/2 54/8/2 49/7/2
|
|
f 36/29/2 16/27/2 13/2/2 41/30/2
|
|
g 2
|
|
f 13/8/1 14/31/1 10/32/1 9/33/1
|
|
f 14/31/2 15/7/2 11/34/2 10/32/2
|
|
f 15/7/3 16/5/3 12/35/3 11/34/3
|
|
f 9/36/5 10/26/5 11/29/5 12/37/5
|
|
f 16/29/6 15/37/6 14/36/6 13/26/6
|
|
f 21/33/1 22/32/1 18/38/1 17/39/1
|
|
f 22/32/2 23/34/2 19/40/2 18/38/2
|
|
f 23/34/3 24/35/3 20/41/3 19/40/3
|
|
f 17/26/5 18/6/5 19/42/5 20/29/5
|
|
f 24/42/6 23/29/6 22/26/6 21/6/6
|
|
f 29/39/1 30/38/1 26/43/1 25/44/1
|
|
f 30/38/2 31/40/2 27/45/2 26/43/2
|
|
f 31/40/3 32/41/3 28/46/3 27/45/3
|
|
f 25/47/5 26/36/5 27/37/5 28/48/5
|
|
f 32/37/6 31/48/6 30/47/6 29/36/6
|
|
g 3
|
|
f 37/49/1 38/50/1 34/51/1 33/52/1
|
|
f 38/50/2 39/28/2 35/26/2 34/51/2
|
|
f 39/28/3 40/3/3 36/25/3 35/26/3
|
|
f 33/53/5 34/51/5 35/26/5 36/6/5
|
|
f 40/7/6 39/28/6 38/50/6 37/54/6
|
|
f 45/2/1 46/30/1 42/29/1 41/27/1
|
|
f 46/30/2 47/11/2 43/12/2 42/29/2
|
|
f 47/11/3 48/49/3 44/52/3 43/12/3
|
|
f 41/42/5 42/29/5 43/12/5 44/55/5
|
|
f 48/56/6 47/11/6 46/30/6 45/31/6
|