Open-source virtual reality platform for head-fixed adult zebrafish
Virtual realities (VRs) are powerful tools to study how brains interact with the world through behavior. We present a new platform for closed-loop high-resolution virtual-reality experiments in head-fixed adult zebrafish. The VR is defined using open-source software, projected onto a semi-hexagonal tank by three projectors, and controlled by software allowing for modular trial-and-block experimental designs. Real time VR updates are performed by an optimized algorithm based on infrared tail videos. Two-photon imaging during behavior is achieved by custom gating of VR projectors and coordinated with stimulus triggers by a microcontroller. Using this system we found that fish respond to visual landmarks in virtual corridors with distinct changes in locomotion parameters and body posture. Adding landmarks to a familiar corridor elicited localized behavioral responses that decayed with experience. Restricting the viewing distance by simulating 'murky water' further confirmed that behavioral responses were driven by the visibility of landmarks independent of their position. Our platform provides a user-friendly, versatile VR system for the joint analysis of neuronal activity and behavior in adult zebrafish