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