Varifocal Display Systems for Virtual Reality

Waterloo Reality Labs, Fall 2024

Written and built by @Kenny Na and @Isaac Chiu

Abstract

This paper attempts to provide a mechanical varifocal solution to the vergence-accommodation conflict present in today's consumer virtual and mixed reality headsets. The varifocal display system consists of a single biconvex lens set at a fixed position, with the display modules for the eyes being set between the focal length of the lens and the lens itself. We achieve dynamic focal distances by moving the displays closer and further from the lens via stepper motors. To quickly and accurately approximate where in the virtual scene the user is looking, we implement real-time gaze-tracking with XIAO ESP32S3 Sense cameras and software courtesy of the open-source project EyeTrackVR. We create a ray cast from the user's eyes in the Unity game engine to find the object in focus and calculate its distance from the user. This proves as the basis for the varifocal display system.

Using the prototype and an example Unity scene, we attempt to empirically prove the benefits of varifocal technology with an internal study. Lastly, we discuss the limitations of only moving the display modules versus other methods of achieving a varifocal display system.

Introduction

Today’s VR display systems

Virtual reality (VR) headsets today contain a simple, static display system, usually consisting of one refractive lens (or, in recent years, a folded optical design) and a pair of displays to be magnified and viewed by the user. The stereoscopic output of the displays are what enables the simulation of depth to the user. However, due to the fixed nature of the display system, VR headsets can only deliver one fixed distance of focus, often designed to be set to a moderate length of 2 meters. This means that as VR users attempt to focus on objects closer to or farther from the distance of focus, the accommodation of the VR display system fails to match the the vergence of the user’s eyes. This issue, named the vergence-accommodation conflict (VAC), can cause blurriness and discomfort in the visual experience of VR users, as well as eye strain.

image.png

Importance of adjustable focus in VR systems

VR users are always shifting their gaze and focus, as they would in real life. This makes it immersion-breaking for VR users to, for example, bring their virtual hands near their faces, and have them look extremely blurry, or enter a 3D environment with far-away buildings or mountains, and feel as if they lack real depth or clarity. Extremely sensitive users may get VR sickness from this experience, but many more users will experience eye-strain due to the fixed focus distance and aforementioned vergence-accommodation conflict. This makes benefits of solving the vergence-accommodation conflict are clear, especially in the realm of user comfort, but it is also crucial that this problem is solved as the resolution of display panels get higher and higher. The perceived sharpness of a next generation, high-resolution screen could be completely bottle-necked at close distances of focus by the perceived blur from the vergence-accommodation conflict. For these reasons, it can be said that display systems with a variable focus distance will become an absolute requirement for future VR technology.

Build Overview

Basic HMD

Before constructing the varifocal system, we had to choose the ideal platform to integrate it into. To ensure maximum flexibility when integrating our mechanical display adjustment system into the head-mounted display (HMD), we constructed a fully custom VR headset using open-source guides and resources. Existing work within the University of Waterloo's Reality Labs design team allowed for materials and assembly of a custom VR headset to be straightforward. We reused the following components in our build:

Components Our Choice Count
Microcontroller Arduino Pro Micro (ATmega32U4) 1
IMU MPU-9250 1
Display 1440x1440 90Hz LCDs 2
Housing Custom 3D-printed in-house design 1*
Lenses d = 50mm, f = 50mm, Fresnel lenses 2

We can implement these components into a SteamVR-compatible package using HadesVR/Relativty's drivers and the FastIMU Arduino library courtesy of GitHub user LiquidCGS, both of which are fully open-source. The flow chart below provides an overview of the interactions between the different components.

image.png

Calculations

Moving the displays