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
202 lines
4.0 KiB
Plaintext
202 lines
4.0 KiB
Plaintext
v 0.132 -0.239 -0.167
|
|
v 0.178 0.184 -0.214
|
|
v -0.179 0.184 -0.214
|
|
v -0.132 -0.239 -0.167
|
|
v 0.17 -0.239 -0.128
|
|
v 0.17 -0.239 0.135
|
|
v 0.217 0.184 0.182
|
|
v 0.217 0.184 -0.175
|
|
v -0.132 -0.239 0.174
|
|
v -0.179 0.184 0.221
|
|
v 0.178 0.184 0.221
|
|
v 0.132 -0.239 0.174
|
|
v -0.17 -0.239 0.135
|
|
v -0.17 -0.239 -0.128
|
|
v -0.217 0.184 -0.175
|
|
v -0.217 0.184 0.182
|
|
vt 0 0
|
|
vt 1 0
|
|
vt 1 1
|
|
vt 0 1
|
|
g 1
|
|
s off
|
|
f 16/1 13/2 14/3 15/4
|
|
f 5/1 6/2 7/3 8/4
|
|
f 2/1 3/2 4/3 1/4
|
|
f 9/1 10/2 11/3 12/4
|
|
s 1
|
|
f 7/1 6/2 12/3 11/4
|
|
f 13/1 16/2 10/3 9/4
|
|
f 3/1 15/2 14/3 4/4
|
|
f 2/1 1/2 5/3 8/4
|
|
v 0.132 -0.239 -0.167
|
|
v 0.178 0.184 -0.214
|
|
v -0.179 0.184 -0.214
|
|
v -0.132 -0.239 -0.167
|
|
v 0.17 -0.239 -0.128
|
|
v 0.17 -0.239 0.135
|
|
v 0.217 0.184 0.182
|
|
v 0.217 0.184 -0.175
|
|
v -0.132 -0.239 0.174
|
|
v -0.179 0.184 0.221
|
|
v 0.178 0.184 0.221
|
|
v 0.132 -0.239 0.174
|
|
v -0.17 -0.239 0.135
|
|
v -0.17 -0.239 -0.128
|
|
v -0.217 0.184 -0.175
|
|
v -0.217 0.184 0.182
|
|
v -0.035 0.451 0.035
|
|
v -0.035 0.451 -0.035
|
|
v -0.061 0.405 -0.061
|
|
v -0.061 0.405 0.06
|
|
v 0.035 0.451 -0.035
|
|
v 0.061 0.405 -0.061
|
|
v 0.035 0.451 0.035
|
|
v 0.061 0.405 0.06
|
|
v -0.042 0.391 0.042
|
|
v 0.042 0.391 0.042
|
|
v 0.009 0.461 0.009
|
|
v -0.009 0.461 0.009
|
|
v -0.067 0.358 0.067
|
|
v 0.067 0.358 0.067
|
|
v 0.042 0.391 -0.043
|
|
v -0.042 0.391 -0.043
|
|
v -0.122 0.333 0.125
|
|
v 0.122 0.333 0.125
|
|
v 0.067 0.358 -0.067
|
|
v -0.067 0.358 -0.067
|
|
v 0.223 0.237 -0.22
|
|
v -0.223 0.237 -0.22
|
|
v -0.341 0.268 -0.337
|
|
v 0.341 0.268 -0.337
|
|
v 0.122 0.333 -0.118
|
|
v -0.122 0.333 -0.118
|
|
v 0.164 -0.291 -0.161
|
|
v -0.165 -0.291 -0.161
|
|
v -0.223 0.237 0.227
|
|
v -0.341 0.268 0.344
|
|
v 0.223 0.237 0.227
|
|
v 0.341 0.268 0.344
|
|
v 0.164 -0.291 0.168
|
|
v -0.165 -0.291 0.168
|
|
v -0.234 -0.336 0.238
|
|
v 0.234 -0.336 0.238
|
|
v -0.088 -0.441 0.092
|
|
v 0.088 -0.441 0.092
|
|
v 0.234 -0.336 -0.231
|
|
v -0.234 -0.336 -0.231
|
|
v -0.088 -0.441 -0.085
|
|
v 0.088 -0.441 -0.085
|
|
v 0.009 0.5 0.009
|
|
v -0.009 0.5 0.009
|
|
v 0.009 0.461 -0.01
|
|
v -0.009 0.461 -0.01
|
|
v 0.009 0.5 -0.01
|
|
v -0.009 0.5 -0.01
|
|
v 0.039 -0.271 -0.047
|
|
v 0.05 -0.271 -0.035
|
|
v 0.067 0.279 -0.052
|
|
v 0.055 0.279 -0.064
|
|
v -0.056 0.279 -0.064
|
|
v -0.068 0.279 -0.052
|
|
v -0.068 0.279 0.059
|
|
v -0.056 0.279 0.071
|
|
v 0.055 0.279 0.071
|
|
v 0.067 0.279 0.059
|
|
v -0.05 -0.271 -0.035
|
|
v -0.039 -0.271 -0.047
|
|
v -0.039 -0.271 0.054
|
|
v -0.05 -0.271 0.042
|
|
v 0.05 -0.271 0.042
|
|
v 0.039 -0.271 0.054
|
|
vt 0.374 0.374
|
|
vt 0.626 0.374
|
|
vt 0.626 0.626
|
|
vt 0.374 0.626
|
|
vt 0.5 0.626
|
|
vt 0.589 0.589
|
|
vt 0.626 0.5
|
|
vt 0.589 0.411
|
|
vt 0.5 0.374
|
|
vt 0.411 0.411
|
|
vt 0.374 0.5
|
|
vt 0.411 0.589
|
|
g 2
|
|
s 1
|
|
f 33/5 34/6 35/7 36/8
|
|
f 34/5 37/6 38/7 35/8
|
|
f 37/5 39/6 40/7 38/8
|
|
f 39/5 33/6 36/7 40/8
|
|
f 40/5 36/6 41/7 42/8
|
|
f 33/5 39/6 43/7 44/8
|
|
f 42/5 41/6 45/7 46/8
|
|
f 38/5 40/6 42/7 47/8
|
|
f 35/5 38/6 47/7 48/8
|
|
f 36/5 35/6 48/7 41/8
|
|
f 46/5 45/6 49/7 50/8
|
|
f 47/5 42/6 46/7 51/8
|
|
f 48/5 47/6 51/7 52/8
|
|
f 41/5 48/6 52/7 45/8
|
|
f 53/5 54/6 55/7 56/8
|
|
f 51/5 46/6 50/7 57/8
|
|
f 52/5 51/6 57/7 58/8
|
|
f 45/5 52/6 58/7 49/8
|
|
f 20/5 17/6 59/7 60/8
|
|
f 54/5 61/6 62/7 55/8
|
|
f 61/5 63/6 64/7 62/8
|
|
f 63/5 53/6 56/7 64/8
|
|
f 65/5 66/6 67/7 68/8
|
|
f 54/5 53/6 18/7 19/8
|
|
f 54/5 19/6 20/7 60/8
|
|
f 17/5 18/6 53/7 59/8
|
|
f 68/5 67/6 69/7 70/8
|
|
f 59/5 65/6 68/7 71/8
|
|
f 60/5 59/6 71/7 72/8
|
|
f 66/5 60/6 72/7 67/8
|
|
f 69/5 73/6 74/7 70/8
|
|
f 71/5 68/6 70/7 74/8
|
|
f 72/5 71/6 74/7 73/8
|
|
f 67/5 72/6 73/7 69/8
|
|
f 44/5 43/6 75/7 76/8
|
|
f 39/5 37/6 77/7 43/8
|
|
f 37/5 34/6 78/7 77/8
|
|
f 34/5 33/6 44/7 78/8
|
|
f 75/5 79/6 80/7 76/8
|
|
f 43/5 77/6 79/7 75/8
|
|
f 77/5 78/6 80/7 79/8
|
|
f 78/5 44/6 76/7 80/8
|
|
f 55/5 62/6 49/7 58/8
|
|
f 64/5 56/6 57/7 50/8
|
|
f 56/5 55/6 58/7 57/8
|
|
f 62/5 64/6 50/7 49/8
|
|
f 59/5 53/6 24/7 21/8
|
|
f 63/5 65/6 22/7 23/8
|
|
f 65/5 59/6 21/7 22/8
|
|
f 53/5 63/6 23/7 24/8
|
|
f 60/5 30/6 31/7 54/8
|
|
f 66/5 61/6 32/7 29/8
|
|
f 60/5 66/6 29/7 30/8
|
|
f 61/5 54/6 31/7 32/8
|
|
f 61/5 66/6 25/7 26/8
|
|
f 65/5 63/6 27/7 28/8
|
|
f 66/5 65/6 28/7 25/8
|
|
f 63/5 61/6 26/7 27/8
|
|
f 21/5 17/6 81/7 82/8
|
|
f 18/5 24/6 83/7 84/8
|
|
f 19/5 85/6 86/7 31/8
|
|
f 26/5 32/6 87/7 88/8
|
|
f 23/5 27/6 89/7 90/8
|
|
f 27/5 26/6 88/7 89/8
|
|
f 32/5 31/6 86/7 87/8
|
|
f 24/5 23/6 90/7 83/8
|
|
f 19/5 18/6 84/7 85/8
|
|
f 30/5 91/6 92/7 20/8
|
|
f 29/5 25/6 93/7 94/8
|
|
f 28/5 22/6 95/7 96/8
|
|
f 25/5 28/6 96/7 93/8
|
|
f 30/5 29/6 94/7 91/8
|
|
f 22/5 21/6 82/7 95/8
|
|
f 17/5 20/6 92/7 81/8
|
|
f 82/9 81/10 92/11 91/12 94/13 93/14 96/15 95/16
|
|
f 87/9 86/10 85/11 84/12 83/13 90/14 89/15 88/16
|