homedecor_modpack/homedecor_misc/models/homedecor_banister_diagonal...

165 lines
3.1 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.421 1.531 0.5
v 0.579 0.531 0.5
v 0.516 0.469 0.5
v -0.484 1.469 0.5
v -0.421 1.531 0.312
v -0.484 1.469 0.312
v 0.516 0.469 0.312
v 0.579 0.531 0.312
v -0.203 0.25 0.437
v -0.265 0.25 0.437
v -0.265 1.25 0.437
v -0.203 1.188 0.437
v -0.203 0.25 0.375
v -0.203 1.188 0.375
v -0.265 1.25 0.375
v -0.265 0.25 0.375
v -0.265 0.25 0.5
v -0.203 0.25 0.5
v 0.297 -0.187 0.437
v 0.235 -0.187 0.437
v 0.235 0.813 0.437
v 0.297 0.75 0.437
v 0.297 -0.187 0.375
v 0.297 0.75 0.375
v 0.235 0.813 0.375
v 0.235 -0.187 0.375
v 0.235 -0.187 0.5
v 0.297 -0.187 0.5
v 0.297 -0.125 0.5
v 0.297 -0.125 0.437
v 0.235 -0.125 0.437
v 0.235 -0.125 0.5
v -0.203 0.313 0.437
v -0.203 0.313 0.5
v -0.265 0.313 0.5
v -0.265 0.313 0.437
vt -0.312 0.5
vt 0.563 0.5
vt 0.625 0.438
vt -0.312 0.438
vt 0.125 0.688
vt 0.125 0.75
vt 1.063 0.75
vt 1 0.688
vt 1 0.125
vt 1.125 0.125
vt 1.125 0.063
vt 1 0.063
vt 0.125 0.625
vt 1 0.625
vt 1.063 0.563
vt 0.125 0.563
vt 1.063 0.688
vt 1.188 0.125
vt 1.313 0.125
vt 1.313 0.063
vt 1.188 0.063
vt 0.875 0.875
vt 0.875 0.813
vt -0.062 0.813
vt -0.062 0.875
vt -0.312 0.375
vt 0.563 0.438
vt 0.563 0.375
vt 0.875 1
vt 0.875 0.938
vt -0.062 0.938
vt -0.062 1
vt 0.438 0.188
vt 0.438 0.25
vt 1.313 0.25
vt 1.313 0.188
vt 0.438 0.125
vt 0.5 0.188
vt 0.5 0.125
vt -0.375 0.813
vt -0.375 0.875
vt -0.312 0.875
vt -0.312 0.813
vt 0.813 0.125
vt 0.813 0.063
vt 0.75 0.063
vt 0.75 0.125
vt 0.938 0.125
vt 0.938 0.063
vt 0.875 0.063
vt 0.875 0.125
vt -0.312 0.938
vt -0.25 0.938
vt -0.25 0.875
vt -0.25 0.375
vt -0.25 0.313
vt -0.312 0.313
vt -0.125 0.875
vt -0.125 0.938
vt -0.125 1
vt -0.187 0.625
vt -0.187 0.563
vt -0.375 0.563
vt -0.375 0.625
vt -0.125 0.625
vt 0.063 0.625
vt 0.063 0.563
vt -0.125 0.563
vt 1.375 0.25
vt 1.375 0.063
vt 0.375 0.063
vt 0.375 0.25
vt -0.375 0.313
vt -0.375 0.5
vt 0.625 0.5
vt 0.625 0.313
vn 0.707 0 0.707
vn 0.555 0 0.832
vn -0.894 0 0.447
vn -0.707 0 0.707
vn 0.577 -0.577 -0.577
vn -0.577 -0.577 -0.577
vn -0.894 0 -0.447
vn 0.555 0 -0.832
vn 0.577 -0.577 0.577
vn -0.577 -0.577 0.577
vn 0.577 -0.577 0.577
vn 1 0 0
vn 0.707 0.707 0
vn 0.577 0.577 0.577
vn -1 0 0
vn -0.577 0.577 0.577
vn -0.707 0.707 0
vn 0 0.817 0.577
vn -0.816 0 0.577
vn 0 -0.816 0.577
vn 0.817 0 0.577
vn 0 0.817 -0.577
vn 0.817 0 -0.577
vn 0 -0.816 -0.577
vn -0.816 0 -0.577
g 1
s 1
f 9/1/1 12/2/2 11/3/3 10/4/4
f 13/5/5 16/6/6 15/7/7 14/8/8
f 13/9/5 18/10/9 17/11/10 16/12/6
f 19/13/1 22/14/2 21/15/3 20/16/4
f 23/13/5 26/5/6 25/17/7 24/14/8
f 23/18/5 28/19/11 27/20/10 26/21/6
f 11/22/3 15/23/7 16/24/6 10/25/4
f 9/26/1 13/4/5 14/27/8 12/28/2
f 21/29/3 25/30/7 26/31/6 20/32/4
f 19/33/1 23/34/5 24/35/8 22/36/2
f 28/37/11 19/33/12 30/38/13 29/39/14
f 20/40/15 27/41/10 32/42/16 31/43/17
f 33/44/13 36/45/17 35/46/16 34/47/14
f 30/48/13 31/49/17 32/50/16 29/51/14
f 10/42/15 17/52/10 35/53/16 36/54/17
f 33/55/13 34/56/14 18/57/9 9/26/12
f 17/42/10 18/52/9 34/53/14 35/54/16
f 27/40/10 28/41/11 29/42/14 32/43/16
# 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 1/30/18 4/22/19 3/58/20 2/59/21
f 5/30/22 8/59/23 7/60/24 6/29/25
f 1/61/18 5/62/22 6/63/25 4/64/19
f 2/65/21 3/66/20 7/67/24 8/68/23
f 4/69/19 6/70/25 7/71/24 3/72/20
f 2/73/21 8/74/23 5/75/22 1/76/18