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
163 lines
3.2 KiB
Plaintext
163 lines
3.2 KiB
Plaintext
v 0.088 0.375 0.088
|
|
v 0.088 0 0.088
|
|
v 0 -0.5 -0.125
|
|
v 0 0 -0.125
|
|
v 0.048 -0.5 -0.115
|
|
v 0.048 0 -0.115
|
|
v 0.088 -0.5 -0.088
|
|
v 0.088 0 -0.088
|
|
v 0.115 -0.5 -0.048
|
|
v 0.115 0 -0.048
|
|
v 0.125 -0.5 0
|
|
v 0.125 0 0
|
|
v 0.115 -0.5 0.048
|
|
v 0.115 0 0.048
|
|
v 0.088 -0.5 0.088
|
|
v 0.088 0 0.088
|
|
v 0.048 -0.5 0.115
|
|
v 0.048 0 0.115
|
|
v 0 -0.5 0.125
|
|
v 0 0 0.125
|
|
v -0.048 -0.5 0.115
|
|
v -0.048 0 0.115
|
|
v -0.088 -0.5 0.088
|
|
v -0.088 0 0.088
|
|
v -0.115 -0.5 0.048
|
|
v -0.115 0 0.048
|
|
v -0.125 -0.5 0
|
|
v -0.125 0 0
|
|
v -0.115 -0.5 -0.048
|
|
v -0.115 0 -0.048
|
|
v -0.088 -0.5 -0.088
|
|
v -0.088 0 -0.088
|
|
v -0.048 -0.5 -0.115
|
|
v -0.048 0 -0.115
|
|
v -0.088 0 -0.088
|
|
v -0.088 0.375 -0.088
|
|
v 0.088 0.375 -0.088
|
|
v 0.088 0 -0.088
|
|
v -0.088 0 0.088
|
|
v -0.088 0.375 0.088
|
|
v 0.088 0.375 0.088
|
|
v 0.088 0 0.088
|
|
v -0.088 0 -0.088
|
|
v -0.088 0.375 -0.088
|
|
v 0.088 0.375 -0.088
|
|
v 0.088 0 -0.088
|
|
v -0.088 0 0.088
|
|
v -0.088 0.375 0.088
|
|
vt 0.5 0
|
|
vt 0.5 0.5
|
|
vt 0.438 0.5
|
|
vt 0.438 0
|
|
vt 0.375 0.5
|
|
vt 0.375 0
|
|
vt 0.313 0.5
|
|
vt 0.313 0
|
|
vt 0.25 0.5
|
|
vt 0.25 0
|
|
vt 0.188 0.5
|
|
vt 0.188 0
|
|
vt 0.125 0.5
|
|
vt 0.125 0
|
|
vt 0.063 0.5
|
|
vt 0.063 0
|
|
vt 0 0.5
|
|
vt 0 0
|
|
vt 1 0
|
|
vt 1 0.5
|
|
vt 0.938 0.5
|
|
vt 0.938 0
|
|
vt 0.875 0.5
|
|
vt 0.875 0
|
|
vt 0.813 0.5
|
|
vt 0.813 0
|
|
vt 0.75 0.5
|
|
vt 0.75 0
|
|
vt 0.688 0.5
|
|
vt 0.688 0
|
|
vt 0.625 0.5
|
|
vt 0.625 0
|
|
vt 0.476 0.786
|
|
vt 0.488 0.783
|
|
vt 0.498 0.777
|
|
vt 0.505 0.766
|
|
vt 0.507 0.755
|
|
vt 0.505 0.743
|
|
vt 0.498 0.732
|
|
vt 0.488 0.726
|
|
vt 0.476 0.723
|
|
vt 0.464 0.726
|
|
vt 0.454 0.732
|
|
vt 0.447 0.743
|
|
vt 0.445 0.755
|
|
vt 0.447 0.766
|
|
vt 0.454 0.777
|
|
vt 0.464 0.783
|
|
vt 0.563 0
|
|
vt 0.563 0.5
|
|
vt 1 1
|
|
vt 0 1
|
|
vn 0 -0.666 -0.746
|
|
vn 0 0.666 -0.746
|
|
vn 0.286 0.666 -0.689
|
|
vn 0.286 -0.666 -0.689
|
|
vn 0.528 0.666 -0.528
|
|
vn 0.528 -0.666 -0.528
|
|
vn 0.689 0.666 -0.285
|
|
vn 0.689 -0.666 -0.285
|
|
vn 0.746 0.666 0
|
|
vn 0.746 -0.666 0
|
|
vn 0.689 0.666 0.286
|
|
vn 0.689 -0.666 0.286
|
|
vn 0.528 0.666 0.528
|
|
vn 0.528 -0.666 0.528
|
|
vn 0.286 0.666 0.689
|
|
vn 0.286 -0.666 0.689
|
|
vn 0 0.666 0.746
|
|
vn 0 -0.666 0.746
|
|
vn -0.285 0.666 0.689
|
|
vn -0.285 -0.666 0.689
|
|
vn -0.528 0.666 0.528
|
|
vn -0.528 -0.666 0.528
|
|
vn -0.689 0.666 0.286
|
|
vn -0.689 -0.666 0.286
|
|
vn -0.746 0.666 0
|
|
vn -0.746 -0.666 0
|
|
vn -0.689 0.666 -0.285
|
|
vn -0.689 -0.666 -0.285
|
|
vn -0.528 0.666 -0.528
|
|
vn -0.528 -0.666 -0.528
|
|
vn -0.285 0.666 -0.689
|
|
vn -0.285 -0.666 -0.689
|
|
vn 0.707 0 0.707
|
|
vn -0.707 0 0.707
|
|
vn -0.707 0 -0.707
|
|
vn 0.707 0 -0.707
|
|
g 1
|
|
s 1
|
|
f 3/1/1 4/2/2 6/3/3 5/4/4
|
|
f 5/4/4 6/3/3 8/5/5 7/6/6
|
|
f 7/6/6 8/5/5 10/7/7 9/8/8
|
|
f 9/8/8 10/7/7 12/9/9 11/10/10
|
|
f 11/10/10 12/9/9 14/11/11 13/12/12
|
|
f 13/12/12 14/11/11 16/13/13 15/14/14
|
|
f 15/14/14 16/13/13 18/15/15 17/16/16
|
|
f 17/16/16 18/15/15 20/17/17 19/18/18
|
|
f 19/19/18 20/20/17 22/21/19 21/22/20
|
|
f 21/22/20 22/21/19 24/23/21 23/24/22
|
|
f 23/24/22 24/23/21 26/25/23 25/26/24
|
|
f 25/26/24 26/25/23 28/27/25 27/28/26
|
|
f 27/28/26 28/27/25 30/29/27 29/30/28
|
|
f 29/30/28 30/29/27 32/31/29 31/32/30
|
|
f 6/33/3 4/34/2 34/35/31 32/36/29 30/37/27 28/38/25 26/39/23 24/40/21 22/41/19 20/42/17 18/43/15 16/44/13 14/45/11 12/46/9 10/47/7 8/48/5
|
|
f 33/49/32 34/50/31 4/2/2 3/1/1
|
|
f 31/32/30 32/31/29 34/50/31 33/49/32
|
|
f 3/33/1 5/34/4 7/35/6 9/36/8 11/37/10 13/38/12 15/39/14 17/40/16 19/41/18 21/42/20 23/43/22 25/44/24 27/45/26 29/46/28 31/47/30 33/48/32
|
|
g 2
|
|
s off
|
|
f 38/19/33 37/51/33 40/52/33 39/18/33
|
|
f 2/19/34 1/51/34 36/52/34 35/18/34
|
|
f 46/19/35 47/18/35 48/52/35 45/51/35
|
|
f 42/19/36 43/18/36 44/52/36 41/51/36
|