Munich Cluster for Systems Neurology

Breadcrumb Navigation


Ratcave: A 3D graphics python package for cognitive psychology experiments.

Behav Res Methods. 2019 May 6. doi: 10.3758/s13428-019-01245-x. [Epub ahead of print]

Authors/Editors: Del Grosso NA, Sirota A.
Publication Date: 2019



We present here a free, open source Python 3D graphics library called Ratcave that extends existing Python psychology stimulus software by allowing scientists to load, display, and transform 3D stimuli created in 3D modeling software. This library makes 3D programming intuitive to new users by providing 3D graphics engine concepts (Mesh, Scene, Light, and Camera classes) that can be manipulated using an interface similar to existing 2D stimulus libraries. In addition, the use of modern OpenGL constructs by Ratcave helps scientists create fast, hardware-accelerated dynamic stimuli using the same intuitive high-level, lightweight interface. Because Ratcave supplements, rather than replaces, existing Python stimulus libraries, scientists can continue to use their preferred libraries by simply adding Ratcave graphics to their existing experiments. We hope this tool will be useful both as a stimulus library and as an example of how tightly-focused libraries can add quality to the existing scientific open-source software ecosystem.

Related Links