forked from dougsillars/ARtGallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aframeroomart.html
35 lines (24 loc) · 1.11 KB
/
aframeroomart.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
<html>
<head>
<script src="https://aframe.io/releases/0.8.0/aframe.min.js"></script>
</head>
<body>
<a-scene>
<a-assets>
<img id="scream" src="https://res.cloudinary.com/dougsillars/image/upload/w_512/v1551634938/scream_qbwybi.jpg">
</a-assets>
<!-- adding a box with art-->
<a-box position="0 2 -4" scale="0.73 0.91 0.1" rotation="0 0 0" src="#scream"></a-box>
<!-- right wall-->
<a-plane position="4 2 0" rotation="0 -90 0"width="8" height="4" color="#7BC8A4"></a-plane>
<!-- left wall-->
<a-plane position="-4 2 0" rotation="0 90 0"width="8" height="4" color="#7BC8A4"></a-plane>
<!-- front wall-->
<a-plane position="0 2 -4" rotation="0 0 0"width="8" height="4" color="#7BC8A4"></a-plane>
<!-- back wall-->
<a-plane position="0 2 4" rotation="0 180 0"width="8" height="4" color="#7BC8A4"></a-plane>
<a-plane position="0 4 0" rotation="90 0 0"width="8" height="8" color="blue"></a-plane>
<a-sky color="#ECECEC"></a-sky>
</a-scene>
</body>
</html>