forked from ilab-mainz/ilab-aframe-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·152 lines (130 loc) · 8.04 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Virtual HfG</title>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-look-at-component.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-entity-generator-component.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-randomizer-components.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/[email protected]/dist/aframe-extras.min.js"></script>
<script src="js/fibonacci.js"></script>
<script src="js/look-at-once.js"></script>
<script src="js/marker.js"></script>
<script src="js/insta.js"></script>
</head>
<body>
<a-scene fog="type: linear; color: #fff; far: 25; near: 0">
<a-entity position="0 0 30" id="rig" movement-controls="controls: checkpoint" checkpoint-controls="mode: .marker">
<a-entity camera position="0 1.6 0" look-controls="reverseTouchDrag:false" ></a-entity>
<a-entity cursor="rayOrigin:mouse" raycaster="objects: [checkpoint]"></a-entity>
</a-entity>
<a-assets id="assets">
<a-asset-item id="Mac" src="assets/Mac-1.gltf"></a-asset-item>
<a-asset-item id="Mac2" src="assets/Mac-2.gltf"></a-asset-item>
<a-asset-item id="Tisch" src="assets/Tisch.gltf"></a-asset-item>
<a-asset-item id="Saeule" src="assets/Saeule.gltf"></a-asset-item>
<a-asset-item id="Karte" src="assets/Karte.gltf"></a-asset-item>
<a-asset-item id="Bank" src="assets/Bank.gltf"></a-asset-item>
<a-asset-item id="Plakat" src="assets/Plakat.gltf"></a-asset-item>
<a-asset-item id="Pflanze" src="assets/Pflanze.gltf"></a-asset-item>
<a-asset-item id="Schrift" src="assets/Schrift.gltf"></a-asset-item>
<a-asset-item id="Wand" src="assets/Wand.gltf"></a-asset-item>
<a-asset-item id="Tuere" src="assets/Tuer.gltf"></a-asset-item>
<img id="Parkett" src="assets/Parkett.jpg">
<a-mixin id="marker" checkpoint rotation="-90 0 0" material="color:#fff; opacity: 0.7; transparent: true" geometry="primitive: circle; radius: 0.6;"></a-mixin>
<a-mixin id="hemisphere" fibonacci-spherical-position="radius: 6; samples:100"></a-mixin>
<a-mixin id="inwards" look-at="0 0 0"></a-mixin>
<a-mixin id="poster" geometry="primitive:plane; height:2; width: 2;"></a-mixin>
</a-assets>
<!--Um die Pflanze-->
<a-entity position="0 0 -2.5" mixin="marker"></a-entity>
<a-entity position="-1.78 0 -1.78" mixin="marker"></a-entity>
<a-entity position="-2.5 0 0" mixin="marker"></a-entity>
<a-entity position="1.78 0 1.78" mixin="marker"></a-entity>
<a-entity position="0 0 2.5" mixin="marker"></a-entity>
<a-entity position="1.78 0 -1.78" mixin="marker"></a-entity>
<a-entity position="2.5 0 0" mixin="marker"></a-entity>
<a-entity position="-1.78 0 1.78" mixin="marker"></a-entity>
<!-- Weg zum Panoptikum -->
<a-entity position="0 0 5" mixin="marker"></a-entity>
<a-entity position="0 0 7" mixin="marker"></a-entity>
<a-entity position="0 0 10" mixin="marker"></a-entity>
<a-entity position="0 0 12.5" mixin="marker"></a-entity>
<a-entity position="0 0 15" mixin="marker"></a-entity>
<a-entity position="0 0 17.5" mixin="marker"></a-entity>
<a-entity position="0 0 27.5" mixin="marker"></a-entity>
<a-entity position="0 0 30" mixin="marker"></a-entity>
<!-- Weg zu den Tischen -->
<a-entity position="2.5 0 15" mixin="marker"></a-entity>
<a-entity position="5 0 15" mixin="marker"></a-entity>
<a-entity position="7.5 0 15" mixin="marker"></a-entity>
<a-entity position="10 0 15" mixin="marker"></a-entity>
<!-- Weg zu den Bänken -->
<a-entity position="-2.5 0 15" mixin="marker"></a-entity>
<a-entity position="-5 0 15" mixin="marker"></a-entity>
<a-entity position="-7.5 0 15" mixin="marker"></a-entity>
<a-entity position="-10 0 15" mixin="marker"></a-entity>
<!-- Um die Karte herum -->
<a-entity position="0 0 23">
<a-entity position="0 0 -2.5" mixin="marker"></a-entity>
<a-entity position="-1.78 0 -1.78" mixin="marker"></a-entity>
<a-entity position="-2.5 0 0" mixin="marker"></a-entity>
<a-entity position="1.78 0 1.78" mixin="marker"></a-entity>
<a-entity position="0 0 2.5" mixin="marker"></a-entity>
<a-entity position="1.78 0 -1.78" mixin="marker"></a-entity>
<a-entity position="2.5 0 0" mixin="marker"></a-entity>
<a-entity position="-1.78 0 1.78" mixin="marker"></a-entity>
</a-entity>
<!-- Pflanze -->
<a-entity animation="easing: linear; property: rotation; to: 0 -360 0; loop: true; dur: 50000" gltf-model="#Pflanze" scale="6 6 6"></a-entity>
<!-- Empfang -->
<a-entity gltf-model="#Wand" material="color: red" position="-4 0 22.5" rotation="0 90 0"></a-entity>
<a-entity gltf-model="#Wand" position="4 0 25" scale="1 1 -1" rotation="0 90 0"></a-entity>
<a-entity gltf-model="#Tuere" position="0 0 19" rotation=""></a-entity>
<a-entity gltf-model="#Karte" position="0 0.01 24.75" rotation="-90 0 0" scale="2 2 1"></a-entity>
<!-- Bänke -->
<a-entity position="-15 0 15">
<a-entity position="0 0 -1">
<a-entity gltf-model="#Bank" position="3 0 0"></a-entity>
<a-entity gltf-model="#Bank" position="0 1 0" rotation="0 0 -30"></a-entity>
<a-entity gltf-model="#Bank" position="-2.5 3.5 0" rotation="0 0 -60"></a-entity>
<a-entity gltf-model="#Bank" position="-3.5 6.5 0" rotation="0 0 -90"></a-entity>
</a-entity>
<a-entity position="0 0 1">
<a-entity gltf-model="#Bank" position="3 0 0"></a-entity>
<a-entity gltf-model="#Bank" position="0 1 0" rotation="0 0 -30"></a-entity>
<a-entity gltf-model="#Bank" position="-2.5 3.5 0" rotation="0 0 -60"></a-entity>
<a-entity gltf-model="#Bank" position="-3.5 6.5 0" rotation="0 0 -90"></a-entity>
</a-entity>
</a-entity>
<!-- Tische -->
<a-entity position="15 0 15" rotation="0 180 0">
<a-entity position="0 0 -1">
<a-entity gltf-model="#Tisch" position="3 0 0"></a-entity>
<a-entity gltf-model="#Tisch" position="0 1 0" rotation="0 0 -30"></a-entity>
<a-entity gltf-model="#Tisch" position="-2.5 3.5 0" rotation="0 0 -60"></a-entity>
<a-entity gltf-model="#Tisch" position="-3.5 6.5 0" rotation="0 0 -90"></a-entity>
</a-entity>
<a-entity position="0 0 1">
<a-entity gltf-model="#Tisch" position="3 0 0"></a-entity>
<a-entity gltf-model="#Tisch" position="0 1 0" rotation="0 0 -30"></a-entity>
<a-entity gltf-model="#Tisch" position="-2.5 3.5 0" rotation="0 0 -60"></a-entity>
<a-entity gltf-model="#Tisch" position="-3.5 6.5 0" rotation="0 0 -90"></a-entity>
</a-entity>
</a-entity>
<!-- Säulen -->
<a-entity gltf-model="#Schrift" scale="7 7 7" position="0 4.25 10"></a-entity>
<a-entity gltf-model="#Saeule" scale="2 2 2" position="-2 0 10"></a-entity>
<a-entity gltf-model="#Saeule" scale="2 2 2" position="2 0 10"></a-entity>
<a-entity gltf-model="#Saeule" scale="2 2 2" position="-6 0 10"></a-entity>
<a-entity gltf-model="#Saeule" scale="2 2 2" position="6 0 10"></a-entity>
<!-- Computer -->
<a-entity position="-1 1 28" gltf-model="#Mac2" look-at="[camera]"></a-entity>
<a-entity position="2 1 25.5" gltf-model="#Mac" look-at="[camera]"></a-entity>
<!-- Panoptikum -->
<a-entity insta="url:assets/Insta.json" animation="easing: linear; property: rotation; to: 0 360 0; loop: true; dur: 100000" entity-generator="mixin: poster hemisphere inwards; num: 50"></a-entity>
<a-plane material="opacity:1; src:#Parkett; repeat: 100 100" height="200" width="200" rotation="-90 0 0" position="0 -0.1 0" ></a-plane>
</a-scene>
</body>
</html>