-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path08-3DModel.html
33 lines (33 loc) · 1.05 KB
/
08-3DModel.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3D Model (glb/glTF)</title>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/[email protected]/dist/aframe-extras.min.js"></script>
</head>
<body>
<a-scene>
<a-asset>
<a-asset-item id="laptop" src="models/Notebook.gltf"></a-asset-item>
</a-asset>
<a-entity
gltf-model="#laptop"
position="-5 0 -5"
rotation="0 180 0"
animation-mixer="clip:ArmatureAction;"
></a-entity>
<a-gltf-model src="models/Notebook.gltf"
position="0 0 -5"
rotation="0 90 0"
animation-mixer
></a-gltf-model>
<a-entity
gltf-model="models/Notebook.gltf"
position="5 0 -5"
animation-mixer="clip:ArmatureAction;loop:pingpong;"
></a-entity>
</a-scene>
</body>
</html>