Christian Grail

Live Coding an Augmented Reality Game with WebXR

What if you could build an entire AR game in your browser with just 60 lines of code? This live coding session shows you exactly how.

Live Coding an Augmented Reality Game with WebXR
#1about 7 minutes

Exploring AR and VR for enterprise data visualization

Past projects demonstrate using handwriting chatbots and virtual reality to interact with and visualize large enterprise datasets from different angles.

#2about 1 minute

Understanding the core differences between AR and VR

Augmented reality enhances your real-world environment by adding virtual objects, whereas virtual reality completely replaces it with a simulated one.

#3about 3 minutes

The evolution from marker-based to markerless AR

Early augmented reality relied on physical markers like QR codes, but modern markerless AR uses device sensors to dynamically find anchors in the environment.

#4about 3 minutes

The WebXR standard and its browser ecosystem

The WebXR standard unifies web-based AR and VR, with growing support in browsers like Chrome and future adoption expected in Safari.

#5about 3 minutes

Setting up a WebXR project with Three.js

A basic WebXR application is initialized using Three.js to manage the 3D scene, camera, renderer, lighting, and the AR session button.

#6about 3 minutes

Creating and placing 3D objects in an AR scene

Learn to create a 3D object using Three.js geometry and materials, then position and orient it in the real world based on user touch input.

#7about 3 minutes

Animating 3D objects in WebXR using tweening

Use a tweening library to smoothly animate an object's position from a starting point to an end point and remove it from the scene upon completion.

#8about 6 minutes

Implementing collision detection and game logic

Load a 3D model, check for intersections between its bounding box and another object, and trigger game events like explosions and sounds on collision.

#9about 5 minutes

The future of AR hardware and 3D interfaces

The next evolution in AR will be lightweight glasses that replace physical screens with large virtual displays, leading to a future of 3D user interfaces.

#10about 9 minutes

Getting started with WebXR development

The Q&A covers recommended resources like Mozilla's WebXR examples, using TypeScript with Three.js, and simulating AR experiences with a Chrome extension.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

Related Articles

View all articles
DC
Daniel Cranney
The State of WebDev AI 2025 Results: What Can We Learn?
Introduction The 2025 edition of The State of WebDev AI offers a detailed snapshot of how developers are using AI today, which tools have gained the most traction over the past year, and what these trends suggest about the future of the industry. In...
The State of WebDev AI 2025 Results: What Can We Learn?
S
SciChart
The Fastest JavaScript Charts - Built for React and Beyond
For most developers, browser charting works fine — until it doesn’t. Once you push beyond tens of thousands of points, add live streaming, or need advanced interactions, the story changes: frame drops, frozen dashboards, memory issues. That’s where S...
The Fastest JavaScript Charts - Built for React and Beyond
CH
Chris Heilmann
Building a "shoutout" component in plain HTML/CSS/JavaScript
Every Wednesday we meet at noon to talk about a lot of tech news, tools and resources in something we call WeAreDevelopers Live . We go live on YouTube and afterwards we cut out short videos to post on social media. What we needed was an obvious “sho...
Building a "shoutout" component in plain HTML/CSS/JavaScript
CH
Chris Heilmann
Dev Digest 151: SEO in an AI world, security fixes and Doomed PDFs
Inside last week’s Dev Digest 151 . 🔎 How ChatGPT compares to search and what that means for SEO ✂️ Job cuts across the board as companies curb DEI programs 🟨 @Microsoft releases 161 Windows security updates ⚠️ @Google’s OAuth bug endangers million...
Dev Digest 151: SEO in an AI world, security fixes and Doomed PDFs

From learning to earning

Jobs that call for the skills explored in this talk.

XR Developer

XR Developer

Eastern Education Group
Bury St. Edmunds, United Kingdom

29-33K
Game Developer

Game Developer

Studioxr
Nieuwegein, Netherlands

Remote
4K
PHP
C++
GIT
+3