homedecor_modpack/homedecor_misc/models/homedecor_wall_japanese_top...

317 lines
6.4 KiB
Plaintext
Raw Permalink 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.5 0.5 0.063
v -0.5 0.5 0.063
v -0.5 0.5 0
v 0.5 0.5 0
v 0.5 0.438 0.063
v -0.5 0.438 0.063
v -0.5 0.438 0
v 0.5 0.438 0
v -0.437 0.438 0.063
v -0.437 0.438 0
v 0.438 0.438 0.063
v 0.438 0.438 0
v -0.437 -0.477 0.047
v -0.437 -0.477 0.016
v 0.438 -0.477 0.047
v 0.438 -0.477 0.016
v -0.5 -0.5 0.063
v 0.5 -0.5 0.063
v 0.5 -0.5 0
v -0.5 -0.5 0
v -0.5 -0.5 0.063
v -0.437 -0.5 0.063
v -0.5 -0.5 0
v -0.437 -0.5 0
v 0.5 -0.5 0.063
v 0.438 -0.5 0.063
v 0.5 -0.5 0
v 0.438 -0.5 0
v 0.438 -0.5 0.047
v -0.437 -0.5 0.047
v 0.438 -0.5 0.016
v -0.437 -0.5 0.016
v -0.254 -0.477 0.047
v -0.254 -0.477 0.016
v -0.254 0.223 0.047
v -0.254 0.223 0.016
v -0.207 -0.477 0.047
v -0.207 -0.477 0.016
v -0.207 0.223 0.047
v -0.207 0.223 0.016
v -0.023 -0.477 0.047
v -0.023 -0.477 0.016
v -0.023 0.223 0.047
v -0.023 0.223 0.016
v 0.023 -0.477 0.047
v 0.023 -0.477 0.016
v 0.023 0.223 0.047
v 0.023 0.223 0.016
v 0.207 -0.477 0.047
v 0.207 -0.477 0.016
v 0.207 0.223 0.047
v 0.207 0.223 0.016
v 0.254 -0.477 0.047
v 0.254 -0.477 0.016
v 0.254 0.223 0.047
v 0.254 0.223 0.016
v 0.438 -0.277 0.047
v 0.438 -0.277 0.016
v 0.254 -0.277 0.047
v 0.254 -0.277 0.016
v 0.438 -0.23 0.047
v 0.438 -0.23 0.016
v 0.254 -0.23 0.047
v 0.254 -0.23 0.016
v 0.438 -0.027 0.047
v 0.438 -0.027 0.016
v 0.254 -0.027 0.047
v 0.254 -0.027 0.016
v 0.438 0.02 0.047
v 0.438 0.02 0.016
v 0.254 0.02 0.047
v 0.254 0.02 0.016
v 0.207 -0.277 0.047
v 0.207 -0.277 0.016
v 0.023 -0.277 0.047
v 0.023 -0.277 0.016
v 0.207 -0.23 0.047
v 0.207 -0.23 0.016
v 0.023 -0.23 0.047
v 0.023 -0.23 0.016
v 0.207 -0.027 0.047
v 0.207 -0.027 0.016
v 0.023 -0.027 0.047
v 0.023 -0.027 0.016
v 0.207 0.02 0.047
v 0.207 0.02 0.016
v 0.023 0.02 0.047
v 0.023 0.02 0.016
v -0.023 -0.277 0.047
v -0.023 -0.277 0.016
v -0.207 -0.277 0.047
v -0.207 -0.277 0.016
v -0.023 -0.23 0.047
v -0.023 -0.23 0.016
v -0.207 -0.23 0.047
v -0.207 -0.23 0.016
v -0.023 -0.027 0.047
v -0.023 -0.027 0.016
v -0.207 -0.027 0.047
v -0.207 -0.027 0.016
v -0.023 0.02 0.047
v -0.023 0.02 0.016
v -0.207 0.02 0.047
v -0.207 0.02 0.016
v -0.254 -0.277 0.047
v -0.254 -0.277 0.016
v -0.437 -0.277 0.047
v -0.437 -0.277 0.016
v -0.254 -0.23 0.047
v -0.254 -0.23 0.016
v -0.437 -0.23 0.047
v -0.437 -0.23 0.016
v -0.254 -0.027 0.047
v -0.254 -0.027 0.016
v -0.437 -0.027 0.047
v -0.437 -0.027 0.016
v -0.254 0.02 0.047
v -0.254 0.02 0.016
v -0.437 0.02 0.047
v -0.437 0.02 0.016
v 0.438 0.223 0.047
v 0.438 0.223 0.016
v -0.437 0.223 0.047
v -0.437 0.223 0.016
v 0.438 0.438 0.047
v 0.438 0.438 0.016
v -0.437 0.438 0.047
v -0.437 0.438 0.016
v -0.437 0.223 0.031
v 0.438 0.223 0.031
v -0.437 -0.5 0.031
v 0.438 -0.5 0.031
v -0.437 0.223 0.033
v 0.438 0.223 0.033
v -0.437 -0.5 0.033
v 0.438 -0.5 0.033
vt 0 0
vt 0.063 0
vt 0.063 1
vt 0 1
vt 1 0.938
vt 1 1
vt 0 0.938
vt 0.063 0.938
vt 0.938 0
vt 1 0
vt 0.938 0.938
vt 0.938 0.023
vt 0.063 0.023
vt 0.063 0.953
vt 0.938 0.953
vt 0.938 0.984
vt 0.063 0.984
vt 0.938 0.063
vt 0.063 0.063
vt 0.938 1
vt 0.293 0.723
vt 0.246 0.723
vt 0.246 0.023
vt 0.293 0.023
vt 0.707 0.723
vt 0.707 0.023
vt 0.754 0.023
vt 0.754 0.723
vt 0.984 0.023
vt 0.984 0.723
vt 0.953 0.723
vt 0.953 0.023
vt 0.016 0.723
vt 0.016 0.023
vt 0.047 0.023
vt 0.047 0.723
vt 0.523 0.723
vt 0.477 0.723
vt 0.477 0.023
vt 0.523 0.023
vt 0.754 0.27
vt 0.754 0.223
vt 0.938 0.223
vt 0.938 0.27
vt 0.246 0.27
vt 0.063 0.27
vt 0.063 0.223
vt 0.246 0.223
vt 0.938 0.047
vt 0.754 0.047
vt 0.754 0.016
vt 0.938 0.016
vt 0.754 0.953
vt 0.754 0.984
vt 0.754 0.52
vt 0.754 0.473
vt 0.938 0.473
vt 0.938 0.52
vt 0.246 0.52
vt 0.063 0.52
vt 0.063 0.473
vt 0.246 0.473
vt 0.523 0.27
vt 0.523 0.223
vt 0.707 0.223
vt 0.707 0.27
vt 0.477 0.27
vt 0.293 0.27
vt 0.293 0.223
vt 0.477 0.223
vt 0.707 0.047
vt 0.523 0.047
vt 0.523 0.016
vt 0.707 0.016
vt 0.523 0.953
vt 0.707 0.953
vt 0.707 0.984
vt 0.523 0.984
vt 0.523 0.52
vt 0.523 0.473
vt 0.707 0.473
vt 0.707 0.52
vt 0.477 0.52
vt 0.293 0.52
vt 0.293 0.473
vt 0.477 0.473
vt 0.477 0.047
vt 0.293 0.047
vt 0.293 0.016
vt 0.477 0.016
vt 0.293 0.953
vt 0.477 0.953
vt 0.477 0.984
vt 0.293 0.984
vt 0.246 0.047
vt 0.063 0.047
vt 0.063 0.016
vt 0.246 0.016
vt 0.246 0.953
vt 0.246 0.984
vt 0.063 0.723
vt 0.938 0.723
vt 0 0.063
vt 1 0.063
vn 1 0 0
vn 0 1 0
vn 0 0 -1
vn 0 0 1
vn 0 -1 0
vn -1 0 0
g 1
s off
f 18/1/1 19/2/1 4/3/1 1/4/1
f 1/5/2 4/6/2 3/4/2 2/7/2
f 3/6/3 4/4/3 8/7/3 7/5/3
f 1/6/4 2/4/4 6/7/4 5/5/4
f 22/2/4 9/8/4 6/7/4 21/1/4
f 24/9/3 23/10/3 7/5/3 10/11/3
f 26/9/4 25/10/4 5/5/4 11/11/4
f 28/2/3 12/8/3 8/7/3 27/1/3
f 29/9/4 15/12/4 13/13/4 30/2/4
f 31/2/3 32/9/3 14/12/3 16/13/3
f 13/14/2 15/15/2 16/16/2 14/17/2
f 12/9/5 11/18/5 9/19/5 10/2/5
f 11/5/6 12/11/6 28/9/6 26/10/6
f 9/7/1 22/1/1 24/2/1 10/8/1
f 2/6/6 3/20/6 20/9/6 17/10/6
f 39/21/4 35/22/4 33/23/4 37/24/4
f 40/25/3 38/26/3 34/27/3 36/28/3
f 33/29/6 35/30/6 36/31/6 34/32/6
f 39/33/1 37/34/1 38/35/1 40/36/1
f 47/37/4 43/38/4 41/39/4 45/40/4
f 48/38/3 46/39/3 42/40/3 44/37/3
f 41/29/6 43/30/6 44/31/6 42/32/6
f 47/33/1 45/34/1 46/35/1 48/36/1
f 55/28/4 51/25/4 49/26/4 53/27/4
f 56/22/3 54/23/3 50/24/3 52/21/3
f 49/29/6 51/30/6 52/31/6 50/32/6
f 55/33/1 53/34/1 54/35/1 56/36/1
f 63/41/4 59/42/4 57/43/4 61/44/4
f 64/45/3 62/46/3 58/47/3 60/48/3
f 57/49/5 59/50/5 60/51/5 58/52/5
f 63/53/2 61/15/2 62/16/2 64/54/2
f 71/55/4 67/56/4 65/57/4 69/58/4
f 72/59/3 70/60/3 66/61/3 68/62/3
f 65/49/5 67/50/5 68/51/5 66/52/5
f 71/53/2 69/15/2 70/16/2 72/54/2
f 79/63/4 75/64/4 73/65/4 77/66/4
f 80/67/3 78/68/3 74/69/3 76/70/3
f 73/71/5 75/72/5 76/73/5 74/74/5
f 79/75/2 77/76/2 78/77/2 80/78/2
f 87/79/4 83/80/4 81/81/4 85/82/4
f 88/83/3 86/84/3 82/85/3 84/86/3
f 81/71/5 83/72/5 84/73/5 82/74/5
f 87/75/2 85/76/2 86/77/2 88/78/2
f 95/68/4 91/69/4 89/70/4 93/67/4
f 96/66/3 94/63/3 90/64/3 92/65/3
f 89/87/5 91/88/5 92/89/5 90/90/5
f 95/91/2 93/92/2 94/93/2 96/94/2
f 103/84/4 99/85/4 97/86/4 101/83/4
f 104/82/3 102/79/3 98/80/3 100/81/3
f 97/87/5 99/88/5 100/89/5 98/90/5
f 103/91/2 101/92/2 102/93/2 104/94/2
f 111/46/4 107/47/4 105/48/4 109/45/4
f 112/44/3 110/41/3 106/42/3 108/43/3
f 105/95/5 107/96/5 108/97/5 106/98/5
f 111/14/2 109/99/2 110/100/2 112/17/2
f 119/60/4 115/61/4 113/62/4 117/59/4
f 120/58/3 118/55/3 114/56/3 116/57/3
f 113/95/5 115/96/5 116/97/5 114/98/5
f 119/14/2 117/99/2 118/100/2 120/17/2
f 127/8/4 123/101/4 121/102/4 125/11/4
f 128/11/3 126/8/3 122/101/3 124/102/3
f 121/49/5 123/96/5 124/97/5 122/52/5
f 22/19/5 21/103/5 23/1/5 24/2/5
f 26/18/5 28/9/5 27/10/5 25/104/5
f 32/97/5 31/52/5 29/49/5 30/96/5
# 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
g 2
f 131/9/3 129/102/3 130/101/3 132/2/3
f 135/2/4 136/9/4 134/102/4 133/101/4