1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 08:20:21 +01:00
homedecor_modpack/lavalamp/models/lavalamp.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

548 lines
12 KiB
Plaintext

v 0.017 0.5 -0.017
v 0.106 -0.5 -0.106
v 0.009 0.5 -0.023
v 0.057 -0.5 -0.139
v 0 0.5 -0.024
v 0 -0.5 -0.15
v 0.057 0 -0.139
v 0 0 -0.15
v 0.139 -0.5 -0.057
v 0.023 0.5 -0.009
v 0.15 -0.5 0
v 0.024 0.5 0
v 0.139 -0.5 0.057
v 0.023 0.5 0.009
v 0.106 -0.5 0.106
v 0.017 0.5 0.017
v 0.057 -0.5 0.139
v 0.009 0.5 0.023
v 0 -0.5 0.15
v 0 0.5 0.024
v -0.057 -0.5 0.139
v -0.009 0.5 0.023
v -0.106 -0.5 0.106
v -0.017 0.5 0.017
v -0.139 -0.5 0.057
v -0.023 0.5 0.009
v -0.15 -0.5 0
v -0.024 0.5 0
v -0.139 -0.5 -0.057
v -0.023 0.5 -0.009
v -0.106 -0.5 -0.106
v -0.017 0.5 -0.017
v -0.057 -0.5 -0.139
v -0.009 0.5 -0.023
v 0.106 0 -0.106
v 0.139 0 -0.057
v 0.15 0 0
v 0.139 0 0.057
v 0.106 0 0.106
v 0.057 0 0.139
v 0 0 0.15
v -0.057 0 0.139
v -0.106 0 0.106
v -0.139 0 0.057
v -0.15 0 0
v -0.139 0 -0.057
v -0.106 0 -0.106
v -0.057 0 -0.139
v 0.032 -0.25 -0.078
v 0.059 -0.25 -0.059
v 0.078 -0.25 -0.032
v 0.084 -0.25 0
v 0.078 -0.25 0.032
v 0.059 -0.25 0.059
v 0.032 -0.25 0.078
v 0 -0.25 0.084
v -0.032 -0.25 0.078
v -0.059 -0.25 0.059
v -0.078 -0.25 0.032
v -0.084 -0.25 0
v -0.078 -0.25 -0.032
v -0.059 -0.25 -0.059
v 0 -0.25 -0.084
v -0.032 -0.25 -0.078
v -0.125 0.125 -0.052
v -0.095 0.125 -0.095
v 0 0.375 -0.059
v 0.046 -0.375 -0.111
v -0.052 0.125 -0.125
v 0.085 -0.375 -0.085
v -0.135 0.125 0
v 0.111 -0.375 -0.046
v -0.125 0.125 0.052
v 0.12 -0.375 0
v -0.095 0.125 0.095
v 0.111 -0.375 0.046
v -0.052 0.125 0.125
v 0.085 -0.375 0.085
v 0 0.125 0.135
v 0.046 -0.375 0.111
v 0.052 0.125 0.125
v 0 -0.375 0.12
v 0.095 0.125 0.095
v -0.046 -0.375 0.111
v 0.125 0.125 0.052
v -0.085 -0.375 0.085
v 0.135 0.125 0
v -0.111 -0.375 0.046
v 0.125 0.125 -0.052
v -0.12 -0.375 0
v 0.095 0.125 -0.095
v -0.111 -0.375 -0.046
v 0.052 0.125 -0.125
v -0.085 -0.375 -0.085
v 0 -0.125 -0.15
v -0.046 -0.375 -0.111
v -0.055 0.375 -0.023
v -0.042 0.375 -0.042
v 0 0.125 -0.135
v 0.057 -0.125 -0.139
v -0.023 0.375 -0.055
v 0.106 -0.125 -0.106
v -0.059 0.375 0
v 0.139 -0.125 -0.057
v -0.055 0.375 0.023
v 0.15 -0.125 0
v -0.042 0.375 0.042
v 0.139 -0.125 0.057
v -0.023 0.375 0.055
v 0.106 -0.125 0.106
v 0 0.375 0.059
v 0.057 -0.125 0.139
v 0.023 0.375 0.055
v 0 -0.125 0.15
v 0.042 0.375 0.042
v -0.057 -0.125 0.139
v 0.055 0.375 0.023
v -0.106 -0.125 0.106
v 0.059 0.375 0
v -0.139 -0.125 0.057
v 0.055 0.375 -0.023
v -0.15 -0.125 0
v 0.042 0.375 -0.042
v -0.139 -0.125 -0.057
v 0.023 0.375 -0.055
v -0.106 -0.125 -0.106
v 0 -0.375 -0.12
v -0.057 -0.125 -0.139
vt 0.875 0.063
vt 0.75 0.063
vt 0.75 0
vt 0.875 0
vt 0.125 0.938
vt 0 0.938
vt 0 0.875
vt 0.125 0.875
vt 0 0.813
vt 0.125 0.813
vt 0 0.75
vt 0.125 0.75
vt 0.875 1
vt 0.75 1
vt 0.75 0.938
vt 0.875 0.938
vt 0 0.688
vt 0.125 0.688
vt 0 0.625
vt 0.125 0.625
vt 0.875 0.875
vt 0.75 0.875
vt 0.75 0.813
vt 0.875 0.813
vt 0 0.563
vt 0.125 0.563
vt 0 0.5
vt 0.125 0.5
vt 0 0.438
vt 0.125 0.438
vt 0.75 0.75
vt 0.875 0.75
vt 0 0.375
vt 0.125 0.375
vt 0 0.313
vt 0.125 0.313
vt 0 0.25
vt 0.125 0.25
vt 0 0.188
vt 0.125 0.188
vt 0.875 0.625
vt 0.75 0.625
vt 0.75 0.563
vt 0.875 0.563
vt 0 0.125
vt 0.125 0.125
vt 0 0.063
vt 0.125 0.063
vt 0.125 1
vt 0 1
vt 0.625 0.625
vt 0.721 0.606
vt 0.802 0.552
vt 0.856 0.471
vt 0.875 0.375
vt 0.856 0.279
vt 0.802 0.198
vt 0.721 0.144
vt 0.625 0.125
vt 0.529 0.144
vt 0.448 0.198
vt 0.394 0.279
vt 0.375 0.375
vt 0.394 0.471
vt 0.448 0.552
vt 0.529 0.606
vt 0 0
vt 0.125 0
vt 0.875 0.125
vt 0.75 0.125
vt 0.25 0.875
vt 0.298 0.865
vt 0.338 0.838
vt 0.365 0.798
vt 0.375 0.75
vt 0.365 0.702
vt 0.338 0.662
vt 0.298 0.635
vt 0.25 0.625
vt 0.202 0.635
vt 0.162 0.662
vt 0.135 0.702
vt 0.135 0.798
vt 0.162 0.838
vt 0.202 0.865
vt 0.875 0.188
vt 0.75 0.188
vt 0.875 0.25
vt 0.75 0.25
vt 0.875 0.313
vt 0.75 0.313
vt 0.75 0.375
vt 0.875 0.438
vt 0.75 0.438
vt 0.875 0.5
vt 0.75 0.5
vt 0.875 0.688
vt 0.75 0.688
vt 1 0.75
vt 1 0.688
vt 1 0.625
vt 1 0.563
vt 1 0.5
vt 1 0.438
vt 1 0.375
vt 1 0.313
vt 1 0.25
vt 1 0.188
vt 1 0.125
vt 1 0.063
vt 0.625 0.563
vt 0.625 0.813
vt 0.625 0.75
vt 0.625 0.938
vt 0.625 0.875
vt 0.625 1
vt 0.625 0.063
vt 0.625 0
vt 1 0.813
vt 0.625 0.188
vt 1 0.938
vt 1 0.875
vt 0.625 0.25
vt 0.625 0.313
vt 0.625 0.375
vt 0.625 0.438
vt 1 1
vt 0.625 0.5
vt 0.625 0.688
vt 1 0
vt 0.25 0
vt 0.25 0.25
vt 0.375 0.25
vt 0.375 0
vt 0.5 0.25
vt 0.5 0
vt 0.5 1
vt 0.5 0.5
vt 0.375 1
vt 0.375 0.5
vt 0.25 1
vt 0.25 0.5
vn -0.967 0.254 0
vn -0.994 -0.108 0
vn -0.918 -0.108 -0.38
vn -0.893 0.254 -0.37
vn 0 0.27 -0.963
vn 0 0.762 -0.648
vn 0.248 0.762 -0.599
vn 0.369 0.27 -0.89
vn 0.458 0.762 -0.458
vn 0.681 0.27 -0.681
vn 0.599 0.762 -0.248
vn 0.89 0.27 -0.368
vn -0.703 -0.108 -0.703
vn -0.684 0.254 -0.684
vn 0.648 0.762 0
vn 0.963 0.27 0
vn 0.599 0.762 0.248
vn 0.89 0.27 0.369
vn -0.37 0.254 -0.893
vn -0.38 -0.108 -0.918
vn 0 -0.108 -0.994
vn 0 0.254 -0.967
vn 0.458 0.762 0.458
vn 0.681 0.27 0.681
vn 0.248 0.762 0.599
vn 0.369 0.27 0.89
vn 0 0.762 0.648
vn 0 0.27 0.963
vn 0.38 -0.108 -0.918
vn 0.37 0.254 -0.893
vn -0.248 0.762 0.599
vn -0.368 0.27 0.89
vn -0.458 0.762 0.458
vn -0.681 0.27 0.681
vn -0.599 0.762 0.248
vn -0.89 0.27 0.369
vn -0.648 0.762 0
vn -0.963 0.27 0
vn 0.894 0.254 -0.37
vn 0.919 -0.108 -0.38
vn 0.994 -0.108 0
vn 0.967 0.254 0
vn -0.599 0.762 -0.248
vn -0.89 0.27 -0.368
vn -0.458 0.762 -0.458
vn -0.681 0.27 -0.681
vn -0.368 0.27 -0.89
vn -0.248 0.762 -0.599
vn 0.313 -0.576 -0.755
vn 0.578 -0.576 -0.578
vn 0.756 -0.576 -0.313
vn 0.818 -0.576 0
vn 0.756 -0.576 0.313
vn 0.578 -0.576 0.578
vn 0.313 -0.576 0.756
vn 0 -0.576 0.818
vn -0.313 -0.576 0.756
vn -0.578 -0.576 0.578
vn -0.755 -0.576 0.313
vn -0.818 -0.576 0
vn -0.755 -0.576 -0.313
vn -0.578 -0.576 -0.578
vn -0.313 -0.576 -0.755
vn 0 -0.576 -0.818
vn -0.893 0.254 0.37
vn -0.918 -0.108 0.38
vn -0.684 0.254 0.684
vn -0.703 -0.108 0.703
vn -0.37 0.254 0.894
vn -0.38 -0.108 0.919
vn 0 0.254 0.967
vn 0 -0.108 0.994
vn 0.37 0.254 0.894
vn 0.38 -0.108 0.919
vn 0.684 0.254 0.684
vn 0.703 -0.108 0.703
vn 0.894 0.254 0.37
vn 0.919 -0.108 0.38
vn 0.684 0.254 -0.684
vn 0.703 -0.108 -0.703
vn 0.817 -0.467 -0.338
vn 0.884 -0.467 0
vn 0 -0.467 -0.884
vn 0.338 -0.467 -0.817
vn -0.625 -0.467 -0.625
vn -0.338 -0.467 -0.817
vn -0.817 -0.467 -0.338
vn -0.884 -0.467 0
vn -0.817 -0.467 0.338
vn -0.625 -0.467 0.625
vn -0.338 -0.467 0.817
vn 0 -0.467 0.884
vn 0.338 -0.467 0.817
vn 0.625 -0.467 0.625
vn 0.817 -0.467 0.338
vn 0.625 -0.467 -0.625
vn 0 0.29 0.957
vn -0.366 0.29 0.884
vn -0.375 0.203 0.905
vn 0 0.203 0.979
vn 0.383 0 -0.924
vn 0.382 0.059 -0.922
vn 0.706 0.059 -0.706
vn 0.707 0 -0.707
vn 0.922 0.059 -0.382
vn 0.924 0 -0.383
vn 1 0 0
vn 0.998 0.059 0
vn 0.922 0.059 0.382
vn 0.924 0 0.383
vn -0.677 0.29 0.677
vn -0.692 0.203 0.692
vn 0.706 0.059 0.706
vn 0.707 0 0.707
vn 0.382 0.059 0.922
vn 0.383 0 0.924
vn -0.884 0.29 0.366
vn -0.905 0.203 0.375
vn 0 0.059 0.998
vn 0 0 1
vn -0.382 0.059 0.922
vn -0.383 0 0.924
vn -0.957 0.29 0
vn -0.979 0.203 0
vn -0.706 0.059 0.706
vn -0.707 0 0.707
vn -0.922 0.059 0.382
vn -0.924 0 0.383
vn -0.998 0.059 0
vn -1 0 0
vn -0.884 0.29 -0.366
vn -0.905 0.203 -0.375
vn -0.922 0.059 -0.382
vn -0.924 0 -0.383
vn -0.677 0.29 -0.677
vn -0.692 0.203 -0.692
vn -0.706 0.059 -0.706
vn -0.707 0 -0.707
vn -0.366 0.29 -0.884
vn 0 0.29 -0.957
vn 0 0.203 -0.979
vn -0.375 0.203 -0.905
vn -0.383 0 -0.924
vn -0.382 0.059 -0.922
vn 0 0.059 -0.998
vn 0 0 -1
vn 0.366 0.29 0.884
vn 0.375 0.203 0.905
vn 0.677 0.29 0.677
vn 0.692 0.203 0.692
vn 0.884 0.29 0.366
vn 0.905 0.203 0.375
vn 0.957 0.29 0
vn 0.979 0.203 0
vn 0.884 0.29 -0.366
vn 0.905 0.203 -0.375
vn 0.677 0.29 -0.677
vn 0.692 0.203 -0.692
vn 0.366 0.29 -0.884
vn 0.375 0.203 -0.905
g 1
s 1
f 90/1/1 60/2/2 61/3/3 92/4/4
f 67/5/5 5/6/6 3/7/7 125/8/8
f 125/8/8 3/7/7 1/9/9 123/10/10
f 123/10/10 1/9/9 10/11/11 121/12/12
f 92/13/4 61/14/3 62/15/13 94/16/14
f 121/12/12 10/11/11 12/17/15 119/18/16
f 119/18/16 12/17/15 14/19/17 117/20/18
f 96/21/19 64/22/20 63/23/21 127/24/22
f 117/20/18 14/19/17 16/25/23 115/26/24
f 115/26/24 16/25/23 18/27/25 113/28/26
f 94/16/14 62/15/13 64/22/20 96/21/19
f 113/28/26 18/27/25 20/29/27 111/30/28
f 127/24/22 63/23/21 49/31/29 68/32/30
f 111/30/28 20/29/27 22/33/31 109/34/32
f 109/34/32 22/33/31 24/35/33 107/36/34
f 107/36/34 24/35/33 26/37/35 105/38/36
f 105/38/36 26/37/35 28/39/37 103/40/38
f 72/41/39 51/42/40 52/43/41 74/44/42
f 103/40/38 28/39/37 30/45/43 97/46/44
f 97/46/44 30/45/43 32/47/45 98/48/46
f 101/49/47 34/50/48 5/6/6 67/5/5
f 4/51/49 2/52/50 9/53/51 11/54/52 13/55/53 15/56/54 17/57/55 19/58/56 21/59/57 23/60/58 25/61/59 27/62/60 29/63/61 31/64/62 33/65/63 6/66/64
f 98/48/46 32/47/45 34/67/48 101/68/47
f 88/69/65 59/70/66 60/2/2 90/1/1
f 1/71/9 3/72/7 5/73/6 34/74/48 32/75/45 30/76/43 28/77/37 26/78/35 24/79/33 22/80/31 20/81/27 18/82/25 16/12/23 14/83/17 12/84/15 10/85/11
f 86/86/67 58/87/68 59/70/66 88/69/65
f 84/88/69 57/89/70 58/87/68 86/86/67
f 82/90/71 56/91/72 57/89/70 84/88/69
f 80/55/73 55/92/74 56/91/72 82/90/71
f 78/93/75 54/94/76 55/92/74 80/55/73
f 76/95/77 53/96/78 54/94/76 78/93/75
f 74/44/42 52/43/41 53/96/78 76/95/77
f 70/97/79 50/98/80 51/42/40 72/41/39
f 68/32/30 49/31/29 50/98/80 70/97/79
f 4/99/49 68/32/30 70/97/79 2/100/50
f 2/100/50 70/97/79 72/41/39 9/101/51
f 11/102/52 74/44/42 76/95/77 13/103/53
f 13/103/53 76/95/77 78/93/75 15/104/54
f 15/104/54 78/93/75 80/55/73 17/105/55
f 17/105/55 80/55/73 82/90/71 19/106/56
f 19/106/56 82/90/71 84/88/69 21/107/57
f 21/107/57 84/88/69 86/86/67 23/108/58
f 23/108/58 86/86/67 88/69/65 25/109/59
f 25/109/59 88/69/65 90/1/1 27/110/60
f 51/42/40 104/51/81 106/111/82 52/43/41
f 63/23/21 95/112/83 100/113/84 49/31/29
f 62/15/13 126/114/85 128/115/86 64/22/20
f 9/101/51 72/41/39 74/44/42 11/102/52
f 64/22/20 128/115/86 95/112/83 63/23/21
f 61/14/3 124/116/87 126/114/85 62/15/13
f 60/2/2 122/117/88 124/118/87 61/3/3
f 59/70/66 120/59/89 122/117/88 60/2/2
f 6/119/64 127/24/22 68/32/30 4/99/49
f 58/87/68 118/120/90 120/59/89 59/70/66
f 31/121/62 94/16/14 96/21/19 33/122/63
f 57/89/70 116/123/91 118/120/90 58/87/68
f 56/91/72 114/124/92 116/123/91 57/89/70
f 33/122/63 96/21/19 127/24/22 6/119/64
f 55/92/74 112/125/93 114/124/92 56/91/72
f 54/94/76 110/126/94 112/125/93 55/92/74
f 29/127/61 92/13/4 94/16/14 31/121/62
f 53/96/78 108/128/95 110/126/94 54/94/76
f 52/43/41 106/111/82 108/128/95 53/96/78
f 50/98/80 102/129/96 104/51/81 51/42/40
f 49/31/29 100/113/84 102/129/96 50/98/80
f 27/110/60 90/1/1 92/4/4 29/130/61
g 2
f 111/13/97 109/14/98 77/96/99 79/95/100
f 100/131/101 7/132/102 35/133/103 102/134/104
f 102/134/104 35/133/103 36/135/105 104/136/106
f 106/118/107 37/123/108 38/89/109 108/3/110
f 109/14/98 107/116/111 75/128/112 77/96/99
f 108/3/110 38/89/109 39/88/113 110/4/114
f 110/4/114 39/88/113 40/107/115 112/130/116
f 107/116/111 105/137/117 73/138/118 75/128/112
f 112/130/116 40/107/115 41/88/119 114/4/120
f 114/4/120 41/88/119 42/89/121 116/3/122
f 105/137/117 103/139/123 71/140/124 73/138/118
f 116/3/122 42/89/121 43/123/125 118/118/126
f 118/118/126 43/123/125 44/135/127 120/136/128
f 120/136/128 44/135/127 45/133/129 122/134/130
f 103/139/123 97/141/131 65/142/132 71/140/124
f 122/134/130 45/133/129 46/132/133 124/131/134
f 97/141/131 98/49/135 66/28/136 65/142/132
f 124/131/134 46/132/133 47/38/137 126/68/138
f 101/50/139 67/49/140 99/28/141 69/27/142
f 128/67/143 48/37/144 8/38/145 95/68/146
f 126/68/138 47/38/137 48/37/144 128/67/143
f 95/68/146 8/38/145 7/132/102 100/131/101
f 104/136/106 36/135/105 37/123/108 106/118/107
f 113/127/147 111/13/97 79/95/100 81/103/148
f 115/13/149 113/127/147 81/103/148 83/95/150
f 117/14/151 115/13/149 83/95/150 85/96/152
f 119/116/153 117/14/151 85/96/152 87/128/154
f 121/137/155 119/116/153 87/128/154 89/138/156
f 123/139/157 121/137/155 89/138/156 91/140/158
f 125/141/159 123/139/157 91/140/158 93/142/160
f 99/28/141 67/49/140 125/141/159 93/142/160
f 8/38/145 99/28/141 93/142/160 7/132/102
f 7/132/102 93/142/160 91/140/158 35/133/103
f 35/133/103 91/140/158 89/138/156 36/135/105
f 36/135/105 89/138/156 87/128/154 37/123/108
f 37/123/108 87/128/154 85/96/152 38/89/109
f 38/89/109 85/96/152 83/95/150 39/88/113
f 39/88/113 83/95/150 81/103/148 40/107/115
f 40/107/115 81/103/148 79/95/100 41/88/119
f 41/88/119 79/95/100 77/96/99 42/89/121
f 47/38/137 66/28/136 69/27/142 48/37/144
f 48/37/144 69/27/142 99/28/141 8/38/145
f 46/132/133 65/142/132 66/28/136 47/38/137
f 45/133/129 71/140/124 65/142/132 46/132/133
f 44/135/127 73/138/118 71/140/124 45/133/129
f 43/123/125 75/128/112 73/138/118 44/135/127
f 42/89/121 77/96/99 75/128/112 43/123/125
f 98/49/135 101/50/139 69/27/142 66/28/136