Made covers automatically adjust to the model size. Fixes #1862

This commit is contained in:
raoulvdberge
2018-07-09 17:52:32 +02:00
parent 257af46372
commit 26b677f5ea
15 changed files with 335 additions and 556 deletions

View File

@@ -1,210 +1,209 @@
{
"__comment": "Model generated using MrCrayfish's Model Creator (http://mrcrayfish.com/modelcreator/)",
"elements": [
{
"name": "Line1",
"from": [
6.0,
6.0,
0.0
6,
6,
0
],
"to": [
10.0,
10.0,
2.0
10,
10,
2
],
"faces": {
"north": {
"texture": "#line",
"uv": [
0.0,
0.0,
10.0,
10.0
]
0,
0,
4,
4
],
"texture": "#line"
},
"east": {
"texture": "#line",
"uv": [
0.0,
0.0,
2.0,
10.0
]
0,
0,
2,
4
],
"texture": "#line"
},
"south": {
"texture": "#line",
"uv": [
0.0,
0.0,
10.0,
10.0
]
0,
0,
4,
4
],
"texture": "#line"
},
"west": {
"texture": "#line",
"uv": [
0.0,
0.0,
2.0,
10.0
]
0,
0,
2,
4
],
"texture": "#line"
},
"up": {
"texture": "#line",
"uv": [
0.0,
0.0,
10.0,
2.0
]
0,
0,
4,
2
],
"texture": "#line"
},
"down": {
"texture": "#line",
"uv": [
0.0,
0.0,
10.0,
2.0
]
0,
0,
4,
2
],
"texture": "#line"
}
}
},
{
"name": "Line2",
"from": [
5.0,
5.0,
2.0
5,
5,
2
],
"to": [
11.0,
11.0,
4.0
11,
11,
4
],
"faces": {
"north": {
"texture": "#line",
"uv": [
0.0,
0.0,
6.0,
6.0
]
0,
0,
6,
6
],
"texture": "#line"
},
"east": {
"texture": "#line",
"uv": [
0.0,
0.0,
2.0,
6.0
]
0,
0,
2,
6
],
"texture": "#line"
},
"south": {
"texture": "#line",
"uv": [
0.0,
0.0,
6.0,
6.0
]
0,
0,
6,
6
],
"texture": "#line"
},
"west": {
"texture": "#line",
"uv": [
0.0,
0.0,
2.0,
6.0
]
0,
0,
2,
6
],
"texture": "#line"
},
"up": {
"texture": "#line",
"uv": [
0.0,
0.0,
6.0,
2.0
]
0,
0,
6,
2
],
"texture": "#line"
},
"down": {
"texture": "#line",
"uv": [
0.0,
0.0,
6.0,
2.0
]
0,
0,
6,
2
],
"texture": "#line"
}
}
},
{
"name": "Line3",
"from": [
3.0,
3.0,
4.0
3,
3,
4
],
"to": [
13.0,
13.0,
6.0
13,
13,
6
],
"faces": {
"north": {
"texture": "#line",
"uv": [
0.0,
0.0,
4.0,
4.0
]
0,
0,
10,
10
],
"texture": "#line"
},
"east": {
"texture": "#line",
"uv": [
0.0,
0.0,
2.0,
4.0
]
0,
0,
2,
10
],
"texture": "#line"
},
"south": {
"texture": "#line",
"uv": [
0.0,
0.0,
4.0,
4.0
]
0,
0,
10,
10
],
"texture": "#line"
},
"west": {
"texture": "#line",
"uv": [
0.0,
0.0,
2.0,
4.0
]
0,
0,
2,
10
],
"texture": "#line"
},
"up": {
"texture": "#line",
"uv": [
0.0,
0.0,
4.0,
2.0
]
0,
0,
10,
2
],
"texture": "#line"
},
"down": {
"texture": "#line",
"uv": [
0.0,
0.0,
4.0,
2.0
]
0,
0,
10,
2
],
"texture": "#line"
}
}
}

View File

