homedecor_modpack/homedecor_lighting/models/plasma_lamp.obj

200 lines
3.7 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.5 -0.5 -0.5
v 0.5 0.5 -0.5
v 0.5 -0.5 0.5
v 0.5 0.5 0.5
v -0.5 -0.5 -0.5
v -0.5 0.5 -0.5
v -0.5 -0.5 0.5
v -0.5 0.5 0.5
v 0.438 -0.437 -0.437
v 0.438 0.438 -0.437
v 0.438 -0.437 0.438
v 0.438 0.438 0.438
v -0.437 -0.437 -0.437
v -0.437 0.438 -0.437
v -0.437 -0.437 0.438
v -0.437 0.438 0.438
v -0.5 -0.437 -0.437
v -0.5 0.438 -0.437
v -0.5 -0.437 0.438
v -0.5 0.438 0.438
v 0.5 -0.437 -0.437
v 0.5 0.438 -0.437
v 0.5 -0.437 0.438
v 0.5 0.438 0.438
v 0.438 -0.437 -0.5
v 0.438 0.438 -0.5
v -0.437 -0.437 -0.5
v -0.437 0.438 -0.5
v 0.438 -0.437 0.5
v 0.438 0.438 0.5
v -0.437 -0.437 0.5
v -0.437 0.438 0.5
v 0.438 0.5 -0.437
v 0.438 0.5 0.438
v -0.437 0.5 -0.437
v -0.437 0.5 0.438
v 0.438 -0.5 -0.437
v 0.438 -0.5 0.438
v -0.437 -0.5 -0.437
v -0.437 -0.5 0.438
vt 0.063 0
vt 0.938 0
vt 0.938 0.063
vt 0.063 0.063
vt 0 0.938
vt 0 0.063
vt 0.063 0.938
vt 0 0.063
vt 0 0.938
vt 0 0.938
vt 0 0.063
vt 0.063 0.063
vt 0.063 0.938
vt 0 0.938
vt 0.063 0.938
vt 0.063 0.063
vt 0 0.063
vt 0.938 0
vt 0.063 0
vt 0.938 0.063
vt 0.063 0.938
vt 0.063 0.063
vt 0 0.063
vt 0 0.938
vt 1 0.938
vt 1 0.063
vt 0.938 0.938
vt 1 0.938
vt 0.938 0.938
vt 1 0.938
vt 0.938 0.938
vt 0.938 0.063
vt 1 0.063
vt 1 0.063
vt 1 0.938
vt 1 0.063
vt 0.938 1
vt 0.063 1
vt 0.938 0.938
vt 0.938 0.063
vt 1 0.063
vt 1 0.938
vt 0.063 1
vt 0.938 1
vt 0.063 0
vt 0.938 0
vt 0.063 0
vt 0.938 0
vt 0.063 0
vt 0.938 0
vt 0.063 1
vt 0.938 1
vt 0.063 1
vt 0.938 1
vt 0.063 1
vt 0.938 1
vt 0 0
vt 1 0
vt 0.938 0.063
vt 0.063 0.063
vt 0 1
vt 0.063 0.938
vt 1 1
vt 0.938 0.938
vt 0 1
vt 0.063 0.938
vt 0.938 0.938
vt 1 0
vt 0.938 0.063
vt 0.063 0.063
vt 0 0
vt 1 1
vt 1 0
vt 0.938 0.063
vt 0.938 0.938
vt 0 0
vt 0.063 0.063
vt 0 1
vt 0.063 0.938
vt 0 0
vt 0.063 0.938
vt 0.063 0.063
vt 0.938 0.938
vt 0.938 0.063
vt 1 0
vt 0.938 0.063
vt 0.938 0.938
vt 1 1
vt 0.063 0.938
vt 0 1
vt 0.063 0.063
vt 0.063 0.063
vt 0.063 0.938
vt 0.938 0.938
vt 1 1
vt 0.938 0.063
vn 0 1 0
vn -1 0 0
vn 0 0 1
vn 0 0 -1
vn 0 -1 0
vn 1 0 0
g 1
2017-06-15 19:42:44 +02:00
s off
f 25/1/1 27/2/1 13/3/1 9/4/1
f 26/5/2 25/6/2 9/4/2 10/7/2
f 21/8/3 22/9/3 10/7/3 9/4/3
f 24/10/4 23/11/4 11/12/4 12/13/4
f 23/14/1 21/8/1 9/4/1 11/15/1
f 12/13/5 10/16/5 22/17/5 24/10/5
f 28/18/5 26/19/5 10/16/5 14/20/5
f 14/21/6 13/22/6 27/23/6 28/24/6
f 18/25/3 17/26/3 13/3/3 14/27/3
f 17/26/1 19/28/1 15/29/1 13/3/1
f 20/30/4 16/31/4 15/32/4 19/33/4
f 20/30/5 18/34/5 14/20/5 16/31/5
f 16/31/6 32/35/6 31/36/6 15/32/6
f 31/37/1 29/38/1 11/15/1 15/29/1
f 12/39/2 11/40/2 29/41/2 30/42/2
f 30/43/5 32/44/5 16/31/5 12/13/5
f 15/32/4 11/12/4 38/45/4 40/46/4
f 13/22/6 15/32/6 40/46/6 39/47/6
f 9/4/3 13/3/3 39/48/3 37/49/3
f 11/40/2 9/4/2 37/49/2 38/50/2
f 16/31/6 14/21/6 35/51/6 36/52/6
f 12/13/4 16/31/4 36/52/4 34/53/4
f 10/7/2 12/39/2 34/54/2 33/55/2
f 14/27/3 10/7/3 33/55/3 35/56/3
f 2/57/1 6/58/1 35/59/1 33/60/1
f 4/61/1 2/57/1 33/60/1 34/62/1
f 8/63/1 4/61/1 34/62/1 36/64/1
f 6/58/1 8/63/1 36/64/1 35/59/1
f 6/65/2 18/66/2 20/67/2 8/63/2
f 7/68/2 8/63/2 20/67/2 19/69/2
f 7/68/2 19/69/2 17/70/2 5/71/2
f 5/71/2 17/70/2 18/66/2 6/65/2
f 7/72/5 5/73/5 39/74/5 40/75/5
f 5/73/5 1/76/5 37/77/5 39/74/5
f 1/76/5 3/78/5 38/79/5 37/77/5
f 3/78/5 7/72/5 40/75/5 38/79/5
f 3/80/3 4/61/3 30/81/3 29/82/3
f 8/63/3 32/83/3 30/81/3 4/61/3
f 7/68/3 31/84/3 32/83/3 8/63/3
f 3/80/3 29/82/3 31/84/3 7/68/3
f 3/85/6 23/86/6 24/87/6 4/88/6
f 4/88/6 24/87/6 22/89/6 2/90/6
f 2/90/6 22/89/6 21/91/6 1/76/6
f 1/76/6 21/91/6 23/86/6 3/85/6
f 2/90/4 1/76/4 25/92/4 26/93/4
f 2/90/4 26/93/4 28/94/4 6/95/4
f 5/73/4 6/95/4 28/94/4 27/96/4
f 5/73/4 27/96/4 25/92/4 1/76/4
# 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
2017-06-15 19:42:44 +02:00
f 9/4/6 10/7/6 12/39/6 11/40/6
f 11/12/3 12/13/3 16/31/3 15/32/3
f 15/32/2 16/31/2 14/21/2 13/22/2
f 13/3/4 14/27/4 10/7/4 9/4/4
f 11/15/5 15/29/5 13/3/5 9/4/5
f 16/31/1 12/13/1 10/16/1 14/20/1