-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathindex.html
29 lines (26 loc) · 962 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WebAR Example with model-viewer</title>
<link rel="stylesheet" href="style.css">
<!-- Include the model-viewer library -->
<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script>
</head>
<body>
<!-- Loading message -->
<div id="loadingMessage">Loading AR experience, please wait...</div>
<!-- 3D Model Viewer -->
<model-viewer id="arViewer"
src="https://raw.githubusercontent.com/gunterAlce/webar-tutorial/main/prot.glb"
ios-src="https://raw.githubusercontent.com/gunterAlce/webar-tutorial/main/prot.usdz"
alt="A 3D model in AR"
ar
ar-modes="scene-viewer quick-look"
camera-controls
auto-rotate
style="width: 100%; height: 500px;">
</model-viewer>
</body>
</html>