| Reference | Downloads | Github

Any VR application?


OS: Ubuntu 16.04
Psychopy version: 1.90

Anyone has tried Psychopy in a VR or AR environment? Where should I start? Any tutorial available?

Thank you


I actually have developed modules for using the Oculus Rift CV1 with PsychoPy, allowing for full 3D scenes to be rendered with tracking. I haven’t yet made them publicly available since there is some preliminary work required to incorporate such a massive code base into PsychoPy without breaking everything.

Stay tuned.


Great! Looking forward to, and please keep me (and the psychopy community) informed !!



That’s awesome! I’ve been trying to get any stimulus presentation set up with an Oculus CV1 with OpenHMD, with little luck. Looking forward to a public release – any ETA? Would love to talk to you a bit about what you’ve accomplished there!



Interesting you brought this up now since I’ve been working on getting this out ASAP. I updated the bindings to support the most recent version of the Oculus SDK, but I need to put a bit more work into getting the PsychoPy interface to reflect those changes.

At the very least, the extension library for working with the Rift will be released soon as a separate package. If you have any questions, you can private message me them.


That’s awesome: PM’ed!

Looking forward to a release!


Great!! Please keep me (and the Psychopy community) informed. I started using Psychopy just a year ago. I love it. Before that, I used E-prime and customized C# and Psychopy is the best. I earnestly hope the Psychopy framework grows and becomes the standard for behavioral and neuroscience studies.

  • takashi



I’ve publicly released the source code for a library used to interface with the Oculus Rift (CV1 and DK2) called PsychXR ( The library is the basis for HMD support being added into PsychoPy. PsychXR just wraps HMD APIs does not provide rendering support, you need to use Pyglet or similar to draw anything. Eventually other APIs may be supported through that library, however there are no plans as of yet (OpenHMD for instance).

I would wait for the PsychoPy support which greatly simplifies using the Rift in your experiments, including 3D stimuli classes and examples. However, if you are writing applications from scratch and can handle OpenGL, you can use PsychXR directly. I’ll be releasing pre-compiled binaries of PsychXR once PsychoPy support rolls out since their development is closely related.


Just a follow-up.

PsychXR is now available on PyPI. Only 64-bit Python 3.6 is supported.


Thank you! takashi



Just to let everyone know that PsychoPy 3 has Rift support along with some demos. You need PsychXR installed to use it. I’m looking into a pure-Python replacement for PsychXR to eventually remove that as a requirement, but you need to use it for now. There is also some decent support already in PsychoPy 3 for loading *.OBJ files (with textures and normals) for use in VR scenes. I spent a bit of time optimizing 3D model generation to reduce as much overhead as possible. Right now models are rendered using the old ‘red book’ OpenGL spec (1.1 if I recall) for compatibility purposes, however, I use modern VAOs and indexed draw buffers which provide large performance gains for more demanding applications. I’ll write up a short guide to loading 3D models into PsychoPy for use with the Rift when I have the chance.