homedecor_modpack/computer/models/computer_laptop.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

120 lines
2.0 KiB
Plaintext

v -0.34 0.023 0.335
v -0.34 0.013 0.362
v 0.332 0.023 0.335
v 0.332 -0.433 0.183
v 0.332 0.013 0.363
v -0.34 -0.5 -0.313
v -0.34 -0.433 -0.313
v 0.332 -0.5 -0.313
v -0.34 -0.5 0.183
v 0.332 -0.5 0.183
v -0.34 -0.433 0.183
v -0.34 -0.433 0.21
v 0.332 -0.433 0.21
v 0.332 -0.5 0.21
v -0.34 -0.5 0.21
v -0.32 -0.418 0.195
v -0.32 -0.001 0.334
v 0.312 -0.418 0.195
v -0.34 -0.433 -0.159
v 0.332 -0.433 -0.313
v 0.312 -0.001 0.334
v 0.332 -0.433 -0.159
vt 0.683 0.005
vt 0.683 0.021
vt 0.31 0.005
vt 0.044 0.009
vt 0.31 0.021
vt 0.753 0.12
vt 0.81 0.12
vt 0.753 0.598
vt 0.857 0.982
vt 0.746 0.982
vt 0.857 0.831
vt 0.948 0.009
vt 0.878 0.982
vt 0.878 0.831
vt 0.984 0.982
vt 0.863 0.831
vt 0.863 0.982
vt 0.728 0.491
vt 0.728 0.99
vt 0.011 0.491
vt 0.832 0.13
vt 0.982 0.13
vt 0.832 0.79
vt 0.758 0.755
vt 0.758 0.813
vt 0.756 0.753
vt 0.799 0.813
vt 0.756 0.815
vt 0.799 0.755
vt 0.8 0.815
vt 0.708 0.114
vt 0.708 0.471
vt 0.006 0.114
vt 0.346 0.099
vt 0.497 0.033
vt 0.497 0.099
vt 0.991 0.099
vt 0.838 0.033
vt 0.991 0.033
vt 0.008 0.009
vt 0.013 0.023
vt 0.984 0.01
vt 0.943 0.023
vt 0.049 0.023
vt 0.81 0.598
vt 0.746 0.831
vt 0.984 0.831
vt 0.011 0.99
vt 0.982 0.79
vt 0.8 0.753
vt 0.006 0.471
vt 0.008 0.099
vt 0.008 0.033
vt 0.498 0.099
vt 0.498 0.033
vt 0.979 0.024
s off
f 1/1 2/2 3/3
f 4/4 3/3 5/5
f 6/6 7/7 8/8
f 9/9 6/10 10/11
f 1/1 11/12 2/2
f 12/13 13/14 2/15
f 13/14 12/13 14/16
f 9/9 10/11 15/17
f 16/18 17/19 18/20
f 7/21 19/22 20/23
f 21/24 17/25 3/26
f 16/27 1/28 17/25
f 18/29 21/24 3/26
f 16/27 18/29 11/30
f 19/31 11/32 22/33
f 22/34 8/35 20/36
f 6/37 19/38 7/39
f 10/40 4/4 14/41
f 11/12 9/42 12/43
f 2/2 5/5 3/3
f 13/44 4/4 5/5
f 7/7 20/45 8/8
f 6/10 8/46 10/11
f 11/12 12/43 2/2
f 13/14 5/47 2/15
f 12/13 15/17 14/16
f 10/11 14/16 15/17
f 17/19 21/48 18/20
f 19/22 22/49 20/23
f 17/25 1/28 3/26
f 11/30 1/28 16/27
f 4/50 18/29 3/26
f 18/29 4/50 11/30
f 11/32 4/51 22/33
f 4/52 10/53 8/35
f 22/34 4/52 8/35
f 9/54 11/55 6/37
f 11/55 19/38 6/37
f 4/4 13/44 14/41
f 9/42 15/56 12/43