Related Experiment Video
Updated: Jun 28, 2025

08:59
An Open-Source Virtual Reality System for the Measurement of Spatial Learning in Head-Restrained Mice
Published on: March 3, 2023
2.1K
PTVR - A software in Python to make virtual reality experiments easier to build and more reproducible
Eric Castet1,2, Jérémy Termoz-Masson3,4, Sebastian Vizcay3,5
1Aix Marseille Univ, CNRS, CRPN, Marseille, France.
Journal of Vision
|April 23, 2024
Summary
Researchers can now easily create virtual reality (VR) visual perception experiments using the new Perception Toolbox for Virtual Reality (PTVR) Python library. This tool simplifies complex programming, enhancing study transparency and reproducibility.
Area of Science:
- Vision Science
- Virtual Reality (VR) Behavioral Experiments
- Computational Neuroscience
Background:
- Virtual reality (VR) is increasingly utilized for behavioral experiments, particularly in vision science.
- Programming VR experiments typically requires expertise in game engines, posing a significant barrier for many researchers.
- Existing methods are often time-consuming and complex, limiting broader adoption of VR in research.
Purpose of the Study:
- Introduce the Perception Toolbox for Virtual Reality (PTVR) library.
- Enable the creation of visual perception studies in VR using high-level Python scripting.
- Reduce the technical barriers for researchers conducting VR-based experiments.
Main Methods:
- Developed a Python library (PTVR) built upon an existing open-source library.
- Leveraged high-level Python scripting for experiment design.
- Focused on simplifying the description of experiments through single, readable code.
Main Results:
- PTVR allows visual perception studies to be programmed with simplified Python scripts.
- The library enhances the transparency, reproducibility, and reusability of VR experiments.
- PTVR is built on a well-established open-source foundation with significant development.
Conclusions:
- PTVR dramatically lowers the difficulty of programming VR experiments.
- The library is expected to facilitate a new range of visual perception studies with high ecological validity.
- PTVR promotes more accessible and robust research in virtual reality environments.

