My Account List Orders

AR, VR, and Spatial Apps

Table of Contents

  • Introduction
  • Chapter 1
  • Chapter 2 <Devices, Sensors, and Capabilities>
  • Chapter 3 <Coordinate Systems, Poses, and Anchors>
  • Chapter 4
  • Chapter 5 <Tracking Fundamentals: SLAM, Planes, and Image Targets>
  • Chapter 6
  • Chapter 7 <Interaction Models: Touch, Gaze, Gestures, and Controllers>
  • Chapter 8
  • Chapter 9 <3D Assets and Pipelines: glTF, USDZ, and Materials>
  • Chapter 10 <Asset Optimization: LOD, Baking, and Compression>
  • Chapter 11 <Lighting, Occlusion, and Realism>
  • Chapter 12
  • Chapter 13
  • Chapter 14
  • Chapter 15
  • Chapter 16 <Cross‑Platform Frameworks: Unity, Unreal, React Native, and Flutter>
  • Chapter 17 <State, Architecture, and Data Flows for Spatial Apps>
  • Chapter 18
  • Chapter 19 <Networking and Real‑Time Sync>
  • Chapter 20
  • Chapter 21 <Privacy, Safety, and Comfort>
  • Chapter 22 <Testing, QA, and Telemetry>
  • Chapter 23 <Distribution: App Stores, Web, and Enterprise>
  • Chapter 24
  • Chapter 25

Introduction

Spatial computing is reshaping how we perceive and interact with information. Instead of confining experiences to a flat screen, augmented reality (AR), virtual reality (VR), and mixed reality place content within the world around us—or transport us into entirely new ones. This book, AR, VR, and Spatial Apps: Building immersive web and mobile experiences with ARKit, ARCore, WebXR, and spatial UX, is a practical guide for designers, developers, and product leaders who want to build production‑ready experiences that feel at home in three dimensions.

Our approach is platform‑agnostic but hands‑on. You will learn how to prototype quickly on the web with WebXR, build high‑fidelity mobile apps with ARKit and ARCore, and make confident cross‑platform choices using frameworks that span devices and runtimes. We’ll compare trade‑offs, show you how to structure projects for reuse, and help you decide when to go native, when to go web, and when to combine both.

The book starts with the foundations: coordinate systems, poses, anchors, and scene understanding. We’ll demystify tracking—covering plane detection, image and object tracking, and simultaneous localization and mapping (SLAM)—so you understand what your app can trust, what it can infer, and how to degrade gracefully when sensors or environments fall short. You’ll learn how environmental features like lighting, surfaces, and depth influence perception, realism, and usability.

From there, we dive into 3D content. You’ll learn how to plan asset pipelines that use modern, open formats such as glTF/GLB and USDZ; how to prepare materials and textures for physically based rendering; and how to optimize assets for real‑time performance with level of detail (LOD), mesh decimation, texture atlases, light and occlusion baking, and compression strategies like Draco and KTX2. We’ll show you how to balance fidelity, file size, and loading time across mobile apps and the web.

Great spatial apps are defined by how they let people act, not just what they show. We’ll unpack interaction models—touch, gaze, gestures, controllers, and hand tracking—and map them to spatial UX patterns like direct manipulation, ray casting, affordances, and constraints. You’ll learn how to combine spatial audio, physics, and haptics to communicate system state and guide attention, all while designing for comfort, accessibility, and safety in varied environments.

Shipping at scale requires more than a compelling demo. We’ll cover production considerations end‑to‑end: performance budgets and frame‑time analysis, thermal and power constraints, memory management, networking for multiuser scenes, and persistence with cloud anchors and spatial maps. You’ll learn test strategies for lab and field, telemetry for observability, and safeguards for privacy, bystander awareness, and responsible use of location and camera data.

Finally, we’ll help you bring products to market. You’ll explore distribution paths across app stores, enterprise channels, and the open web; learn how to design trials, subscriptions, and in‑app purchases; and evaluate alternative models from licensing to sponsorships. Along the way, we’ll discuss ethics and safety—how to mitigate motion sickness, avoid unsafe prompts, and respect the physical world your users inhabit—so you can build experiences that are delightful, inclusive, and trustworthy.

Whether you are launching your first prototype or scaling a cross‑platform product, this book will meet you where you are. Each chapter offers heuristics, checklists, and practical recipes, with example projects for ARKit, ARCore, and WebXR that you can adapt to your own stack. By the end, you will have the technical grounding, design mindset, and production playbooks to build immersive applications that are performant, safe, and sustainable in the real world.


