homedecor_modpack/homedecor_misc/models/homedecor_piano.obj

316 lines
6.2 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 -1.437 0.063 -0.062
v 0.438 0.063 -0.062
v -1.437 0.188 0.188
v -1.437 0.188 -0.062
v 0.438 0.188 -0.062
v 0.438 0.188 0.188
v -0.5 0.188 -0.062
v -0.5 0.063 -0.062
v -0.5 0.188 0.188
v -0.609 -0.437 0
v -0.609 -0.437 0.188
v -0.484 -0.437 0.188
v -0.484 -0.437 0
v -0.531 -0.437 0
v -0.531 -0.437 0.188
v -0.484 -0.461 0.188
v -0.484 -0.461 0
v -0.359 -0.461 0
v -0.406 -0.461 0
v -0.406 -0.461 0.188
v -0.359 -0.437 0.188
v -0.359 -0.437 0
v -0.656 -0.461 0.188
v -0.406 -0.437 0.188
v -0.531 -0.461 0
v -0.656 -0.461 0
v -0.531 -0.461 0.188
v -0.609 -0.461 0
v -0.609 -0.461 0.188
v -0.359 -0.461 0.188
v -0.656 -0.437 0.188
v -0.656 -0.437 0
v -0.406 -0.437 0
v -1.5 -0.5 0.5
v -1.5 -0.5 0.188
v 0.5 -0.5 0.188
v 0.5 -0.5 0.5
v -1.5 0.5 0.5
v -1.5 0.5 0.188
v 0.5 0.5 0.188
v 0.5 0.5 0.5
v -1.437 0.063 0.188
v -1.437 0.063 -0.062
v 0.438 0.063 -0.062
v 0.438 0.063 0.188
v -1.437 0.188 0.188
v 0.438 0.188 0.188
v 0.438 -0.5 0.188
v 0.438 -0.5 -0.125
v 0.5 -0.5 -0.125
v 0.438 -0.375 0.188
v 0.438 -0.375 -0.125
v 0.5 -0.375 -0.125
v 0.5 -0.375 0.188
v 0.438 0.063 -0.125
v 0.5 0.063 -0.125
v 0.5 0.063 0.188
v 0.438 0.25 0.188
v 0.438 0.25 -0.125
v 0.5 0.25 -0.125
v 0.5 0.25 0.188
v 0.438 -0.375 0
v 0.438 -0.375 -0.062
v 0.5 -0.375 -0.062
v 0.5 -0.375 0
v 0.438 0.063 0
v 0.5 0.063 -0.062
v 0.5 0.063 0
v -1.5 -0.5 -0.125
v -1.437 -0.5 -0.125
v -1.437 -0.5 0.188
v -1.5 -0.375 0.188
v -1.5 -0.375 -0.125
v -1.437 -0.375 -0.125
v -1.437 -0.375 0.188
v -1.5 0.063 0.188
v -1.5 0.063 -0.125
v -1.437 0.063 -0.125
v -1.5 0.25 0.188
v -1.5 0.25 -0.125
v -1.437 0.25 -0.125
v -1.437 0.25 0.188
v -1.5 -0.375 0
v -1.5 -0.375 -0.062
v -1.437 -0.375 -0.062
v -1.437 -0.375 0
v -1.5 0.063 0
v -1.5 0.063 -0.062
v -1.437 0.063 0
v 0.438 0.188 0.156
v 0.438 0.375 0.156
v 0.438 0.375 0.188
v -1.437 0.188 0.156
v -1.437 0.375 0.188
v -1.437 0.375 0.156
v -1.5 0.375 0.188
v 0.5 0.375 0.188
v -0.5 -0.5 0.188
v -0.5 -0.5 0.5
v -0.5 0.375 0.188
v -0.5 0.5 0.188
v -0.5 0.063 -0.062
v -0.5 0.063 0.188
v -0.5 0.375 0.156
v -0.5 -0.5 0.188
v -0.5 -0.375 0.188
v -0.5 0.063 0.188
v -0.5 -0.375 0.188
v -0.5 0.375 0.188
v -0.5 0.5 0.5
v -0.5 0.188 0.156
vt 0.969 0.781
vt 0.031 0.781
vt 0.031 0.656
vt 0.969 0.656
vt 0.969 0.438
vt 0.031 0.438
vt 0.031 0.313
vt 0.969 0.313
vt 1 1
vt 0.688 1
vt 0.688 0
vt 1 0
vt 0.313 1
vt 0 1
vt 0 0
vt 0.313 0
vt 0 0.688
vt 0 0.563
vt 1 0.563
vt 1 0.688
vt 1 0.125
vt 1 0.438
vt 0 0.438
vt 0 0.125
vt 0.844 1
vt 0.781 1
vt 0.781 0.563
vt 0.844 0.563
vt 0.719 1
vt 0.719 0.563
vt 0.25 0.688
vt 0.188 0.688
vt 0.188 0.563
vt 0.25 0.563
vt 1 0.531
vt 0.063 0.531
vt 0.063 0.344
vt 1 0.344
vt 0.688 0.563
vt 0.375 0.563
vt 0.375 0.438
vt 0.688 0.438
vt 0.188 1
vt 0.25 1
vt 0.063 0.688
vt 0 0.5
vt 0.063 0.5
vt 0.375 1
vt 0.375 0.813
vt 0.688 0.813
vt 0.063 1
vt 0.344 0.688
vt 0.281 0.688
vt 0.281 0.563
vt 0.344 0.563
vt 0.688 0.406
vt 0.375 0.406
vt 0.375 0.281
vt 0.688 0.281
vt 0.281 1
vt 0.344 1
vt 0.688 0.781
vt 0.375 0.781
vt 0.375 0.594
vt 0.688 0.594
vt 0.156 0.688
vt 0.094 0.688
vt 0.094 0.5
vt 0.156 0.5
vt 0.906 0.563
vt 0.906 1
vt 0.094 1
vt 0.156 1
vt 0.25 0.25
vt 0.188 0.25
vt 0.969 1
vt 0.969 0.563
vt 0 0.531
vt 0.938 0.531
vt 0.938 0.563
vt 0.063 0.188
vt 0 0.188
vt 0.344 0.25
vt 0.281 0.25
vt 0.156 0.188
vt 0.094 0.188
vt 0.75 0.531
vt 0.719 0.531
vt 0.719 0.406
vt 0.75 0.406
vt 0.813 0.531
vt 0.781 0.531
vt 0.781 0.406
vt 0.813 0.406
vt 1 0.094
vt 0.063 0.094
vt 0.797 0.375
vt 0.797 0.25
vt 0.859 0.25
vt 0.859 0.375
vt 0.719 0.375
vt 0.719 0.25
vt 0.781 0.25
vt 0.781 0.375
vt 0.938 0.438
vt 0.063 0.438
vt 0.063 0.563
vt 0.938 0.094
vt 0.938 0.344
vt 0 0.344
vt 0 0.094
vt 0.031 0.625
vt 0.969 0.625
vt 0.031 0.969
vt 0.969 0.969
vt 0.188 0.313
vt 0.25 0.313
vt 0.438 0.313
vt 0.438 0.25
vt 0.438 1
vt 0.5 0.313
vt 0.5 1
vt 0 0.313
vn 0 0 -1
vn -1 0 0
vn 1 0 0
vn 0 -1 0
vn 0 0 1
vn 0 1 0
g 1
2015-03-22 06:36:56 +01:00
s off
f 7/1/1 5/2/1 2/3/1 8/4/1
f 4/5/1 7/6/1 8/7/1 1/8/1
f 38/9/2 39/10/2 35/11/2 34/12/2
f 40/13/3 41/14/3 37/15/3 36/16/3
f 101/17/1 109/18/1 96/19/1 39/20/1
f 99/21/4 98/22/4 36/23/4 37/24/4
f 68/25/5 66/26/5 62/27/5 65/28/5
f 67/26/3 68/29/3 65/30/3 64/27/3
f 52/31/1 53/32/1 50/33/1 49/34/1
f 104/35/1 91/36/1 90/37/1 111/38/1
f 51/39/2 52/40/2 49/41/2 48/42/2
f 54/43/6 53/32/6 52/31/6 51/44/6
f 59/45/1 60/17/1 56/46/1 55/47/1
f 60/10/3 61/48/3 57/49/3 56/50/3
f 61/14/6 60/17/6 59/45/6 58/51/6
f 89/27/5 87/28/5 83/25/5 86/26/5
f 73/52/1 74/53/1 70/54/1 69/55/1
f 74/56/3 75/57/3 71/58/3 70/59/3
f 75/60/6 74/53/6 73/52/6 72/61/6
f 79/62/2 80/63/2 77/64/2 76/65/2
f 80/66/1 81/67/1 78/68/1 77/69/1
f 87/28/2 88/70/2 84/71/2 83/25/2
f 82/72/6 81/67/6 80/66/6 79/73/6
f 48/74/4 49/34/4 50/33/4 36/75/4
f 44/76/1 67/71/1 64/70/1 63/77/1
f 104/78/6 95/79/6 94/80/6 100/18/6
f 58/62/2 59/63/2 55/64/2 45/65/2
f 53/56/3 54/57/3 36/58/3 50/59/3
f 66/71/2 44/25/2 63/28/2 62/70/2
f 45/81/4 55/47/4 56/46/4 57/82/4
f 43/30/3 89/27/3 86/26/3 85/29/3
f 72/39/2 73/40/2 69/41/2 35/42/2
f 88/70/1 43/77/1 85/76/1 84/71/1
f 35/83/4 69/55/4 70/54/4 71/84/4
f 81/10/3 82/48/3 42/49/3 78/50/3
f 76/85/4 77/69/4 78/68/4 42/86/4
f 91/87/3 92/88/3 47/89/3 90/90/3
f 94/91/2 95/92/2 93/93/2 46/94/2
f 110/14/6 101/17/6 39/20/6 38/9/6
f 103/95/4 102/38/4 44/37/4 45/96/4
f 94/97/1 82/98/1 79/99/1 96/100/1
f 97/101/1 61/102/1 58/103/1 92/104/1
f 107/18/1 57/19/1 54/9/1 108/14/1
f 105/23/1 71/105/1 75/80/1 106/18/1
f 110/15/5 38/12/5 34/9/5 99/14/5
f 41/15/5 110/12/5 99/9/5 37/14/5
f 48/106/1 105/22/1 106/19/1 51/107/1
f 76/18/1 107/19/1 108/9/1 72/14/1
f 42/108/4 43/109/4 102/110/4 103/111/4
f 41/14/6 40/17/6 101/20/6 110/9/6
f 91/36/6 104/35/6 100/19/6 92/107/6
f 95/79/1 104/78/1 111/110/1 93/109/1
f 34/21/4 35/22/4 98/23/4 99/24/4
f 40/17/1 97/18/1 109/19/1 101/20/1
# 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 9/112/6 7/6/6 4/5/6 3/113/6
f 6/114/6 5/2/6 7/1/6 9/115/6
# 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 3
f 10/43/3 11/116/3 29/117/3 28/44/3
f 32/118/1 10/117/1 28/74/1 26/119/1
f 31/120/2 32/118/2 26/121/2 23/122/2
f 23/14/4 26/123/4 28/116/4 29/43/4
f 12/44/6 13/117/6 14/118/6 15/120/6
f 27/116/4 25/43/4 17/14/4 16/123/4
f 11/118/6 10/120/6 32/44/6 31/117/6
f 21/44/6 22/117/6 33/118/6 24/120/6
f 20/14/4 19/123/4 18/116/4 30/43/4
f 15/120/2 14/118/2 25/121/2 27/122/2
f 24/120/2 33/118/2 19/121/2 20/122/2
f 33/118/1 22/117/1 18/74/1 19/119/1
f 22/43/3 21/116/3 30/117/3 18/44/3
f 14/74/1 13/119/1 17/118/1 25/117/1
f 13/43/3 12/116/3 16/117/3 17/44/3