-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
92 lines (88 loc) · 4.06 KB
/
index.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
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> -->
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>AR in Web</title>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-look-at-component.min.js"></script>
<script src="https://rawgit.com/donmccurdy/aframe-extras/master/dist/aframe-extras.loaders.min.js"></script>
<script src="src/index.js"></script>
<link rel="stylesheet" href="src/styles.css">
</head>
<body>
<div class="menu">
<div class="form_toggle">
<div class="form_toggle-item item-1" onclick="show_select_location_models();">
<input id="fid-1" type="radio" name="radio" value="Location" checked>
<label for="fid-1">Location models</label>
</div>
<div class="form_toggle-item item-2" onclick="show_marker_models();">
<input id="fid-2" type="radio" name="radio" value="Markers">
<label for="fid-2">Markers models</label>
</div>
</div>
<details id="select_location_models" class="custom-select">
<summary class="radios">
<input type="radio" name="item" id="item_robot" title="Robot" onclick="pick_robot_model()" checked>
<input type="radio" name="item" id="item_dragon" title="Dragon" onclick="pick_dragon_model()">
<input type="radio" name="item" id="item_building" title="Building" onclick="pick_building_model()">
<input type="radio" name="item" id="item_car" title="Car" onclick="pick_car_model()">
</summary>
<ul class="list">
<li>
<label for="item_robot">Robot</label>
</li>
<li>
<label for="item_dragon">Dragon</label>
</li>
<li>
<label for="item_building">Building</label>
</li>
<li>
<label for="item_car">Car</label>
</li>
</ul>
</details>
</div>
<a-scene vr-mode-ui="enabled: false" embedded arjs="sourceType: webcam; debugUIEnabled: false;">
<a-marker preset="custom_skull" type="pattern" url="/markers/skull.patt">
<a-entity style="height:400px;" id="entity_skull_model" drag-rotate-component position="0 -1 -1.5"
rotation="270 0 0" scale="0.1 0.1 0.1" gltf-model="/models/human_skull/scene.gltf"
animation-mixer="clip: *; loop:repeat" visible="false">
</a-entity>
</a-marker>
<a-marker preset="custom_plane" type="pattern" url="/markers/plane.patt">
<a-entity id="entity_plane_model" drag-rotate-component position="0 -1 -1.5" rotation="-60 0 -45"
scale="3 3 3" gltf-model="/models/stylized_ww1_plane/scene.gltf" animation-mixer="clip: *; loop:repeat"
visible="false">
</a-entity>
</a-marker>
<a-marker preset="custom_rex" type="pattern" url="/markers/rex.patt">
<a-entity id="entity_rex_model" drag-rotate-component position="0 -1 -1.5" rotation="270 0 0"
scale="0.5 0.5 0.5" gltf-model="/models/tyrannosaurus_rex/scene.gltf"
animation-mixer="clip: *; loop:repeat" visible="false">
</a-entity>
</a-marker>
<a-entity id="entity_robot_model" drag-rotate-component position="0 1.4 -1" scale="0.2 0.2 0.2"
gltf-model="/models/robot_playground/scene.gltf" animation-mixer="clip: *; loop:repeat" visible="true">
</a-entity>
<a-entity id="entity_dragon_model" drag-rotate-component position="0 1.3 -2" scale="0.1 0.1 0.1"
gltf-model="/models/black_dragon/scene.gltf" animation-mixer="clip: *; loop:repeat" visible="false">
</a-entity>
<a-entity id="entity_building_model" drag-rotate-component position="0 1.2 -1.7" scale="0.12 0.12 0.12"
gltf-model="/models/building_physics/scene.gltf" animation='dur:10000'
animation-mixer="clip: *; loop:repeat" visible="false">
</a-entity>
<a-entity id="entity_car_model" drag-rotate-component position="0 1.6 -1.3" rotation="0 90 30"
scale="1.4 1.4 1.4" gltf-model="/models/futuristic_car/scene.gltf" animation-mixer="clip: *; loop:repeat"
visible="false">
</a-entity>
<a-camera gps-camera look-controls="enabled:false">
<a-cursor></a-cursor>
</a-camera>
</a-scene>
</body>
</html>