-
Notifications
You must be signed in to change notification settings - Fork 69
/
model.html
83 lines (67 loc) · 2.31 KB
/
model.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html>
<head>
<title>A-Frame - Models</title>
<script src="js/aframe-master-v1.3.0.min.js"></script>
<script src="js/aframe-environment-component.min.js"></script>
<script src="js/animation-mixer.js"></script>
</head>
<body>
<a-scene environment="preset: default; fog: 0; playArea: 1.0; groundYScale: 5.00; groundTexture: walkernoise; groundColor: #002200; groundColor2: #003300">
<a-assets>
<!-- all model files from Poly by Google
(with texture modifications to reduce file size and increase brightness) -->
<a-asset-item id="pine" src="models/trees/PineTree.gltf"></a-asset-item>
<a-asset-item id="ash" src="models/trees/AshTree.gltf"></a-asset-item>
<a-asset-item id="elm" src="models/trees/ElmTree.gltf"></a-asset-item>
<a-asset-item id="oak" src="models/trees/OakTree.gltf"></a-asset-item>
<a-asset-item id="sycamore" src="models/trees/SycamoreTree.gltf"></a-asset-item>
<a-asset-item id="shrub" src="models/Shrub.gltf"></a-asset-item>
<a-asset-item id="parrot" src="models/Parrot.glb"></a-asset-item>
</a-assets>
<a-entity gltf-model="#ash"
position = "-12 0 -15"
rotation="0 0 0"
scale="0.4 0.5 0.5">
</a-entity>
<a-entity gltf-model="#sycamore"
position = "-5 0 -15"
rotation="0 0 0"
scale="0.4 0.5 0.5">
</a-entity>
<a-entity gltf-model="#pine"
position = "0 0 -15"
rotation="0 30 0"
scale="0.5 0.5 0.5">
</a-entity>
<a-entity gltf-model="#oak"
position = "6 0 -15"
rotation="0 30 0"
scale="0.5 0.5 0.5">
</a-entity>
<a-entity gltf-model="#elm"
position = "12 0 -15"
rotation="0 30 0"
scale="0.4 0.4 0.4">
</a-entity>
<a-entity gltf-model="#shrub"
position = "1 0 -10" rotation="0 0 0" scale="0.30 0.30 0.30">
</a-entity>
<a-entity gltf-model="#shrub"
position = "0 0 -10" rotation="0 60 0" scale="0.31 0.35 0.29">
</a-entity>
<a-entity gltf-model="#shrub"
position = "-1 0 -10" rotation="0 180 0" scale="0.27 0.28 0.31">
</a-entity>
<a-entity gltf-model="#parrot" position="0 2 -2" rotation="0 90 0" scale="0.01 0.01 0.01" animation-mixer="loop: repeat"></a-entity>
<a-sphere radius="0.1"></a-sphere>
<!-- Alter scale/rotation to create appearance of multiple distinct tree models:
<a-entity gltf-model="#pine"
position = "3 0 -15"
rotation="0 180 0"
scale="0.75 0.35 0.55">
</a-entity>
-->
</a-scene>
</body>
</html>