Related Experiment Video
Updated: Aug 19, 2025

Enabling High Grayscale Resolution Displays and Accurate Response Time Measurements on Conventional Computers
Published on: February 29, 2012
Luminance calibration of virtual reality displays in Unity
Richard F Murray1,2, Khushbu Y Patel1,3, Emma S Wiedenmann4,5
1Department of Psychology and Centre for Vision Research, York University, Toronto, Ontario, Canada.
Abstract:
Virtual reality (VR) displays are an increasingly popular medium for experiments on visual perception. This presents the challenge of showing precisely controlled stimuli on devices that were not primarily designed for research. Here we describe methods for controlling stimulus luminance in VR experiments created in Unity using the Built-in Render Pipeline. We discuss the Gamma/Linear setting, measuring luminance in a VR headset, and using color grading in Unity's Post-Processing Stack to make stimulus luminance proportional to achromatic RGB value. We provide MATLAB code that uses luminance measurements from a VR headset to generate the lookup table that Unity requires for linearizing luminance. We emphasize that when creating experiments in this complex environment, it is important to experiment with the rendering process to confirm that stimuli are displayed as expected. We show results of several such tests and provide code as a starting point for readers who wish to run further tests related to their own research.
Related Concept Videos
Glassware Calibration
Volumetric flasks: Volumetric flasks are designed to prepare aqueous solutions of precise volumes accurately with a calibration line on the neck. To calibrate a volumetric flask, it is important to fill it with distilled...
Calibration Curves: Linear Least Squares
For data that follow a straight line, the standard method for fitting is the linear...
Sight Distance in a Vertical Curve
Depth Perception and Spatial Vision
Light Acquisition
Calibration Curves: Correlation Coefficient

