-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
160 lines (144 loc) · 5.81 KB
/
index.html
File metadata and controls
160 lines (144 loc) · 5.81 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<html>
<head>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-event-set-component@5.x.x/dist/aframe-event-set-component.min.js"></script>
</head>
<body>
<a-scene>
<a-assets>
<a-asset-item
id="T-rex"
src="assets/lego_trex_jw_rebirth/scene.gltf"></a-asset-item>
<a-asset-item
id="Pteranodon"
src="assets/lego_pteranodon_and_juvenile/scene.gltf"></a-asset-item>
<a-asset-item
id="Ankylosaurus"
src="assets/lego_ankylosaurus/scene.gltf"></a-asset-item>
<img id="ground" src="assets/florest-floor.jpg">
</a-assets>
<a-sky color="#00e8ff"></a-sky>
<a-plane
src="#ground"
rotation="-90 0 0"
width="626"
height="399"
repeat="100 100"
></a-plane>
<a-entity
gltf-model="#T-rex"
scale="1 1 1"
position="0 0 -50"
rotation="0 45 0"
event-set__enter="_event: mouseenter; scale: 1.5 1.5 1.5"
event-set__leave="_event: mouseleave; scale: 1 1 1;"
animation__rotate="property: rotation; to: 0 405 0; loop: true; dur: 15000; easing: linear">
</a-entity>
<a-entity
text="value: T-Rex was the apex predator of the old world.\nWeighing up to 15,000 kg; align: center; width: 4"
position="0 2 -40"
geometry="primitive: plane; height: 1; width: 4; opacity: 0.7"
material="color: #d088de"
scale="2 2 2">
</a-entity>
<a-circle
text="value: T-Rex; color: #d82020; align: center; width: 7"
position="0 2 -4"
radius="1"
color="#a524bf"
animation__move="property: position; dir: alternate; dur: 2000; loop: true; to: 0 2.1 -4"
event-set__click="_event: click; _target: #camera; _action: teleport; position: 0 1.6 -30">
</a-circle>
<a-entity
gltf-model="#Pteranodon"
scale="1 1 1"
position="40 2 0"
rotation="0 90 0"
event-set__enter="_event: mouseenter; scale: 2 2 2"
event-set__leave="_event: mouseleave; scale: 1 1 1"
animation__rotate="property: rotation; to: 0 450 0; loop: true; dur: 15000; easing: linear">
</a-entity>
<a-entity
text="value: Pteranodon was one of the largest flying reptiles to ever live.\nWith a wingspan of over 4 meters; align: center; width: 4"
position="38 1 0"
geometry="primitive: plane; height: 1; width: 4; opacity: 0.7"
rotation="0 -90 0"
material="color: #d088de"
scale="0.5 0.5 0.5">
</a-entity>
<a-circle
text="value: Pteranodon; color: #d82020; align: center; width: 7"
position="4 2 0"
radius="1"
color="#a524bf"
rotation="0 -90 0"
animation__move="property: position; dir: alternate; dur: 2000; loop: true; to: 4 2.1 0"
event-set__click="_event: click; _target: #camera; _action: teleport; position: 36 1.6 0">
</a-circle>
<a-entity
gltf-model="#Ankylosaurus"
scale="5 5 5"
position="-45 0 0"
rotation="0 135 0"
event-set__enter="_event: mouseenter; scale: 10 10 10; animation__rotate=property: rotation; to: 0 495 0; loop: true; dur: 1000; easing: linear"
event-set__leave="_event: mouseleave; scale: 5 5 5"
animation__rotate="property: rotation; to: 0 495 0; loop: true; dur: 15000; easing: linear">
</a-entity>
<a-entity
text="value: Ankylosaurus was one of the most heavily armored dinosaurs.\nHis tail could be used as a weapon like a hammer; align: center; width: 4"
position="-39 1 0"
geometry="primitive: plane; height: 1; width: 4; opacity: 0.7"
material="color: #d088de"
scale="2 2 2"
rotation="0 90 0">
</a-entity>
<a-circle
text="value: Ankylosaurus; color: #d82020; align: center; width: 7"
position="-4 2 0"
radius="1"
color="#a524bf"
rotation="0 90 0"
animation__move="property: position; dir: alternate; dur: 2000; loop: true; to: -4 2.1 0"
event-set__click="_event: click; _target: #camera; _action: teleport; position: -30 1.6 0">
</a-circle>
<a-circle
text="value: Back; color: #d82020; align: center; width: 7"
position="0 2 -26"
radius="1"
color="#a524bf"
rotation="0 180 0"
animation__move="property: position; dir: alternate; dur: 2000; loop: true; to: 0 2.1 -26"
event-set__click="_event: click; _target: #camera; _action: teleport; position: 0 1.6 0">
</a-circle>
<a-circle
text="value: Back; color: #d82020; align: center; width: 7"
position="-26 2 0"
radius="1"
color="#a524bf"
rotation="0 -90 0"
animation__move="property: position; dir: alternate; dur: 2000; loop: true; to: -26 2.1 0"
event-set__click="_event: click; _target: #camera; _action: teleport; position: 0 1.6 0">
</a-circle>
<a-circle
text="value: Back; color: #d82020; align: center; width: 7"
position="32 2 0"
radius="1"
color="#a524bf"
rotation="0 90 0"
animation__move="property: position; dir: alternate; dur: 2000; loop: true; to: 32 2.1 0"
event-set__click="_event: click; _target: #camera; _action: teleport; position: 0 1.6 0">
</a-circle>
<a-light
type="directional"
intensity="2"
position="0 10 -10">
</a-light>
<a-light
type="ambient"
intensity="0.5">
</a-light>
<a-camera id="camera">
<a-cursor></a-cursor>
</a-camera>
</body>
</html>