homedecor_modpack/homedecor_misc/models/homedecor_small_rug.obj

239 lines
4.9 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 -0.437 0
v 0.323 -0.437 0.406
v -0.491 -0.45 -0.246
v -0.491 -0.5 0.246
v 0.246 -0.45 -0.491
v -0.246 -0.5 -0.491
v 0.491 -0.45 0.246
v 0.491 -0.5 -0.246
v -0.246 -0.45 0.491
v 0.246 -0.5 0.491
v -0.491 -0.45 0.246
v -0.491 -0.5 -0.246
v -0.246 -0.45 -0.491
v 0.246 -0.5 -0.491
v 0.491 -0.45 -0.246
v 0.491 -0.5 0.246
v 0.246 -0.45 0.491
v -0.246 -0.5 0.491
v -0.451 -0.45 -0.359
v -0.451 -0.5 0.359
v 0.359 -0.45 -0.451
v -0.359 -0.5 -0.451
v 0.451 -0.45 0.359
v 0.451 -0.5 -0.359
v -0.359 -0.45 0.451
v 0.359 -0.5 0.451
v 0.406 -0.437 -0.323
v -0.323 -0.437 -0.406
v -0.406 -0.437 0.323
v -0.323 -0.437 0.406
v 0.406 -0.437 0.323
v 0.323 -0.437 -0.406
v -0.406 -0.437 -0.323
v 0.221 -0.437 0.442
v 0.442 -0.437 -0.221
v -0.221 -0.437 -0.442
v -0.442 -0.437 0.221
v -0.221 -0.437 0.442
v 0.442 -0.437 0.221
v 0.221 -0.437 -0.442
v -0.442 -0.437 -0.221
v 0 -0.5 0
v -0.451 -0.45 0.359
v -0.451 -0.5 -0.359
v -0.359 -0.45 -0.451
v 0.359 -0.5 -0.451
v 0.451 -0.45 -0.359
v 0.451 -0.5 0.359
v 0.359 -0.45 0.451
v -0.359 -0.5 0.451
vt 1 0.125
vt 1 0.25
vt 0.938 0.25
vt 0.938 0.125
vt 0.875 1
vt 0.75 1
vt 0.75 0.938
vt 0.875 0.938
vt 0.125 0
vt 0.25 0
vt 0.25 0.063
vt 0.125 0.063
vt 0.866 0.959
vt 0.725 0.95
vt 0.829 0.913
vt 0 0.75
vt 0 0.625
vt 0.063 0.625
vt 0.063 0.75
vt 0.375 0
vt 0.375 0.063
vt 1 0.375
vt 0.938 0.375
vt 0.625 1
vt 0.625 0.938
vt 0 0.125
vt 0.063 0.125
vt 0.063 0.688
vt 0 0.688
vt 0.041 0.134
vt 0.134 0.041
vt 0.171 0.087
vt 0.087 0.171
vt 0.875 0
vt 0.875 0.063
vt 1 0.875
vt 0.938 0.875
vt 0.125 1
vt 0.125 0.938
vt 0 1
vt 0 0.938
vt 1 1
vt 0.938 1
vt 1 0
vt 1 0.063
vt 0 0
vt 0.063 0
vt 0 0.875
vt 0.063 0.875
vt 0.041 0.866
vt 0.05 0.725
vt 0.087 0.829
vt 0.75 0
vt 0.725 0.05
vt 0.275 0.05
vt 1 0.75
vt 0.95 0.725
vt 0.95 0.275
vt 0.25 1
vt 0.275 0.95
vt 0 0.25
vt 0.05 0.275
vt 0.866 0.041
vt 0.829 0.087
vt 0.959 0.866
vt 0.913 0.829
vt 0.134 0.959
vt 0.171 0.913
vt 0.959 0.134
vt 0.913 0.171
vt 0.5 0.5
vn 0.433 0.588 -0.684
vn 0.684 0.588 -0.433
vn 0.635 -0.66 -0.4
vn 0.4 -0.66 -0.635
vn 0.684 0.588 0.433
vn 0.433 0.588 0.684
vn 0.4 -0.66 0.635
vn 0.635 -0.66 0.4
vn -0.684 0.588 -0.433
vn -0.433 0.588 -0.684
vn -0.4 -0.66 -0.635
vn -0.635 -0.66 -0.4
vn 0.14 0.591 -0.795
vn 0.017 0.992 -0.128
vn 0.063 0.993 -0.104
vn -0.684 0.588 0.433
vn -0.795 0.591 0.14
vn -0.731 -0.671 0.125
vn -0.635 -0.66 0.4
vn -0.14 0.591 -0.795
vn -0.125 -0.671 -0.731
vn 0.795 0.591 -0.14
vn 0.731 -0.671 -0.125
vn 0.14 0.591 0.795
vn 0.125 -0.671 0.731
vn -0.795 0.591 -0.14
vn -0.731 -0.671 -0.125
vn -0.433 0.588 0.684
vn -0.063 0.993 0.104
vn -0.104 0.993 0.063
vn 0.125 -0.671 -0.731
vn 0.795 0.591 0.14
vn 0.731 -0.671 0.125
vn -0.14 0.591 0.795
vn -0.125 -0.671 0.731
vn -0.4 -0.66 0.635
vn -0.128 0.992 -0.017
vn -0.104 0.993 -0.063
vn 0.017 0.992 0.128
vn -0.017 0.992 0.128
vn 0.128 0.992 -0.017
vn 0.128 0.992 0.017
vn -0.017 0.992 -0.128
vn -0.128 0.992 0.017
vn 0.063 0.993 0.104
vn 0.104 0.993 -0.063
vn -0.063 0.993 -0.104
vn 0.104 0.993 0.063
vn 0 1 0
vn 0 -1 0
g 1
s 1
f 21/1/1 47/2/2 24/3/3 46/4/4
f 23/5/5 49/6/6 26/7/7 48/8/8
f 19/9/9 45/10/10 22/11/11 44/12/12
f 21/13/1 5/6/13 40/14/14 32/15/15
f 43/16/16 11/17/17 4/18/18 20/19/19
f 45/10/10 13/20/20 6/21/21 22/11/11
f 47/2/2 15/22/22 8/23/23 24/3/3
f 49/6/6 17/24/24 10/25/25 26/7/7
f 3/26/26 12/27/27 4/28/18 11/29/17
f 43/30/16 25/31/28 30/32/29 29/33/30
f 5/34/13 14/35/31 6/21/21 13/20/20
f 7/36/32 16/37/33 8/23/23 15/22/22
f 17/24/24 9/38/34 18/39/35 10/25/25
f 9/38/34 25/40/28 50/41/36 18/39/35
f 7/36/32 23/42/5 48/43/8 16/37/33
f 5/34/13 21/44/1 46/45/4 14/35/31
f 3/26/26 19/46/9 44/47/12 12/27/27
f 25/48/28 43/16/16 20/19/19 50/49/36
f 19/50/9 3/16/26 41/51/37 33/52/38
f 9/10/34 17/53/24 34/54/39 38/55/40
f 7/2/32 15/56/22 35/57/41 39/58/42
f 5/6/13 13/59/20 36/60/43 40/14/14
f 3/16/26 11/61/17 37/62/44 41/51/37
f 17/53/24 49/63/6 2/64/45 34/54/39
f 15/56/22 47/65/2 27/66/46 35/57/41
f 13/59/20 45/67/10 28/68/47 36/60/43
f 49/63/6 23/69/5 31/70/48 2/64/45
f 11/61/17 43/30/16 29/33/30 37/62/44
f 25/31/28 9/10/34 38/55/40 30/32/29
f 47/65/2 21/13/1 32/15/15 27/66/46
f 23/69/5 7/2/32 39/58/42 31/70/48
f 45/67/10 19/50/9 33/52/38 28/68/47
f 30/32/29 38/55/40 1/71/49
f 38/55/40 34/54/39 1/71/49
f 34/54/39 2/64/45 1/71/49
f 2/64/45 31/70/48 1/71/49
f 31/70/48 39/58/42 1/71/49
f 39/58/42 35/57/41 1/71/49
f 35/57/41 27/66/46 1/71/49
f 27/66/46 32/15/15 1/71/49
f 32/15/15 40/14/14 1/71/49
f 40/14/14 36/60/43 1/71/49
f 36/60/43 28/68/47 1/71/49
f 28/68/47 33/52/38 1/71/49
f 33/52/38 41/51/37 1/71/49
f 41/51/37 37/62/44 1/71/49
f 37/62/44 29/33/30 1/71/49
f 29/33/30 30/32/29 1/71/49
# 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 22/31/11 6/10/21 42/71/50
f 4/16/18 12/61/27 42/71/50
f 12/61/27 44/30/12 42/71/50
f 44/30/12 22/31/11 42/71/50
f 14/53/31 46/63/4 42/71/50
f 46/63/4 24/69/3 42/71/50
f 24/69/3 8/2/23 42/71/50
f 8/2/23 16/56/33 42/71/50
f 16/56/33 48/65/8 42/71/50
f 48/65/8 26/13/7 42/71/50
f 26/13/7 10/6/25 42/71/50
f 20/50/19 4/16/18 42/71/50
f 6/10/21 14/53/31 42/71/50
f 10/6/25 18/59/35 42/71/50
f 18/59/35 50/67/36 42/71/50
f 50/67/36 20/50/19 42/71/50