VPython: 3D Programming for Ordinary Mortals
The Python module vpython makes it remarkably easy to write programs that generate navigable real-time 3D animations, as a side effect of computations. This is in contrast to most 3D graphics libraries, which require as a prerequisite very high computing skills. VPython programs can run in standard Python environments such as IDLE, Spyder, or a Jupyter notebook. They can also run in mobile devices, thanks to the use of the RapydScript-NG Python-to-JavaScript transpiler. Previous short presentations on VPython focused on its architecture and implementation. This presentation will instead be in the form of a tutorial on how to use VPython. No programming background other than basic Python is required. At
glowscript.org click "Example programs" to see a variety of applications, which run in your browser. At
vpython.org are instructions on installing the vpython module.
Bruce Sherwood is an NCSU emeritus professor of physics and a Fellow of the American Physical Society, the American Association of Physics Teachers, and the American Association for the Advancement of Science. He is currently the main developer of VPython. He is co-author with Ruth Chabay of the introductory physics textbook "Matter & Interactions" for science and engineering college students (
matterandinteractions.org). In North Carolina, this textbook is currently used at NCSU, High Point University, UNC-Greensboro, Wake Forest University, and Guilford College.