homedecor_modpack/computer/models/tetris_arcade.obj
ExeVirus f9ca183f2a # 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 07:28:20 -05:00

137 lines
2.2 KiB
Plaintext

v -0.45 1.3 -0.45
v -0.45 1.3 -0.5
v 0.45 1.3 -0.5
v 0.45 1.3 -0.45
v -0.45 1.5 -0.45
v -0.45 1.5 -0.5
v 0.45 1.5 -0.5
v 0.45 1.5 -0.45
v 0.45 -0.495 -0.5
v 0.45 0.305 -0.5
v -0.45 -0.495 -0.5
v -0.45 0.305 -0.5
v 0.45 -0.498 0.5
v 0.45 -0.498 -0.5
v 0.5 -0.498 -0.5
v 0.5 -0.498 0.5
v 0.45 1.499 0.5
v 0.45 1.499 -0.5
v 0.5 1.499 -0.5
v 0.5 1.499 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 1.5 -0.5
v -0.5 1.5 -0.5
v -0.5 1.5 0.5
v 0.5 1.5 0.5
v -0.5 -0.498 0.5
v -0.5 -0.498 -0.5
v -0.45 -0.498 -0.5
v -0.45 -0.498 0.5
v -0.5 1.499 0.5
v -0.5 1.499 -0.5
v -0.45 1.499 -0.5
v -0.45 1.499 0.5
v 0.45 0.305 -0.5
v 0.45 0.474 -0.137
v -0.45 0.305 -0.5
v -0.45 0.474 -0.137
v 0.45 0.473 -0.138
v 0.45 0.614 -0.087
v -0.45 0.473 -0.138
v -0.45 0.614 -0.087
v 0.45 0.611 -0.085
v 0.45 1.399 0.054
v -0.45 0.611 -0.085
v -0.45 1.399 0.054
v 0.45 1.395 0.055
v 0.45 1.495 0.055
v -0.45 1.395 0.055
v -0.45 1.495 0.055
vt 0.25 0.745
vt 0.25 0.516
vt 0.495 0.516
vt 0.495 0.745
vt 0.5 0.745
vt 0.25 0.745
vt 0.25 0.693
vt 0.5 0.693
vt 0.245 1
vt 0 1
vt 0 0.926
vt 0.245 0.926
vt 0 0.985
vt 0.246 0.985
vt 0.247 1
vt 0.255 0.396
vt 0.255 0.252
vt 0.49 0.252
vt 0.49 0.396
vt 0.747 0.252
vt 1.001 0.252
vt 1 0.749
vt 0.748 0.749
vt 0.971 0.251
vt 0.999 0.251
vt 1 0.749
vt 0.972 0.749
vt 0.25 0.75
vt 0 0.75
vt 0.001 0.252
vt 0.25 0.252
vt 0.742 0.745
vt 0.501 0.745
vt 0.501 0.255
vt 0.742 0.255
vt 0.952 0.253
vt 1 0.253
vt 1 0.749
vt 0.952 0.749
vt 1 0.749
vt 0.745 0.749
vt 0.745 0.251
vt 1.001 0.251
vt 0.256 0.485
vt 0.255 0.402
vt 0.495 0.401
vt 0.495 0.485
vt 0.261 0.516
vt 0.261 0.485
vt 0.494 0.485
vt 0.494 0.516
vt 0 0.745
vt 0 0.703
vt 0.246 0.704
vt 0.246 0.745
vt 0.25 0.25
vt 0 0.25
vt 0 0
vt 0.25 0
vt 0.25 0.75
vt 0.25 1
vt 0 0.75
vt 1 0.25
vt 1 0.75
vt 0.75 0.75
vt 0.75 0.25
s off
f 46/1 45/2 47/3 48/4
f 6/5 7/6 3/7 2/8
f 8/9 5/10 1/11 4/12
f 1/10 2/13 3/14 4/15
f 10/16 9/17 11/18 12/19
f 17/20 18/21 14/22 13/23
f 18/24 19/25 15/26 14/27
f 19/28 20/29 16/30 15/31
f 33/32 34/33 30/34 29/35
f 34/36 35/37 31/38 30/39
f 35/40 36/41 32/42 31/43
f 38/44 37/45 39/46 40/47
f 42/48 41/49 43/50 44/51
f 50/52 49/53 51/54 52/55
f 21/56 22/57 23/58 24/59
f 25/60 26/61 27/10 28/62
f 22/63 28/64 27/65 23/66