homedecor_modpack/homedecor_books/models/homedecor_book.obj

250 lines
4.8 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.162 -0.448 0.217
v 0.15 -0.486 0.217
v 0.113 -0.486 0.217
v 0.142 -0.448 0.217
v 0.116 -0.486 0.208
v 0.142 -0.448 0.208
v 0.113 -0.486 -0.221
v -0.159 -0.486 -0.221
v 0.116 -0.486 -0.212
v 0.162 -0.448 0.208
v -0.149 -0.486 0.208
v -0.156 -0.448 0.208
v -0.156 -0.448 -0.212
v -0.149 -0.486 -0.212
v 0.152 -0.486 0.208
v 0.152 -0.486 -0.212
v 0.162 -0.448 -0.221
v 0.162 -0.448 -0.212
v 0.145 -0.5 -0.212
v 0.145 -0.5 0.208
v 0.116 -0.5 0.208
v 0.116 -0.5 -0.212
v 0.116 -0.396 -0.212
v 0.116 -0.396 0.208
v 0.145 -0.396 0.208
v 0.145 -0.396 -0.212
v 0.152 -0.41 -0.212
v 0.152 -0.41 0.208
v -0.149 -0.41 -0.212
v -0.149 -0.41 0.208
v 0.116 -0.41 -0.212
v -0.159 -0.41 -0.221
v 0.113 -0.41 -0.221
v 0.116 -0.41 0.208
v 0.113 -0.41 0.217
v 0.15 -0.41 0.217
v 0.116 -0.396 0.217
v 0.142 -0.396 0.217
v 0.15 -0.41 -0.221
v 0.142 -0.396 -0.221
v -0.159 -0.396 -0.221
v -0.159 -0.396 0.217
v 0.116 -0.396 -0.221
v -0.159 -0.41 0.217
v 0.116 -0.5 0.217
v 0.142 -0.5 0.217
v 0.142 -0.448 -0.212
v 0.15 -0.486 -0.221
v 0.142 -0.5 -0.221
v -0.159 -0.5 -0.221
v -0.159 -0.5 0.217
v 0.142 -0.448 -0.221
v 0.116 -0.5 -0.221
v -0.159 -0.486 0.217
vt 0.922 0.384
vt 0.922 0.34
vt 0.932 0.34
vt 0.932 0.384
vt 0.932 0.427
vt 0.922 0.427
vt 0.768 0.49
vt 0.723 0.49
vt 0.723 0.01
vt 0.768 0.01
vt 0.768 0.5
vt 0.722 0.5
vt 0.81 0.49
vt 0.809 0.5
vt 0.352 0
vt 0.671 0
vt 0.671 0.01
vt 0.671 0.49
vt 0.671 0.5
vt 0.352 0.5
vt 0.81 0.01
vt 0.809 0
vt 0.824 0
vt 0.824 0.01
vt 0.012 0.51
vt 0 0.5
vt 0.315 0.5
vt 0.318 0.51
vt 0.701 0
vt 0.705 0.01
vt 0.731 0.868
vt 0.731 0.845
vt 0.775 0.812
vt 0.775 0.853
vt 0.687 0.853
vt 0.687 0.812
vt 0.775 0.5
vt 0.791 0.5
vt 0.791 0.815
vt 0.791 0.844
vt 0.851 0.523
vt 0.851 0.5
vt 0.895 0.514
vt 0.895 0.556
vt 0.922 0.34
vt 0.922 0.384
vt 0.912 0.384
vt 0.912 0.34
vt 0.335 0.5
vt 0.335 1
vt 0.318 1
vt 0.318 0.5
vt 0.895 0.868
vt 0.912 0.523
vt 0.912 0.553
vt 0.912 0.868
vt 0.824 0.49
vt 0.824 0.5
vt 0.807 0.556
vt 0.807 0.514
vt 0.768 0
vt 0.722 0
vt 0.922 0.427
vt 0.912 0.427
vt 0.318 0.99
vt 0.315 1
vt 0 1
vt 0.012 0.99
vt 0.705 0.49
vt 0.318 0.49
vt 0.318 0.01
vt 0.352 0.01
vt 0.352 0.49
vt 0.706 0.49
vt 0.706 0.01
vt 0.671 0.51
vt 0.365 0.51
vt 0.352 0.5
vt 0.668 0.5
vt 0.318 0
vt 0.348 0
vt 0.705 0.5
vt 0.807 0.868
vt 0.791 0.868
vt 0.791 0.553
vt 0.791 0.523
vt 0.336 0.5
vt 0.352 1
vt 0.336 1
vt 0.671 0.844
vt 0.671 0.815
vt 0.671 0.5
vt 0.687 0.5
vt 0.348 0.5
vt 0.318 0.5
vt 0.365 0.99
vt 0.671 0.99
vt 0.668 1
vt 0.705 0
vt 0 0.5
vt 0 0
vt 0.669 0.64
vt 0.641 0.64
vt 0.641 0.631
vt 0.673 0.631
vt 0.439 1
vt 0.439 0.319
vt 0.527 0.379
vt 0.527 0.985
vt 0.088 1
vt 0.088 0.319
vt 0.176 0.335
vt 0.176 0.94
vt 0.351 0.985
vt 0.351 0.379
vt 0 0.94
vt 0 0.335
vt 0.351 0
vt 0.351 0.961
vt 0.264 0.961
vt 0.264 0
vt 0.176 0
vt 0.176 0.961
vn -0.803 -0.583 0.124
vn -0.803 0.583 0.124
vn 0.97 0.243 0
vn 0.948 0.274 -0.162
vn 0.948 -0.274 -0.162
vn 0 -1 0
vn 0.832 -0.453 0.321
vn 0 1 0
vn 0 0 1
vn 0 0 -1
vn -0.803 -0.583 -0.124
vn -1 0 0
vn 0.832 -0.453 -0.321
vn 0.948 -0.274 0.163
vn 0.97 -0.243 0
vn 0.948 0.274 0.163
vn -0.803 0.583 -0.124
vn 0.888 -0.461 0
vn 0.888 0.461 0
vn 0.832 0.453 -0.321
vn 0.832 0.453 0.321
vn -0.985 -0.174 0
vn -0.985 0.175 0
g 1
2015-02-15 14:48:48 +01:00
s off
f 47/1/1 31/2/1 33/3/1 52/4/1
f 47/1/2 52/4/2 7/5/2 9/6/2
f 18/7/3 27/8/3 28/9/3 10/10/3
f 27/8/4 18/7/4 17/11/4 39/12/4
f 16/13/5 48/14/5 17/11/5 18/7/5
f 50/15/6 53/16/6 22/17/6 21/18/6 45/19/6 51/20/6
f 15/21/7 2/22/7 46/23/7 20/24/7
f 11/25/8 54/26/8 3/27/8 5/28/8
f 22/17/6 53/16/6 49/29/6 19/30/6
f 1/31/9 4/32/9 3/33/9 2/34/9
f 1/31/9 36/35/9 35/36/9 4/32/9
f 2/34/9 3/33/9 54/37/9 51/38/9 45/39/9 46/40/9
f 52/41/10 17/42/10 48/43/10 7/44/10
f 34/45/11 6/46/11 4/47/11 35/48/11
f 50/49/12 51/50/12 54/51/12 8/52/12
f 8/53/10 7/44/10 48/43/10 49/54/10 53/55/10 50/56/10
f 19/57/13 49/58/13 48/14/13 16/13/13
f 52/41/10 33/59/10 39/60/10 17/42/10
f 10/10/14 1/61/14 2/22/14 15/21/14
f 18/7/15 10/10/15 15/21/15 16/13/15
f 10/10/16 28/9/16 36/62/16 1/61/16
f 5/63/17 3/64/17 4/47/17 6/46/17
f 9/65/8 7/66/8 8/67/8 14/68/8
f 16/13/18 15/21/18 20/24/18 19/57/18
f 22/17/6 19/30/6 20/69/6 21/18/6
f 23/70/8 24/71/8 25/72/8 26/73/8
f 27/8/19 26/74/19 25/75/19 28/9/19
f 31/76/6 29/77/6 32/78/6 33/79/6
f 25/72/8 24/71/8 37/80/8 38/81/8
f 26/74/20 27/8/20 39/12/20 40/82/20
f 32/83/10 41/84/10 43/85/10 40/86/10 39/60/10 33/59/10
f 41/87/12 32/78/12 44/88/12 42/89/12
f 36/35/9 38/90/9 37/91/9 42/92/9 44/93/9 35/36/9
f 23/70/8 26/73/8 40/94/8 43/95/8
f 30/96/6 34/97/6 35/98/6 44/88/6
f 28/9/21 25/75/21 38/99/21 36/62/21
f 29/77/6 30/96/6 44/88/6 32/78/6
f 41/100/8 42/101/8 37/80/8 24/71/8 23/70/8 43/95/8
f 54/26/8 11/25/8 14/68/8 8/67/8
f 46/102/6 45/103/6 21/104/6 20/105/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 2
f 13/106/10 47/107/10 9/108/10 14/109/10
f 6/110/9 12/111/9 11/112/9 5/113/9
f 13/106/10 29/114/10 31/115/10 47/107/10
f 6/110/9 34/116/9 30/117/9 12/111/9
f 14/118/22 11/119/22 12/120/22 13/121/22
f 29/122/23 13/121/23 12/120/23 30/123/23