forked from cvasanne/SartreVR_Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vr.html
42 lines (32 loc) · 1.97 KB
/
vr.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
<!DOCTYPE html>
<html>
<head>
<title>SartreVR</title>
<meta name="description" content="Hello, WebVR! - A-Frame">
<script src="https://aframe.io/releases/0.5.0/aframe.min.js"></script>
</head>
<body>
<a-scene>
<a-assets>
<img id="floor" src="parkett.jpg">
<img id="wallpaper" src="wallpaper.jpg">
<img id="wallpaper" src="oben.jpg">
<!-- <a-asset-item id="raum_mtl" src="raumtest.mtl"></a-asset-item>
<a-asset-item id="raum_obj" src="raumtest.obj"></a-asset-item> -->
</a-assets>
<a-entity light="type: point; intensity: 1.0; distance: 50; decay: 2" position="0 2 0 "></a-entity> <!-- Beleuchtung, Standard Beleuchtung wird dabei ausgeschaltet. Type=Point Glühbirne z.b. -->
<!-- <a-entity obj-model="obj: #raum_obj; mtl: #raum:mtl"></a-entity> -->
<!-- <a-entity geometry="primitive: sphere, radius=5, material=color: yellow, position=0 2 0" light="type: point; intensity: 1.0"> -->
<!--
<a-box position="-1 0.5 -3" rotation="0 45 0" color="#ffffff"></a-box>
<a-sphere position="0 1.25 -5" radius="1.25" color="#EF2D5E"></a-sphere>
<a-cylinder position="1 0.75 -3" radius="0.5" height="1.5" color="#FFC65D"></a-cylinder> -->
<a-plane position="0 0 -4" rotation="-90 0 0" width="8" height="5" material="src: parkett.jpg; repeat: 10 2"></a-plane> <!-- Unten -->
<a-plane position="0 3 -4" rotation="90 0 0" width="8" height="5" material="src: oben.jpg; repeat: 5 5"></a-plane> <!-- Oben -->
<a-box position="0 1.5 -6.5" rotation="0 0 0" width="8" height="3" depth="0.3" material="src: wallpaper.jpg; repeat: 4 2"></a-plane> <!-- hinten -->
<a-box position="-4 0 2.5" rotation="0 -90 0" width="5" height="3" depth="0.3" material="src: wallpaper.jpg; repeat: 4 2"></a-plane>
<a-box position="-4 1.5 -4" rotation="0 90 0" width="5" height="3" depth="0.3" material="src: wallpaper.jpg; repeat: 4 2"></a-plane>
<a-sky color="#ECECEC"></a-sky>
</a-scene>
</body>
</html>