πŸ₯…

Goal:

Deploy a VR experience before you leave today

WebXR:

πŸ‘“ create VR and AR experiences

🀘 with open web technologies

πŸš€ and deliver them through the browser

How?

WebGL β€” existing browser API for 3D in browser

+
WebXR β€” new API for interacting with 3D scenes from modern devices

Why?

"It's just a web page…"

🌏 Viewable on any device with a browser

πŸ›  Reuses existing web tools and skills

πŸ”— Easy to integrate with existing web content

Why not?

πŸ‘¨β€πŸ”¬ Experimental technology

😒 Performance is worse than native

πŸ‘Ύ Actually… it's a bit more than a web page

Framework NOT optional

😡 WebGL is complicated

πŸ€– three.js is simpler, but still complicated

πŸš€ Physics is hard

A-Frame

"VR Legos." Custom elements that abstract three.js objects.


            
              
              
              
              
              
            
          

A-Frame

πŸ”Œ Super simple to get started

⚑️ Hundreds of plugins on NPM

❀️ Supported by Mozilla

Babylon.js

Full game engine with physics and more.


          var createScene = function() {
            var scene = new BABYLON.Scene(engine);
            var camera = new BABYLON.ArcRotateCamera(
              "Camera", Math.PI / 2, Math.PI / 2, 2, BABYLON.Vector3.Zero(), scene
            );
            camera.attachControl(canvas, true);
            var sphere = BABYLON.MeshBuilder.CreateSphere(
              "sphere", { diameter: 2 }, scene
            );
            return scene;
          };
          

Babylon.js

πŸ”‹ "Batteries included" framework

✨ Extensive docs and code playground

❀️ Supported by Microsoft

Today's Format

  1. Create a Hello, World
  2. Build something amazing ✨
  3. Demos every hour, on the hour

Resources

github.com/kaizau/try-webxr QR code for resources