Cargando…
Ratcave: A 3D graphics python package for cognitive psychology experiments
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 provi...
Autores principales: | , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
Springer US
2019
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6797704/ https://www.ncbi.nlm.nih.gov/pubmed/31062192 http://dx.doi.org/10.3758/s13428-019-01245-x |
_version_ | 1783459888575283200 |
---|---|
author | Del Grosso, Nicholas A. Sirota, Anton |
author_facet | Del Grosso, Nicholas A. Sirota, Anton |
author_sort | Del Grosso, Nicholas A. |
collection | PubMed |
description | 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. ELECTRONIC SUPPLEMENTARY MATERIAL: The online version of this article (10.3758/s13428-019-01245-x) contains supplementary material, which is available to authorized users. |
format | Online Article Text |
id | pubmed-6797704 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2019 |
publisher | Springer US |
record_format | MEDLINE/PubMed |
spelling | pubmed-67977042019-11-01 Ratcave: A 3D graphics python package for cognitive psychology experiments Del Grosso, Nicholas A. Sirota, Anton Behav Res Methods Article 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. ELECTRONIC SUPPLEMENTARY MATERIAL: The online version of this article (10.3758/s13428-019-01245-x) contains supplementary material, which is available to authorized users. Springer US 2019-05-06 2019 /pmc/articles/PMC6797704/ /pubmed/31062192 http://dx.doi.org/10.3758/s13428-019-01245-x Text en © The Author(s) 2019 Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. |
spellingShingle | Article Del Grosso, Nicholas A. Sirota, Anton Ratcave: A 3D graphics python package for cognitive psychology experiments |
title | Ratcave: A 3D graphics python package for cognitive psychology experiments |
title_full | Ratcave: A 3D graphics python package for cognitive psychology experiments |
title_fullStr | Ratcave: A 3D graphics python package for cognitive psychology experiments |
title_full_unstemmed | Ratcave: A 3D graphics python package for cognitive psychology experiments |
title_short | Ratcave: A 3D graphics python package for cognitive psychology experiments |
title_sort | ratcave: a 3d graphics python package for cognitive psychology experiments |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6797704/ https://www.ncbi.nlm.nih.gov/pubmed/31062192 http://dx.doi.org/10.3758/s13428-019-01245-x |
work_keys_str_mv | AT delgrossonicholasa ratcavea3dgraphicspythonpackageforcognitivepsychologyexperiments AT sirotaanton ratcavea3dgraphicspythonpackageforcognitivepsychologyexperiments |