Minecraft3193092
commited on
Commit
·
8ebbcd6
1
Parent(s):
df2d52d
Upload 23 files
Browse files- models/__init__.py +28 -0
- models/button.py +32 -0
- models/cactus.py +37 -0
- models/crop.py +38 -0
- models/cube.py +37 -0
- models/door.py +32 -0
- models/fire.py +26 -0
- models/flat.py +20 -0
- models/glass.py +37 -0
- models/ladder.py +26 -0
- models/leaves.py +37 -0
- models/lever.py +32 -0
- models/liquid.py +35 -0
- models/plant.py +26 -0
- models/pressure_plate.py +20 -0
- models/sign.py +26 -0
- models/sign_post.py +26 -0
- models/slab.py +37 -0
- models/snow.py +25 -0
- models/soil.py +37 -0
- models/stairs.py +37 -0
- models/tinted_glass.py +38 -0
- models/torch.py +32 -0
models/__init__.py
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# all possible models
|
2 |
+
|
3 |
+
__all__ = [
|
4 |
+
"cube",
|
5 |
+
"plant",
|
6 |
+
"liquid",
|
7 |
+
"leaves",
|
8 |
+
"glass",
|
9 |
+
"slab",
|
10 |
+
"torch",
|
11 |
+
"fire",
|
12 |
+
"stairs",
|
13 |
+
"flat",
|
14 |
+
"crop",
|
15 |
+
"soil",
|
16 |
+
"sign_post",
|
17 |
+
"door",
|
18 |
+
"ladder",
|
19 |
+
"sign",
|
20 |
+
"lever",
|
21 |
+
"pressure_plate",
|
22 |
+
"button",
|
23 |
+
"snow",
|
24 |
+
"cactus",
|
25 |
+
"tinted_glass"
|
26 |
+
]
|
27 |
+
|
28 |
+
from . import *
|
models/button.py
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transparent = True
|
2 |
+
is_cube = False
|
3 |
+
glass = False
|
4 |
+
|
5 |
+
colliders = []
|
6 |
+
|
7 |
+
vertex_positions = [
|
8 |
+
[ 0.5, 0.0, 0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.0, -0.5], # right
|
9 |
+
[-0.5, 0.0, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.0, 0.5], # left
|
10 |
+
[ 0.5, 0.0, 0.5, 0.5, 0.0, -0.5, -0.5, 0.0, -0.5, -0.5, 0.0, 0.5], # top
|
11 |
+
[-0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5], # bottom
|
12 |
+
[-0.5, 0.0, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.0, 0.5], # front
|
13 |
+
[ 0.5, 0.0, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.0, -0.5], # back
|
14 |
+
]
|
15 |
+
|
16 |
+
tex_coords = [
|
17 |
+
[0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0],
|
18 |
+
[0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0],
|
19 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
20 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
21 |
+
[0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0],
|
22 |
+
[0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0],
|
23 |
+
]
|
24 |
+
|
25 |
+
shading_values = [
|
26 |
+
[0.6, 0.6, 0.6, 0.6],
|
27 |
+
[0.6, 0.6, 0.6, 0.6],
|
28 |
+
[1.0, 1.0, 1.0, 1.0],
|
29 |
+
[0.4, 0.4, 0.4, 0.4],
|
30 |
+
[0.8, 0.8, 0.8, 0.8],
|
31 |
+
[0.8, 0.8, 0.8, 0.8],
|
32 |
+
]
|
models/cactus.py
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transparent = True
|
2 |
+
is_cube = False
|
3 |
+
glass = False
|
4 |
+
|
5 |
+
colliders = [
|
6 |
+
[
|
7 |
+
(-0.4375, -0.5, -0.4375),
|
8 |
+
( 0.4375, 0.5, 0.4375)
|
9 |
+
]
|
10 |
+
]
|
11 |
+
|
12 |
+
vertex_positions = [
|
13 |
+
[ 0.4375, 0.5000, 0.5000, 0.4375, -0.5000, 0.5000, 0.4375, -0.5000, -0.5000, 0.4375, 0.5000, -0.5000], # right
|
14 |
+
[-0.4375, 0.5000, -0.5000, -0.4375, -0.5000, -0.5000, -0.4375, -0.5000, 0.5000, -0.4375, 0.5000, 0.5000], # left
|
15 |
+
[ 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, -0.5000, -0.5000, 0.5000, -0.5000, -0.5000, 0.5000, 0.5000], # top
|
16 |
+
[-0.5000, -0.5000, 0.5000, -0.5000, -0.5000, -0.5000, 0.5000, -0.5000, -0.5000, 0.5000, -0.5000, 0.5000], # bottom
|
17 |
+
[-0.5000, 0.5000, 0.4375, -0.5000, -0.5000, 0.4375, 0.5000, -0.5000, 0.4375, 0.5000, 0.5000, 0.4375], # front
|
18 |
+
[ 0.5000, 0.5000, -0.4375, 0.5000, -0.5000, -0.4375, -0.5000, -0.5000, -0.4375, -0.5000, 0.5000, -0.4375], # back
|
19 |
+
]
|
20 |
+
|
21 |
+
tex_coords = [
|
22 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
23 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
24 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
25 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
26 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
27 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
28 |
+
]
|
29 |
+
|
30 |
+
shading_values = [
|
31 |
+
[0.6, 0.6, 0.6, 0.6],
|
32 |
+
[0.6, 0.6, 0.6, 0.6],
|
33 |
+
[1.0, 1.0, 1.0, 1.0],
|
34 |
+
[0.4, 0.4, 0.4, 0.4],
|
35 |
+
[0.8, 0.8, 0.8, 0.8],
|
36 |
+
[0.8, 0.8, 0.8, 0.8],
|
37 |
+
]
|
models/crop.py
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transparent = True
|
2 |
+
is_cube = False
|
3 |
+
glass = False
|
4 |
+
|
5 |
+
colliders = []
|
6 |
+
|
7 |
+
vertex_positions = [
|
8 |
+
[ 0.25, 0.4375, 0.50, 0.25, -0.5625, 0.50, 0.25, -0.5625, -0.50, 0.25, 0.4375, -0.50], # right
|
9 |
+
[ 0.25, 0.4375, -0.50, 0.25, -0.5625, -0.50, 0.25, -0.5625, 0.50, 0.25, 0.4375, 0.50], # right
|
10 |
+
[-0.25, 0.4375, -0.50, -0.25, -0.5625, -0.50, -0.25, -0.5625, 0.50, -0.25, 0.4375, 0.50], # left
|
11 |
+
[-0.25, 0.4375, 0.50, -0.25, -0.5625, 0.50, -0.25, -0.5625, -0.50, -0.25, 0.4375, -0.50], # left
|
12 |
+
[-0.50, 0.4375, 0.25, -0.50, -0.5625, 0.25, 0.50, -0.5625, 0.25, 0.50, 0.4375, 0.25], # front
|
13 |
+
[ 0.50, 0.4375, 0.25, 0.50, -0.5625, 0.25, -0.50, -0.5625, 0.25, -0.50, 0.4375, 0.25], # front
|
14 |
+
[ 0.50, 0.4375, -0.25, 0.50, -0.5625, -0.25, -0.50, -0.5625, -0.25, -0.50, 0.4375, -0.25], # back
|
15 |
+
[-0.50, 0.4375, -0.25, -0.50, -0.5625, -0.25, 0.50, -0.5625, -0.25, 0.50, 0.4375, -0.25], # back
|
16 |
+
]
|
17 |
+
|
18 |
+
tex_coords = [
|
19 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
20 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
21 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
22 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
23 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
24 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
25 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
26 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
27 |
+
]
|
28 |
+
|
29 |
+
shading_values = [
|
30 |
+
[0.6, 0.6, 0.6, 0.6],
|
31 |
+
[0.6, 0.6, 0.6, 0.6],
|
32 |
+
[0.6, 0.6, 0.6, 0.6],
|
33 |
+
[0.6, 0.6, 0.6, 0.6],
|
34 |
+
[0.8, 0.8, 0.8, 0.8],
|
35 |
+
[0.8, 0.8, 0.8, 0.8],
|
36 |
+
[0.8, 0.8, 0.8, 0.8],
|
37 |
+
[0.8, 0.8, 0.8, 0.8],
|
38 |
+
]
|
models/cube.py
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transparent = False
|
2 |
+
is_cube = True
|
3 |
+
glass = False
|
4 |
+
|
5 |
+
colliders = [
|
6 |
+
[
|
7 |
+
(-0.5, -0.5, -0.5),
|
8 |
+
( 0.5, 0.5, 0.5)
|
9 |
+
]
|
10 |
+
]
|
11 |
+
|
12 |
+
vertex_positions = [
|
13 |
+
[ 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5], # right
|
14 |
+
[-0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0.5], # left
|
15 |
+
[ 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5], # top
|
16 |
+
[-0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5], # bottom
|
17 |
+
[-0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, 0.5], # front
|
18 |
+
[ 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5], # back
|
19 |
+
]
|
20 |
+
|
21 |
+
tex_coords = [
|
22 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
23 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
24 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
25 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
26 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
27 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
28 |
+
]
|
29 |
+
|
30 |
+
shading_values = [
|
31 |
+
[0.6, 0.6, 0.6, 0.6],
|
32 |
+
[0.6, 0.6, 0.6, 0.6],
|
33 |
+
[1.0, 1.0, 1.0, 1.0],
|
34 |
+
[0.4, 0.4, 0.4, 0.4],
|
35 |
+
[0.8, 0.8, 0.8, 0.8],
|
36 |
+
[0.8, 0.8, 0.8, 0.8],
|
37 |
+
]
|
models/door.py
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transparent = False
|
2 |
+
is_cube = True
|
3 |
+
glass = False
|
4 |
+
|
5 |
+
colliders = []
|
6 |
+
|
7 |
+
vertex_positions = [
|
8 |
+
[ 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5], # right
|
9 |
+
[-0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0.5], # left
|
10 |
+
[ 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5], # top
|
11 |
+
[-0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5], # bottom
|
12 |
+
[-0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, 0.5], # front
|
13 |
+
[ 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5], # back
|
14 |
+
]
|
15 |
+
|
16 |
+
tex_coords = [
|
17 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
18 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
19 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
20 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
21 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
22 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
23 |
+
]
|
24 |
+
|
25 |
+
shading_values = [
|
26 |
+
[0.6, 0.6, 0.6, 0.6],
|
27 |
+
[0.6, 0.6, 0.6, 0.6],
|
28 |
+
[1.0, 1.0, 1.0, 1.0],
|
29 |
+
[0.4, 0.4, 0.4, 0.4],
|
30 |
+
[0.8, 0.8, 0.8, 0.8],
|
31 |
+
[0.8, 0.8, 0.8, 0.8],
|
32 |
+
]
|
models/fire.py
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transparent = True
|
2 |
+
is_cube = False
|
3 |
+
glass = False
|
4 |
+
|
5 |
+
colliders = []
|
6 |
+
|
7 |
+
vertex_positions = [
|
8 |
+
[-0.3536, 0.5000, 0.3536, -0.3536, -0.5000, 0.3536, 0.3536, -0.5000, -0.3536, 0.3536, 0.5000, -0.3536],
|
9 |
+
[-0.3536, 0.5000, -0.3536, -0.3536, -0.5000, -0.3536, 0.3536, -0.5000, 0.3536, 0.3536, 0.5000, 0.3536],
|
10 |
+
[ 0.3536, 0.5000, -0.3536, 0.3536, -0.5000, -0.3536, -0.3536, -0.5000, 0.3536, -0.3536, 0.5000, 0.3536],
|
11 |
+
[ 0.3536, 0.5000, 0.3536, 0.3536, -0.5000, 0.3536, -0.3536, -0.5000, -0.3536, -0.3536, 0.5000, -0.3536],
|
12 |
+
]
|
13 |
+
|
14 |
+
tex_coords = [
|
15 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
16 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
17 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
18 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
19 |
+
]
|
20 |
+
|
21 |
+
shading_values = [
|
22 |
+
[1.0, 1.0, 1.0, 1.0],
|
23 |
+
[1.0, 1.0, 1.0, 1.0],
|
24 |
+
[1.0, 1.0, 1.0, 1.0],
|
25 |
+
[1.0, 1.0, 1.0, 1.0],
|
26 |
+
]
|
models/flat.py
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transparent = True
|
2 |
+
is_cube = False
|
3 |
+
glass = False
|
4 |
+
|
5 |
+
colliders = []
|
6 |
+
|
7 |
+
vertex_positions = [
|
8 |
+
[ 0.5, -0.4375, 0.5, 0.5, -0.4375, -0.5, -0.5, -0.4375, -0.5, -0.5, -0.4375, 0.5], # top
|
9 |
+
[-0.5, -0.4375, 0.5, -0.5, -0.4375, -0.5, 0.5, -0.4375, -0.5, 0.5, -0.4375, 0.5], # bottom
|
10 |
+
]
|
11 |
+
|
12 |
+
tex_coords = [
|
13 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
14 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
15 |
+
]
|
16 |
+
|
17 |
+
shading_values = [
|
18 |
+
[1.0, 1.0, 1.0, 1.0],
|
19 |
+
[0.4, 0.4, 0.4, 0.4],
|
20 |
+
]
|
models/glass.py
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transparent = True
|
2 |
+
is_cube = True
|
3 |
+
glass = True
|
4 |
+
|
5 |
+
colliders = [
|
6 |
+
[
|
7 |
+
(-0.5, -0.5, -0.5),
|
8 |
+
( 0.5, 0.5, 0.5)
|
9 |
+
]
|
10 |
+
]
|
11 |
+
|
12 |
+
vertex_positions = [
|
13 |
+
[ 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5], # right
|
14 |
+
[-0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0.5], # left
|
15 |
+
[ 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5], # top
|
16 |
+
[-0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5], # bottom
|
17 |
+
[-0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, 0.5], # front
|
18 |
+
[ 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5], # back
|
19 |
+
]
|
20 |
+
|
21 |
+
tex_coords = [
|
22 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
23 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
24 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
25 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
26 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
27 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
28 |
+
]
|
29 |
+
|
30 |
+
shading_values = [
|
31 |
+
[0.6, 0.6, 0.6, 0.6],
|
32 |
+
[0.6, 0.6, 0.6, 0.6],
|
33 |
+
[1.0, 1.0, 1.0, 1.0],
|
34 |
+
[0.4, 0.4, 0.4, 0.4],
|
35 |
+
[0.8, 0.8, 0.8, 0.8],
|
36 |
+
[0.8, 0.8, 0.8, 0.8],
|
37 |
+
]
|
models/ladder.py
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transparent = True
|
2 |
+
is_cube = False
|
3 |
+
glass = False
|
4 |
+
|
5 |
+
colliders = []
|
6 |
+
|
7 |
+
vertex_positions = [
|
8 |
+
[-0.3536, 0.5000, 0.3536, -0.3536, -0.5000, 0.3536, 0.3536, -0.5000, -0.3536, 0.3536, 0.5000, -0.3536],
|
9 |
+
[-0.3536, 0.5000, -0.3536, -0.3536, -0.5000, -0.3536, 0.3536, -0.5000, 0.3536, 0.3536, 0.5000, 0.3536],
|
10 |
+
[ 0.3536, 0.5000, -0.3536, 0.3536, -0.5000, -0.3536, -0.3536, -0.5000, 0.3536, -0.3536, 0.5000, 0.3536],
|
11 |
+
[ 0.3536, 0.5000, 0.3536, 0.3536, -0.5000, 0.3536, -0.3536, -0.5000, -0.3536, -0.3536, 0.5000, -0.3536],
|
12 |
+
]
|
13 |
+
|
14 |
+
tex_coords = [
|
15 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
16 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
17 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
18 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
19 |
+
]
|
20 |
+
|
21 |
+
shading_values = [
|
22 |
+
[1.0, 1.0, 1.0, 1.0],
|
23 |
+
[1.0, 1.0, 1.0, 1.0],
|
24 |
+
[1.0, 1.0, 1.0, 1.0],
|
25 |
+
[1.0, 1.0, 1.0, 1.0],
|
26 |
+
]
|
models/leaves.py
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transparent = True
|
2 |
+
is_cube = True
|
3 |
+
glass = False
|
4 |
+
|
5 |
+
colliders = [
|
6 |
+
[
|
7 |
+
(-0.5, -0.5, -0.5),
|
8 |
+
( 0.5, 0.5, 0.5)
|
9 |
+
]
|
10 |
+
]
|
11 |
+
|
12 |
+
vertex_positions = [
|
13 |
+
[ 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5], # right
|
14 |
+
[-0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0.5], # left
|
15 |
+
[ 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5], # top
|
16 |
+
[-0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5], # bottom
|
17 |
+
[-0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, 0.5], # front
|
18 |
+
[ 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5], # back
|
19 |
+
]
|
20 |
+
|
21 |
+
tex_coords = [
|
22 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
23 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
24 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
25 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
26 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
27 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
28 |
+
]
|
29 |
+
|
30 |
+
shading_values = [
|
31 |
+
[0.6, 0.6, 0.6, 0.6],
|
32 |
+
[0.6, 0.6, 0.6, 0.6],
|
33 |
+
[1.0, 1.0, 1.0, 1.0],
|
34 |
+
[0.4, 0.4, 0.4, 0.4],
|
35 |
+
[0.8, 0.8, 0.8, 0.8],
|
36 |
+
[0.8, 0.8, 0.8, 0.8],
|
37 |
+
]
|
models/lever.py
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transparent = True
|
2 |
+
is_cube = False
|
3 |
+
glass = False
|
4 |
+
|
5 |
+
colliders = []
|
6 |
+
|
7 |
+
vertex_positions = [
|
8 |
+
[ 0.5, 0.0, 0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.0, -0.5], # right
|
9 |
+
[-0.5, 0.0, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.0, 0.5], # left
|
10 |
+
[ 0.5, 0.0, 0.5, 0.5, 0.0, -0.5, -0.5, 0.0, -0.5, -0.5, 0.0, 0.5], # top
|
11 |
+
[-0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5], # bottom
|
12 |
+
[-0.5, 0.0, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.0, 0.5], # front
|
13 |
+
[ 0.5, 0.0, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.0, -0.5], # back
|
14 |
+
]
|
15 |
+
|
16 |
+
tex_coords = [
|
17 |
+
[0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0],
|
18 |
+
[0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0],
|
19 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
20 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
21 |
+
[0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0],
|
22 |
+
[0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0],
|
23 |
+
]
|
24 |
+
|
25 |
+
shading_values = [
|
26 |
+
[0.6, 0.6, 0.6, 0.6],
|
27 |
+
[0.6, 0.6, 0.6, 0.6],
|
28 |
+
[1.0, 1.0, 1.0, 1.0],
|
29 |
+
[0.4, 0.4, 0.4, 0.4],
|
30 |
+
[0.8, 0.8, 0.8, 0.8],
|
31 |
+
[0.8, 0.8, 0.8, 0.8],
|
32 |
+
]
|
models/liquid.py
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# in the end, it'd be nice to have it so that liquids fill up the whole block when they have a block above them
|
2 |
+
# this would avoid the problems this solution has
|
3 |
+
|
4 |
+
transparent = True
|
5 |
+
is_cube = True
|
6 |
+
glass = True
|
7 |
+
|
8 |
+
colliders = []
|
9 |
+
|
10 |
+
vertex_positions = [
|
11 |
+
[ 0.500, 0.375, 0.500, 0.500, -0.625, 0.500, 0.500, -0.625, -0.500, 0.500, 0.375, -0.500], # right
|
12 |
+
[-0.500, 0.375, -0.500, -0.500, -0.625, -0.500, -0.500, -0.625, 0.500, -0.500, 0.375, 0.500], # left
|
13 |
+
[ 0.500, 0.375, 0.500, 0.500, 0.375, -0.500, -0.500, 0.375, -0.500, -0.500, 0.375, 0.500], # top
|
14 |
+
[-0.500, -0.625, 0.500, -0.500, -0.625, -0.500, 0.500, -0.625, -0.500, 0.500, -0.625, 0.500], # bottom
|
15 |
+
[-0.500, 0.375, 0.500, -0.500, -0.625, 0.500, 0.500, -0.625, 0.500, 0.500, 0.375, 0.500], # front
|
16 |
+
[ 0.500, 0.375, -0.500, 0.500, -0.625, -0.500, -0.500, -0.625, -0.500, -0.500, 0.375, -0.500], # back
|
17 |
+
]
|
18 |
+
|
19 |
+
tex_coords = [
|
20 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
21 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
22 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
23 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
24 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
25 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
26 |
+
]
|
27 |
+
|
28 |
+
shading_values = [
|
29 |
+
[0.6, 0.6, 0.6, 0.6],
|
30 |
+
[0.6, 0.6, 0.6, 0.6],
|
31 |
+
[1.0, 1.0, 1.0, 1.0],
|
32 |
+
[0.4, 0.4, 0.4, 0.4],
|
33 |
+
[0.8, 0.8, 0.8, 0.8],
|
34 |
+
[0.8, 0.8, 0.8, 0.8],
|
35 |
+
]
|
models/plant.py
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transparent = True
|
2 |
+
is_cube = False
|
3 |
+
glass = False
|
4 |
+
|
5 |
+
colliders = []
|
6 |
+
|
7 |
+
vertex_positions = [
|
8 |
+
[-0.3536, 0.5000, 0.3536, -0.3536, -0.5000, 0.3536, 0.3536, -0.5000, -0.3536, 0.3536, 0.5000, -0.3536],
|
9 |
+
[-0.3536, 0.5000, -0.3536, -0.3536, -0.5000, -0.3536, 0.3536, -0.5000, 0.3536, 0.3536, 0.5000, 0.3536],
|
10 |
+
[ 0.3536, 0.5000, -0.3536, 0.3536, -0.5000, -0.3536, -0.3536, -0.5000, 0.3536, -0.3536, 0.5000, 0.3536],
|
11 |
+
[ 0.3536, 0.5000, 0.3536, 0.3536, -0.5000, 0.3536, -0.3536, -0.5000, -0.3536, -0.3536, 0.5000, -0.3536],
|
12 |
+
]
|
13 |
+
|
14 |
+
tex_coords = [
|
15 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
16 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
17 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
18 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
19 |
+
]
|
20 |
+
|
21 |
+
shading_values = [
|
22 |
+
[1.0, 1.0, 1.0, 1.0],
|
23 |
+
[1.0, 1.0, 1.0, 1.0],
|
24 |
+
[1.0, 1.0, 1.0, 1.0],
|
25 |
+
[1.0, 1.0, 1.0, 1.0],
|
26 |
+
]
|
models/pressure_plate.py
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transparent = True
|
2 |
+
is_cube = False
|
3 |
+
glass = False
|
4 |
+
|
5 |
+
colliders = []
|
6 |
+
|
7 |
+
vertex_positions = [
|
8 |
+
[ 0.5, -0.4375, 0.5, 0.5, -0.4375, -0.5, -0.5, -0.4375, -0.5, -0.5, -0.4375, 0.5], # top
|
9 |
+
[-0.5, -0.4375, 0.5, -0.5, -0.4375, -0.5, 0.5, -0.4375, -0.5, 0.5, -0.4375, 0.5], # bottom
|
10 |
+
]
|
11 |
+
|
12 |
+
tex_coords = [
|
13 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
14 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
15 |
+
]
|
16 |
+
|
17 |
+
shading_values = [
|
18 |
+
[1.0, 1.0, 1.0, 1.0],
|
19 |
+
[0.4, 0.4, 0.4, 0.4],
|
20 |
+
]
|
models/sign.py
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transparent = True
|
2 |
+
is_cube = False
|
3 |
+
glass = False
|
4 |
+
|
5 |
+
colliders = []
|
6 |
+
|
7 |
+
vertex_positions = [
|
8 |
+
[-0.3536, 0.5000, 0.3536, -0.3536, -0.5000, 0.3536, 0.3536, -0.5000, -0.3536, 0.3536, 0.5000, -0.3536],
|
9 |
+
[-0.3536, 0.5000, -0.3536, -0.3536, -0.5000, -0.3536, 0.3536, -0.5000, 0.3536, 0.3536, 0.5000, 0.3536],
|
10 |
+
[ 0.3536, 0.5000, -0.3536, 0.3536, -0.5000, -0.3536, -0.3536, -0.5000, 0.3536, -0.3536, 0.5000, 0.3536],
|
11 |
+
[ 0.3536, 0.5000, 0.3536, 0.3536, -0.5000, 0.3536, -0.3536, -0.5000, -0.3536, -0.3536, 0.5000, -0.3536],
|
12 |
+
]
|
13 |
+
|
14 |
+
tex_coords = [
|
15 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
16 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
17 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
18 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
19 |
+
]
|
20 |
+
|
21 |
+
shading_values = [
|
22 |
+
[1.0, 1.0, 1.0, 1.0],
|
23 |
+
[1.0, 1.0, 1.0, 1.0],
|
24 |
+
[1.0, 1.0, 1.0, 1.0],
|
25 |
+
[1.0, 1.0, 1.0, 1.0],
|
26 |
+
]
|
models/sign_post.py
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transparent = True
|
2 |
+
is_cube = False
|
3 |
+
glass = False
|
4 |
+
|
5 |
+
colliders = []
|
6 |
+
|
7 |
+
vertex_positions = [
|
8 |
+
[-0.3536, 0.5000, 0.3536, -0.3536, -0.5000, 0.3536, 0.3536, -0.5000, -0.3536, 0.3536, 0.5000, -0.3536],
|
9 |
+
[-0.3536, 0.5000, -0.3536, -0.3536, -0.5000, -0.3536, 0.3536, -0.5000, 0.3536, 0.3536, 0.5000, 0.3536],
|
10 |
+
[ 0.3536, 0.5000, -0.3536, 0.3536, -0.5000, -0.3536, -0.3536, -0.5000, 0.3536, -0.3536, 0.5000, 0.3536],
|
11 |
+
[ 0.3536, 0.5000, 0.3536, 0.3536, -0.5000, 0.3536, -0.3536, -0.5000, -0.3536, -0.3536, 0.5000, -0.3536],
|
12 |
+
]
|
13 |
+
|
14 |
+
tex_coords = [
|
15 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
16 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
17 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
18 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
19 |
+
]
|
20 |
+
|
21 |
+
shading_values = [
|
22 |
+
[1.0, 1.0, 1.0, 1.0],
|
23 |
+
[1.0, 1.0, 1.0, 1.0],
|
24 |
+
[1.0, 1.0, 1.0, 1.0],
|
25 |
+
[1.0, 1.0, 1.0, 1.0],
|
26 |
+
]
|
models/slab.py
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transparent = True
|
2 |
+
is_cube = False
|
3 |
+
glass = False
|
4 |
+
|
5 |
+
colliders = [
|
6 |
+
[
|
7 |
+
(-0.5, -0.5, -0.5),
|
8 |
+
( 0.5, 0.0, 0.5)
|
9 |
+
]
|
10 |
+
]
|
11 |
+
|
12 |
+
vertex_positions = [
|
13 |
+
[ 0.5, 0.0, 0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.0, -0.5], # right
|
14 |
+
[-0.5, 0.0, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.0, 0.5], # left
|
15 |
+
[ 0.5, 0.0, 0.5, 0.5, 0.0, -0.5, -0.5, 0.0, -0.5, -0.5, 0.0, 0.5], # top
|
16 |
+
[-0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5], # bottom
|
17 |
+
[-0.5, 0.0, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.0, 0.5], # front
|
18 |
+
[ 0.5, 0.0, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.0, -0.5], # back
|
19 |
+
]
|
20 |
+
|
21 |
+
tex_coords = [
|
22 |
+
[0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0],
|
23 |
+
[0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0],
|
24 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
25 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
26 |
+
[0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0],
|
27 |
+
[0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0],
|
28 |
+
]
|
29 |
+
|
30 |
+
shading_values = [
|
31 |
+
[0.6, 0.6, 0.6, 0.6],
|
32 |
+
[0.6, 0.6, 0.6, 0.6],
|
33 |
+
[1.0, 1.0, 1.0, 1.0],
|
34 |
+
[0.4, 0.4, 0.4, 0.4],
|
35 |
+
[0.8, 0.8, 0.8, 0.8],
|
36 |
+
[0.8, 0.8, 0.8, 0.8],
|
37 |
+
]
|
models/snow.py
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transparent = True
|
2 |
+
is_cube = False
|
3 |
+
glass = False
|
4 |
+
|
5 |
+
colliders = [
|
6 |
+
[
|
7 |
+
(-0.5, -0.5000, -0.5),
|
8 |
+
( 0.5, -0.4375, 0.5)
|
9 |
+
]
|
10 |
+
]
|
11 |
+
|
12 |
+
vertex_positions = [
|
13 |
+
[ 0.5, -0.4375, 0.5, 0.5, -0.4375, -0.5, -0.5, -0.4375, -0.5, -0.5, -0.4375, 0.5], # top
|
14 |
+
[-0.5, -0.4375, 0.5, -0.5, -0.4375, -0.5, 0.5, -0.4375, -0.5, 0.5, -0.4375, 0.5], # bottom
|
15 |
+
]
|
16 |
+
|
17 |
+
tex_coords = [
|
18 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
19 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
20 |
+
]
|
21 |
+
|
22 |
+
shading_values = [
|
23 |
+
[1.0, 1.0, 1.0, 1.0],
|
24 |
+
[0.4, 0.4, 0.4, 0.4],
|
25 |
+
]
|
models/soil.py
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transparent = True
|
2 |
+
is_cube = False
|
3 |
+
glass = False
|
4 |
+
|
5 |
+
colliders = [
|
6 |
+
[
|
7 |
+
(-0.5, -0.5000, -0.5),
|
8 |
+
( 0.5, 0.4375, 0.5)
|
9 |
+
]
|
10 |
+
]
|
11 |
+
|
12 |
+
vertex_positions = [
|
13 |
+
[ 0.5, 0.4375, 0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.4375, -0.5], # right
|
14 |
+
[-0.5, 0.4375, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.4375, 0.5], # left
|
15 |
+
[ 0.5, 0.4375, 0.5, 0.5, 0.4375, -0.5, -0.5, 0.4375, -0.5, -0.5, 0.4375, 0.5], # top
|
16 |
+
[-0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5], # bottom
|
17 |
+
[-0.5, 0.4375, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.4375, 0.5], # front
|
18 |
+
[ 0.5, 0.4375, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.4375, -0.5], # back
|
19 |
+
]
|
20 |
+
|
21 |
+
tex_coords = [
|
22 |
+
[0.0, 0.9375, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.9375, 0.0],
|
23 |
+
[0.0, 0.9375, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.9375, 0.0],
|
24 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
25 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
26 |
+
[0.0, 0.9375, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.9375, 0.0],
|
27 |
+
[0.0, 0.9375, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.9375, 0.0],
|
28 |
+
]
|
29 |
+
|
30 |
+
shading_values = [
|
31 |
+
[0.6, 0.6, 0.6, 0.6],
|
32 |
+
[0.6, 0.6, 0.6, 0.6],
|
33 |
+
[1.0, 1.0, 1.0, 1.0],
|
34 |
+
[0.4, 0.4, 0.4, 0.4],
|
35 |
+
[0.8, 0.8, 0.8, 0.8],
|
36 |
+
[0.8, 0.8, 0.8, 0.8],
|
37 |
+
]
|
models/stairs.py
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transparent = True
|
2 |
+
is_cube = False
|
3 |
+
glass = False
|
4 |
+
|
5 |
+
colliders = [
|
6 |
+
[
|
7 |
+
(-0.5, -0.5, -0.5),
|
8 |
+
( 0.5, 0.0, 0.5)
|
9 |
+
]
|
10 |
+
]
|
11 |
+
|
12 |
+
vertex_positions = [
|
13 |
+
[ 0.5, 0.0, 0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.0, -0.5], # right
|
14 |
+
[-0.5, 0.0, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.0, 0.5], # left
|
15 |
+
[ 0.5, 0.0, 0.5, 0.5, 0.0, -0.5, -0.5, 0.0, -0.5, -0.5, 0.0, 0.5], # top
|
16 |
+
[-0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5], # bottom
|
17 |
+
[-0.5, 0.0, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.0, 0.5], # front
|
18 |
+
[ 0.5, 0.0, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.0, -0.5], # back
|
19 |
+
]
|
20 |
+
|
21 |
+
tex_coords = [
|
22 |
+
[0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0],
|
23 |
+
[0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0],
|
24 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
25 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
26 |
+
[0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0],
|
27 |
+
[0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0],
|
28 |
+
]
|
29 |
+
|
30 |
+
shading_values = [
|
31 |
+
[0.6, 0.6, 0.6, 0.6],
|
32 |
+
[0.6, 0.6, 0.6, 0.6],
|
33 |
+
[1.0, 1.0, 1.0, 1.0],
|
34 |
+
[0.4, 0.4, 0.4, 0.4],
|
35 |
+
[0.8, 0.8, 0.8, 0.8],
|
36 |
+
[0.8, 0.8, 0.8, 0.8],
|
37 |
+
]
|
models/tinted_glass.py
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transparent = True
|
2 |
+
is_cube = True
|
3 |
+
glass = True
|
4 |
+
translucent = True
|
5 |
+
|
6 |
+
colliders = [
|
7 |
+
[
|
8 |
+
(-0.5, -0.5, -0.5),
|
9 |
+
( 0.5, 0.5, 0.5)
|
10 |
+
]
|
11 |
+
]
|
12 |
+
|
13 |
+
vertex_positions = [
|
14 |
+
[ 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5], # right
|
15 |
+
[-0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0.5], # left
|
16 |
+
[ 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5], # top
|
17 |
+
[-0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5], # bottom
|
18 |
+
[-0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, 0.5], # front
|
19 |
+
[ 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5], # back
|
20 |
+
]
|
21 |
+
|
22 |
+
tex_coords = [
|
23 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
24 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
25 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
26 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
27 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
28 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
29 |
+
]
|
30 |
+
|
31 |
+
shading_values = [
|
32 |
+
[0.6, 0.6, 0.6, 0.6],
|
33 |
+
[0.6, 0.6, 0.6, 0.6],
|
34 |
+
[1.0, 1.0, 1.0, 1.0],
|
35 |
+
[0.4, 0.4, 0.4, 0.4],
|
36 |
+
[0.8, 0.8, 0.8, 0.8],
|
37 |
+
[0.8, 0.8, 0.8, 0.8],
|
38 |
+
]
|
models/torch.py
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transparent = True
|
2 |
+
is_cube = False
|
3 |
+
glass = False
|
4 |
+
|
5 |
+
colliders = []
|
6 |
+
|
7 |
+
vertex_positions = [
|
8 |
+
[ 0.0625, 0.5, 0.5, 0.0625, -0.5, 0.5, 0.0625, -0.5, -0.5, 0.0625, 0.5, -0.5], # right
|
9 |
+
[-0.0625, 0.5, -0.5, -0.0625, -0.5, -0.5, -0.0625, -0.5, 0.5, -0.0625, 0.5, 0.5], # left
|
10 |
+
[ 0.5, 0.125, 0.5, 0.5, 0.125, -0.5, -0.5, 0.125, -0.5, -0.5, 0.125, 0.5], # top
|
11 |
+
[-0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5], # bottom
|
12 |
+
[-0.5, 0.5, 0.0625, -0.5, -0.5, 0.0625, 0.5, -0.5, 0.0625, 0.5, 0.5, 0.0625], # front
|
13 |
+
[ 0.5, 0.5, -0.0625, 0.5, -0.5, -0.0625, -0.5, -0.5, -0.0625, -0.5, 0.5, -0.0625], # back
|
14 |
+
]
|
15 |
+
|
16 |
+
tex_coords = [
|
17 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
18 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
19 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
20 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
21 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
22 |
+
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
|
23 |
+
]
|
24 |
+
|
25 |
+
shading_values = [
|
26 |
+
[0.6, 0.6, 0.6, 0.6],
|
27 |
+
[0.6, 0.6, 0.6, 0.6],
|
28 |
+
[1.0, 1.0, 1.0, 1.0],
|
29 |
+
[0.4, 0.4, 0.4, 0.4],
|
30 |
+
[0.8, 0.8, 0.8, 0.8],
|
31 |
+
[0.8, 0.8, 0.8, 0.8],
|
32 |
+
]
|