@@ -4,207 +4,207 @@
{
"name": "Line1",
"from": [
6.0,
6.0,
0.0
6,
6,
0
],
"to": [
10.0,
10.0,
2.0
10,
10,
2
],
"faces": {
"north": {
"texture": "#line",
"uv": [
0.0,
0.0,
10.0,
10.0
]
0,
0,
4,
4
],
"texture": "#line"
},
"east": {
"texture": "#line",
"uv": [
0.0,
0.0,
2.0,
10.0
]
0,
0,
2,
4
],
"texture": "#line"
},
"south": {
"texture": "#line",
"uv": [
0.0,
0.0,
10.0,
10.0
]
0,
0,
4,
4
],
"texture": "#line"
},
"west": {
"texture": "#line",
"uv": [
0.0,
0.0,
2.0,
10.0
]
0,
0,
2,
4
],
"texture": "#line"
},
"up": {
"texture": "#line",
"uv": [
0.0,
0.0,
10.0,
2.0
]
0,
0,
4,
2
],
"texture": "#line"
},
"down": {
"texture": "#line",
"uv": [
0.0,
0.0,
10.0,
2.0
]
0,
0,
4,
2
],
"texture": "#line"
}
}
},
{
"name": "Line2",
"from": [
5.0,
5.0,
2.0
5,
5,
2
],
"to": [
11.0,
11.0,
4.0
11,
11,
4
],
"faces": {
"north": {
"texture": "#line",
"uv": [
0.0,
0.0,
6.0,
6.0
]
0,
0,
6,
6
],
"texture": "#line"
},
"east": {
"texture": "#line",
"uv": [
0.0,
0.0,
2.0,
6.0
]
0,
0,
2,
6
],
"texture": "#line"
},
"south": {
"texture": "#line",
"uv": [
0.0,
0.0,
6.0,
6.0
]
0,
0,
6,
6
],
"texture": "#line"
},
"west": {
"texture": "#line",
"uv": [
0.0,
0.0,
2.0,
6.0
]
0,
0,
2,
6
],
"texture": "#line"
},
"up": {
"texture": "#line",
"uv": [
0.0,
0.0,
6.0,
2.0
]
0,
0,
6,
2
],
"texture": "#line"
},
"down": {
"texture": "#line",
"uv": [
0.0,
0.0,
6.0,
2.0
]
0,
0,
6,
2
],
"texture": "#line"
}
}
},
{
"name": "Line3",
"from": [
3.0,
3.0,
4.0
3,
3,
4
],
"to": [
13.0,
13.0,
6.0
13,
13,
6
],
"faces": {
"north": {
"texture": "#line",
"uv": [
0.0,
0.0,
4.0,
4.0
]
0,
0,
10,
10
],
"texture": "#line"
},
"east": {
"texture": "#line",
"uv": [
0.0,
0.0,
2.0,
4.0
]
0,
0,
2,
10
],
"texture": "#line"
},
"south": {
"texture": "#line",
"uv": [
0.0,
0.0,
4.0,
4.0
]
0,
0,
10,
10
],
"texture": "#line"
},
"west": {
"texture": "#line",
"uv": [
0.0,
0.0,
2.0,
4.0
]
0,
0,
2,
10
],
"texture": "#line"
},
"up": {
"texture": "#line",
"uv": [
0.0,
0.0,
4.0,
2.0
]
0,
0,
10,
2
],
"texture": "#line"
},
"down": {
"texture": "#line",
"uv": [
0.0,
0.0,
4.0,
2.0
]
0,
0,
10,
2
],
"texture": "#line"
}
}
},

View File

@@ -14,22 +14,13 @@
6.0
],
"faces": {
"north": {
"texture": "#line",
"uv": [
0.0,
0.0,
4.0,
4.0
]
},
"east": {
"texture": "#line",
"uv": [
0.0,
0.0,
2.0,
4.0
4.0,
2.0
]
},
"south": {
@@ -46,8 +37,8 @@
"uv": [
0.0,
0.0,
2.0,
4.0
4.0,
2.0
]
},
"up": {
@@ -55,8 +46,8 @@
"uv": [
0.0,
0.0,
4.0,
2.0
2.0,
4.0
]
},
"down": {
@@ -64,8 +55,8 @@
"uv": [
0.0,
0.0,
4.0,
2.0
2.0,
4.0
]
}
}

View File

@@ -14,22 +14,13 @@
6.0
],
"faces": {
"north": {
"texture": "#line",
"uv": [
0.0,
0.0,
4.0,
4.0
]
},
"east": {
"texture": "#line",
"uv": [
0.0,
0.0,
2.0,
4.0
4.0,
2.0
]
},
"south": {
@@ -46,8 +37,8 @@
"uv": [
0.0,
0.0,
2.0,
4.0
4.0,
2.0
]
},
"up": {
@@ -55,8 +46,8 @@
"uv": [
0.0,
0.0,
4.0,
2.0
2.0,
4.0
]
},
"down": {
@@ -64,8 +55,8 @@
"uv": [
0.0,
0.0,
4.0,
2.0
2.0,
4.0
]
}
}