-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcampground.html
67 lines (55 loc) · 3.08 KB
/
campground.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Campground- AFrame</title>
<meta name="description" content="Hello, World! - A-Frame">
<script src="https://aframe.io/releases/0.5.0/aframe.min.js"></script>
<script src="./components/follow.js"></script>
</head>
<body>
<a-scene>
<a-assets>
<a-asset-item id="outdoor-obj" src="./objects/campground.obj"></a-asset-item>
<a-asset-item id="outdoor-mtl" src="./objects/campground.mtl"></a-asset-item>
<a-asset-item id="fire-obj" src="./objects/fire.obj"></a-asset-item>
<a-asset-item id="fire-mtl" src="./objects/fire.mtl"></a-asset-item>
<a-asset-item id="tree-obj" src="./objects/tree.obj"></a-asset-item>
<a-asset-item id="tree-mtl" src="./objects/tree.mtl"></a-asset-item>
<a-asset-item id="bunny-obj" src="./objects/bunny.obj"></a-asset-item>
<a-asset-item id="bunny-mtl" src="./objects/bunny.mtl"></a-asset-item>
<a-asset-item id="dog-obj" src="./objects/dog.obj"></a-asset-item>
<a-asset-item id="dog-mtl" src="./objects/dog.mtl"></a-asset-item>
<a-asset-item id="myPlyModel" src="./objects/carlosface.obj"></a-asset-item>
</a-assets>
<a-sky src="./images/MinecraftSkyDay.png"></a-sky>
<!-- Carlos -->
<!-- <a-entity obj-model="obj: #myPlyModel" rotation="0 0 0" position="10 5 1" scale="0.16 0.16 0.16"></a-entity> -->
<a-entity obj-model="obj: #outdoor-obj; mtl: #outdoor-mtl" position="1.53 0 -5.00" rotation="-90 0 0" scale="0.12 0.16 0.16">
</a-entity>
<a-entity obj-model="obj: #tree-obj; mtl: #tree-mtl" position="8.53 0 -10.00" rotation="-90 0 0" scale="0.12 0.12 0.12">
</a-entity>
<a-entity obj-model="obj: #tree-obj; mtl: #tree-mtl" position="4.53 0 -5.00" rotation="-90 0 0" scale="0.12 0.1 0.12">
</a-entity>
<a-entity obj-model="obj: #fire-obj; mtl: #fire-mtl" position="44.5 0 -8.58" rotation="-90 0 0" scale="0.16 0.14 0.16">
<a-animation attribute="scale" dur="1000" from="0.16 0.14 0.16" to="0.16 0.145 0.16" direction="alternate" repeat="indefinite">
</a-animation>
</a-entity>
<a-entity obj-model="obj: #fire-obj; mtl: #fire-mtl" position="45 0 -7.86" rotation="-90 0 0" scale="0.16 0.14 0.16">
<a-animation attribute="scale" dur="300" from="0.16 0.14 0.16" to="0.16 0.138 0.16" direction="alternate" repeat="indefinite">
</a-animation>
<a-animation attribute="position" dur="300" to="45.25 -.2 -7.86" direction="alternate" repeat="indefinite">
</a-animation>
</a-entity>
<a-entity obj-model="obj: #bunny-obj; mtl: #bunny-mtl" position="1.53 0 -5.00" rotation="-90 0 0" scale="0.16 0.16 0.16">
<a-animation attribute="position" dur="500" to="2.53 1 -5.00" repeat="1" begin="mouseenter">
</a-animation>
</a-entity>
<a-entity follow="target: #user; speed: 1.5; faceTarget: true" obj-model="obj: #dog-obj; mtl: #dog-mtl" position="15 0 5" rotation="-90 -10 0" scale="0.1 0.1 0.1">
</a-entity>
<a-camera id="user" position="2 2.5 -8" rotation="0 90 0" look-controls>
<a-cursor opacity="0.5"></a-cursor>
</a-camera>
</a-scene>
</body>
</html>