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.

job ad

Saby Company
Delebio, Italy

Intermediate

d

Saby Company
Delebio, Italy

Junior

Featured Partners

Related Articles

View all articles
LS
Louis Sawyer
How The Internet of Things Impacts Game Development?
Most web designers around the world are increasingly faced with the rapid transition of the gaming industry to the world of the Internet of Things. In recent years, the main engine in the development of the gaming industry are concepts such as virtua...
How The Internet of Things Impacts Game Development?
LM
Luis Minvielle
The Best Upcoming IT Webinars
Now that you already know what IT webinars are and how they can help you level up your professional appeal, you might want actually to get into one. Live tech webinars are one of the best ways to stay on top of the latest trends and tools because eit...
The Best Upcoming IT Webinars
CH
Chris Heilmann
Dev Digest 112 - The True Crime of AI Development
In last Friday's Dev Digest, we had some great AI news, some worrying security threats and a swipe-aware game in CSS with explanations! News and ArticlesLet's kick off with some AI news. Netflix caused a stir with AI-generated images in a true crime ...
Dev Digest 112 - The True Crime of AI Development
LM
Luis Minvielle
10 Developer Websites in 2023
As a web developer, you're always investigating how to level up your skills and streamline your workflow. That's why we've gathered a collection of 10 innovative tools that are guaranteed to boost your productivity, enhance your coding abilities, ele...
10 Developer Websites in 2023

From learning to earning

Jobs that call for the skills explored in this talk.

XR-Entwickler

XR-Entwickler

TEMA Technologie Marketing AG

Remote
Unreal Engine