(WebVR, A-Frame e iniciativas da Mozilla)
deuslirio.junior[at]gmail.com
thiagopolicena[at]mozillabr.org
WebVR é uma API Javascript (experimental) que permite acesso a dispositivos de Realidade virtual, como o Oculus Rift ou Google Cardboard, no seu navegador.
Permite renderização WebGL para fones de ouvido e acesso a sensores VR
https://aframe.io/releases/0.7.0/aframe.min.js
$ npm install aframe
<a-scene>
<a-box color="#6A5ACD" width="5" height="5" depth="5"></a-box>
</a-scene>
<!doctype html>
<html>
<head>
<script src="https://aframe.io/releases/0.7.0/aframe.min.js"></script>
</head>
<body>
<a-scene>
<a-box color="#6A5ACD" width="2" height="2" depth="2"></a-box>
</a-scene>
</body>
</html>
<a-scene>
<a-sphere position="0 1.25 -1" radius="1.25" color="#EF2D5E">
</a-sphere>
<a-cube width="1" height="1" depth="1" color="#4CC3D9">
</a-cube>
<a-cylinder radius="0.5" height="1.5" color="#FFC65D">
</a-cylinder>
<a-plane width="4" height="4" color="#7BC8A4">
</a-plane>
<a-sky color="#ECECEC"></a-sky>
</a-scene>
<a-entity position="0 1.8 4">
<a-camera id="camera">
<a-cursor color="#4CC3D9"></a-cursor>
</a-camera>
</a-entity>
<a-box id="orange-cube">
<a-event name="mouseenter" scale="3 1 1" color="#FFC65D"></a-event>
<a-event name="mouseenter" target="#shadow" scale="3 2 2"></a-event>
<a-event name="mouseleave" scale="1 1 1" color="#F16745"></a-event>
<a-event name="mouseleave" target="#shadow" scale="2 2 2"></a-event>
</a-box>
<a-scene>
<a-sky src="foto.jpg"></a-sky>
</a-scene>
<a-assets>
<a-asset-item id="martelo" src="obj/martelo.dae"></a-asset-item>
</a-assets>
<a-collada-model src="#martelo"></a-collada-model>
#MozillaNoXIVFGSL
#Mozilla