-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path15-VR-objets.html
executable file
·42 lines (31 loc) · 1.11 KB
/
15-VR-objets.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script src="assets/lib/aframe-v1.0.4.min.js"></script>
<script src="assets/lib/aframe-extras.min.js"></script>
</head>
<body>
<a-scene>
<!-- fond -->
<a-sky color="blue"></a-sky>
<!-- une zone verte -->
<a-plane color="green" width="500" height="500" position "0 0 0" rotation="-90 0 0"></a-plane>
<!-- objet basic -->
<a-box size="2" position="-2 1 -4" color="#FF0000"></a-box>
<a-sphere position="-6 0.8 -6" radius=".50" color="#FFFF00"></a-sphere>
<a-cylinder position="1 0.75 -3" radius="0.5" height="1.5" color="#FFFFFF"></a-cylinder>
<a-text position="-3 -0.9 1" height="10" depth="2" color="#AAAAAA" value="Confoo 2020"></a-text>
<a-assets>
<a-asset-item id="spinosaurus" src="assets/media/dyno.glb"></a-asset-item>
</a-assets>
<a-entity id="dino" position="4 1 -1" scale="0.4 0.4 0.4">
<a-entity position="0 2.15 0" rotation="0 -55 0"
gltf-model="#spinosaurus"
animation-mixer
shadow="cast: true; receive: false">
</a-entity>
</a-entity>
</a-scene>
</body>
</html>