homedecor_modpack/homedecor_3d_extras/models/homedecor_3d_vessels_bottle...

178 lines
3.7 KiB
Plaintext
Raw Normal View History

# Compression Commit 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
2021-01-23 13:28:20 +01:00
v 0.019 -0.14 0.045
v -0.018 -0.14 0.045
v -0.045 -0.14 0.019
v -0.045 -0.14 -0.019
v -0.018 -0.14 -0.045
v 0.019 -0.14 -0.045
v 0.045 -0.14 -0.019
v 0.045 -0.14 0.019
v 0.125 -0.295 -0.052
v 0.045 -0.191 -0.019
v 0.045 -0.191 0.019
v 0.125 -0.295 0.052
v 0.019 -0.191 0.045
v 0.052 -0.295 0.125
v 0.052 -0.295 -0.125
v 0.019 -0.191 -0.045
v -0.051 -0.295 -0.125
v -0.018 -0.191 -0.045
v -0.125 -0.295 -0.052
v -0.045 -0.191 -0.019
v -0.125 -0.295 0.052
v -0.045 -0.191 0.019
v -0.051 -0.295 0.125
v -0.018 -0.191 0.045
v 0.052 -0.464 0.125
v -0.051 -0.464 0.125
v -0.125 -0.464 0.052
v -0.125 -0.464 -0.052
v -0.051 -0.464 -0.125
v 0.052 -0.464 -0.125
v 0.125 -0.464 -0.052
v 0.125 -0.464 0.052
v 0.105 -0.5 -0.043
v 0.105 -0.5 0.043
v 0.044 -0.5 0.105
v 0.044 -0.5 -0.105
v -0.043 -0.5 -0.105
v -0.104 -0.5 -0.043
v -0.104 -0.5 0.043
v -0.043 -0.5 0.105
vt 0.75 0.563
vt 0.75 0.688
vt 0.625 0.688
vt 0.625 0.563
vt 0.5 0.375
vt 0.5 0.563
vt 0.375 0.563
vt 0.375 0.375
vt 0.25 0.563
vt 0.25 0.375
vt 0.625 0.375
vt 0.75 0.375
vt 0.875 0.375
vt 0.875 0.563
vt 1 0.375
vt 1 0.563
vt 0.125 0.375
vt 0.125 0.563
vt 0 0.563
vt 0 0.375
vt 0.25 0.688
vt 0.375 0.688
vt 1 0.688
vt 0.875 0.688
vt 0.5 0.688
vt 0.125 0.688
vt 0 0.688
vt 0.875 0.125
vt 1 0.125
vt 0.625 0.125
vt 0.75 0.125
vt 0.375 0.125
vt 0.5 0.125
vt 0.25 0.125
vt 0.125 0.125
vt 0 0.125
vt 0.5 0
vt 0.375 0
vt 0.25 0
vt 0.625 0
vt 0.75 0
vt 0.875 0
vt 1 0
vt 0.125 0
vt 0 0
vt 0.602 0.167
vt 0.602 0.083
vt 0.542 0.023
vt 0.458 0.023
vt 0.398 0.083
vt 0.398 0.167
vt 0.458 0.227
vt 0.542 0.227
vt 0.784 0.889
vt 0.764 0.909
vt 0.736 0.909
vt 0.716 0.889
vt 0.716 0.861
vt 0.736 0.841
vt 0.764 0.841
vt 0.784 0.861
vn -0.355 0.372 -0.858
vn -0.297 0.63 -0.717
vn 0.297 0.63 -0.717
vn 0.355 0.372 -0.858
vn 0.876 0.318 -0.363
vn 0.858 0.372 -0.355
vn 0.858 0.372 0.355
vn 0.876 0.318 0.363
vn 0.355 0.372 0.858
vn 0.363 0.318 0.876
vn 0.363 0.318 -0.876
vn -0.363 0.318 -0.876
vn -0.876 0.318 -0.363
vn -0.858 0.372 -0.355
vn -0.876 0.318 0.363
vn -0.858 0.372 0.355
vn -0.363 0.318 0.876
vn -0.355 0.372 0.858
vn 0.297 0.63 0.718
vn 0.717 0.63 0.297
vn -0.717 0.63 0.297
vn -0.717 0.63 -0.297
vn 0.717 0.63 -0.297
vn -0.297 0.63 0.718
vn -0.893 -0.255 -0.37
vn -0.893 -0.255 0.37
vn 0.37 -0.255 -0.893
vn -0.37 -0.255 -0.893
vn 0.893 -0.255 0.37
vn 0.893 -0.255 -0.37
vn 0.37 -0.255 0.893
vn -0.37 -0.255 0.893
vn 0.527 -0.821 -0.218
vn 0.527 -0.821 0.218
vn 0.218 -0.821 0.527
vn 0.218 -0.821 -0.527
vn -0.218 -0.821 -0.527
vn -0.527 -0.821 -0.218
vn -0.527 -0.821 0.218
vn -0.218 -0.821 0.527
g 1
s 1
f 18/1/1 5/2/2 6/3/3 16/4/4
f 9/5/5 10/6/6 11/7/7 12/8/8
f 12/8/8 11/7/7 13/9/9 14/10/10
f 15/11/11 16/4/4 10/6/6 9/5/5
f 17/12/12 18/1/1 16/4/4 15/11/11
f 19/13/13 20/14/14 18/1/1 17/12/12
f 21/15/15 22/16/16 20/14/14 19/13/13
f 23/17/17 24/18/18 22/19/16 21/20/15
f 14/10/10 13/9/9 24/18/18 23/17/17
f 1/21/19 13/9/9 11/7/7 8/22/20
f 22/16/16 3/23/21 4/24/22 20/14/14
f 20/14/14 4/24/22 5/2/2 18/1/1
f 10/6/6 7/25/23 8/22/20 11/7/7
f 2/26/24 3/27/21 22/19/16 24/18/18
f 13/9/9 1/21/19 2/26/24 24/18/18
f 16/4/4 6/3/3 7/25/23 10/6/6
f 21/15/15 19/13/13 28/28/25 27/29/26
f 17/12/12 15/11/11 30/30/27 29/31/28
f 9/5/5 12/8/8 32/32/29 31/33/30
f 12/8/8 14/10/10 25/34/31 32/32/29
f 14/10/10 23/17/17 26/35/32 25/34/31
f 23/17/17 21/20/15 27/36/26 26/35/32
f 19/13/13 17/12/12 29/31/28 28/28/25
f 33/37/33 31/33/30 32/32/29 34/38/34
f 34/38/34 32/32/29 25/34/31 35/39/35
f 36/40/36 30/30/27 31/33/30 33/37/33
f 37/41/37 29/31/28 30/30/27 36/40/36
f 38/42/38 28/28/25 29/31/28 37/41/37
f 39/43/39 27/29/26 28/28/25 38/42/38
f 40/44/40 26/35/32 27/36/26 39/45/39
f 35/39/35 25/34/31 26/35/32 40/44/40
f 39/46/39 38/47/38 37/48/37 36/49/36 33/50/33 34/51/34 35/52/35 40/53/40
f 3/54/21 2/55/24 1/56/19 8/57/20 7/58/23 6/59/3 5/60/2 4/61/22
f 30/30/27 15/11/11 9/5/5 31/33/30