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
102 lines
1.8 KiB
Plaintext
102 lines
1.8 KiB
Plaintext
v -0.5 -0.5 -0.5
|
|
v 0.5 -0.5 -0.5
|
|
v 0.5 -0.5 0.5
|
|
v -0.5 -0.5 0.5
|
|
v -0.5 0.5 0.5
|
|
v -0.5 0.5 -0.5
|
|
v 0.5 0.5 -0.5
|
|
v 0.5 0.5 0.5
|
|
v -0.387 0.5 0.388
|
|
v -0.387 0.5 -0.387
|
|
v 0.388 0.5 -0.387
|
|
v 0.388 0.5 0.388
|
|
v -0.387 0.4 0.388
|
|
v -0.387 0.4 -0.387
|
|
v 0.388 0.4 -0.387
|
|
v 0.388 0.4 0.388
|
|
v 0.063 0.4 -0.062
|
|
v 0.063 0.4 0.063
|
|
v -0.062 0.4 -0.062
|
|
v -0.062 0.4 0.063
|
|
v 0.063 0.313 0.063
|
|
v 0.063 0.313 -0.062
|
|
v -0.062 0.313 0.063
|
|
v -0.062 0.313 -0.062
|
|
vt 0.469 0.906
|
|
vt 0.469 0.531
|
|
vt 0.531 0.469
|
|
vt 0.531 0.969
|
|
vt 0.031 0.969
|
|
vt 0.094 0.906
|
|
vt 0.031 0.469
|
|
vt 0.094 0.531
|
|
vt 0.813 0.5
|
|
vt 0.813 0.938
|
|
vt 0.781 0.938
|
|
vt 0.781 0.5
|
|
vt 0.688 0.5
|
|
vt 0.719 0.5
|
|
vt 0.719 0.938
|
|
vt 0.688 0.938
|
|
vt 0.906 0.5
|
|
vt 0.906 0.938
|
|
vt 0.875 0.938
|
|
vt 0.875 0.5
|
|
vt 0.594 0.5
|
|
vt 0.625 0.5
|
|
vt 0.625 0.938
|
|
vt 0.594 0.938
|
|
vt 0.313 0.75
|
|
vt 0.313 0.688
|
|
vt 0.25 0.688
|
|
vt 0.25 0.75
|
|
vt 0.219 0.375
|
|
vt 0.219 0.313
|
|
vt 0.25 0.313
|
|
vt 0.25 0.375
|
|
vt 0.25 0.406
|
|
vt 0.313 0.375
|
|
vt 0.313 0.406
|
|
vt 0.313 0.313
|
|
vt 0.344 0.313
|
|
vt 0.344 0.375
|
|
vt 0.25 0.281
|
|
vt 0.313 0.281
|
|
vt 0 0
|
|
vt 1 0
|
|
vt 1 1
|
|
vt 0 1
|
|
vn 0 1 0
|
|
vn -1 0 0
|
|
vn 0 0 -1
|
|
vn 1 0 0
|
|
vn 0 0 1
|
|
vn 0 -1 0
|
|
g 1
|
|
s off
|
|
f 9/1/1 10/2/1 6/3/1 5/4/1
|
|
f 5/4/1 8/5/1 12/6/1 9/1/1
|
|
f 7/7/1 6/3/1 10/2/1 11/8/1
|
|
f 8/5/1 7/7/1 11/8/1 12/6/1
|
|
f 15/9/2 16/10/2 12/11/2 11/12/2
|
|
f 16/13/3 13/14/3 9/15/3 12/16/3
|
|
f 13/17/4 14/18/4 10/19/4 9/20/4
|
|
f 14/21/5 15/22/5 11/23/5 10/24/5
|
|
f 13/2/1 16/1/1 18/25/1 20/26/1
|
|
f 19/27/1 14/8/1 13/2/1 20/26/1
|
|
f 17/28/1 15/6/1 14/8/1 19/27/1
|
|
f 16/1/1 15/6/1 17/28/1 18/25/1
|
|
f 17/29/2 22/30/2 21/31/2 18/32/2
|
|
f 18/33/3 21/32/3 23/34/3 20/35/3
|
|
f 20/34/4 23/36/4 24/37/4 19/38/4
|
|
f 19/31/5 24/39/5 22/40/5 17/36/5
|
|
f 24/27/1 23/26/1 21/25/1 22/28/1
|
|
g 2
|
|
f 2/41/3 1/42/3 6/43/3 7/44/3
|
|
g 3
|
|
f 1/41/2 4/42/2 5/43/2 6/44/2
|
|
f 2/42/4 7/43/4 8/44/4 3/41/4
|
|
f 4/41/5 3/42/5 8/43/5 5/44/5
|
|
g 4
|
|
f 1/43/6 2/44/6 3/41/6 4/42/6
|