CHAPTER ONE: The Spatial Computing Landscape

Spatial computing is the art of blending digital content with the physical world—or replacing that world entirely—to create experiences that feel as natural as walking through a door or catching a ball. It’s a mashup of the real and the virtual, governed by trackers, depth sensors, and clever algorithms that align pixels with physics. Once the realm of science fiction, this landscape is now accessible via the smartphone in your pocket or the headset gathering dust on your shelf.

The term “spatial computing” unifies technologies like augmented reality (AR), virtual reality (VR), and mixed reality (MR) under one umbrella. AR overlays digital objects onto your surroundings, VR immerses you in a simulated environment, and MR lets virtual and real elements interact in real time. Extended reality (XR) is the catch-all for these overlapping disciplines, often used when the line between them blurs—as it frequently does.

This ecosystem didn’t emerge overnight. VR’s roots stretch back to 1960s military simulators and arcade cabinets like Dactyl Nightmare in the 1990s. AR gained traction in 2016 with Pokémon Go, proving that millions would happily wander streets hunting digital creatures. Today, spatial apps range from Snapchat filters to surgical navigation tools, powered by advances in chip design, computer vision, and wireless connectivity.

Devices form the backbone of the landscape. Head-mounted displays (HMDs) like Meta Quest and Apple Vision Pro dominate VR, while mobile AR thrives on iPhones and Android phones with ARCore/ARKit. Smart glasses like Microsoft HoloLens and Magic Leap target enterprise MR, offering translucent displays for overlaying instructions on factory floors. Wearables track hands, eyes, and even facial expressions, turning gestures into input.

Under the hood, these devices rely on sensors—lidar, cameras, IMUs—to map spaces and track movement. Simultaneous localization and mapping (SLAM) algorithms build 3D models of rooms in real time, anchoring virtual objects to walls or tables. Depth sensors measure distances, while photogrammetry reconstructs environments from camera feeds. These technologies make it possible for a digital dinosaur to convincingly hide behind your couch.

Spatial interaction borrows from real-world physics. Instead of clicking buttons, you might pinch the air to zoom or “grab” a virtual tool with your hand. Voice commands replace dropdown menus, and gaze tracking lets you select items just by looking. Controllers add haptic feedback, simulating the weight of a sword or the recoil of a gun. Designers must unlearn decades of flat-screen conventions to make these interactions feel intuitive.

The rise of 3D content has democratized asset creation. Tools like Blender and Adobe Substance let artists model, texture, and animate objects for real-time rendering. Formats like glTF and USDZ standardize how these assets move between apps, while platforms like Sketchfab and TurboSquid host vast libraries of ready-made models. The challenge lies in optimizing polygons and textures to run smoothly on mobile processors without looking like a blob.

Applications for spatial computing span industries. Retailers use AR to let customers “try on” clothes or preview furniture in their homes. Surgeons train in VR simulations that mimic operating rooms down to the pulse of a virtual patient. Architects walk clients through unbuilt designs at human scale, and gamers battle aliens in their backyards. The common thread? Experiences that leverage space, depth, and presence to solve problems or tell stories.

Yet the landscape remains fragmented. Apple’s ARKit, Google’s ARCore, Meta’s Presence Platform, and WebXR all offer different APIs, capabilities, and hardware requirements. Unity and Unreal Engine mitigate this with cross-platform tools, but developers still face trade-offs between reach and fidelity. A feature that works flawlessly on a $3,500 Vision Pro might stutter on a three-year-old Android phone.

Hardware limitations also loom. Overheating, battery drain, and inconsistent tracking plague mobile AR, while VR headsets battle the “screen door effect” and motion sickness. Spatial apps demand more from devices than scrolling through Instagram—processor-intensive tasks like real-time environmental lighting or multiuser synchronization push silicon to its limits.

Despite these hurdles, spatial computing is accelerating. 5G and edge computing offload heavy rendering to servers, wearable displays shrink to near-invisibility, and AI generates 3D assets from text prompts. Standards bodies like the Khronos Group bridge ecosystem gaps, while WebXR brings AR/VR to browsers without app installs. What feels cutting-edge today—like projecting a holographic videocall—will soon be as mundane as sending a text.

This book will guide you through the peaks and valleys of this terrain. Whether you’re building for ARKit’s polished ecosystem, wrestling with ARCore’s fragmentation, or betting on the open web with WebXR, understanding the landscape is the first step toward creating experiences that disappear into the fabric of everyday life—or transport users entirely. The pixels are waiting. Let’s give them a place to live.


This is a sample preview. The complete book contains 27 sections.