Angry Birds games had so far been played a total of 200,000 years, with 300 million minutes of playing time daily. TNW Blog 300 million minutes = 5 million hours = 208,000 days = 570 years ... per day! What if we could leverage the popularity of games to do science?
game tools as our theories, and in our experiments. Create a computational model using video game physics (e.g., ) Generate stimuli using a 3D modeling program (e.g., ) Run experiments using a video game framework (e.g., ) (All open source, and all with Python bindings!) Perform data analysis using other Python tools: NumPy, SciPy, pandas, IPython, matplotlib, etc. Bullet Blender Panda3D
focus on the experiments, but if you're interested in the research, check out these links: Project page: PNAS journal article: Scientific American article: Fast Company article: http://web.mit.edu/~pbatt/www/PNAS2013/user.html http://www.pnas.org/content/110/45/18327.abstract http://www.scientificamerican.com/article/the-video-game-engine-in-your- head http://www.fastcodesign.com/3022236/evidence/how-our-brains-play- angry-birds-with-the-world
the objects 2. Display the models with a rendering engine 3. Add physical dynamics with a physics engine 4. Link graphics and physics together We'll go through a conceptual overview of these steps. If you want to learn how to actually code it, you can find the code here: Panda3D also has a great "Hello, world!" tutorial here: https://github.com/jhamrick/pycon-2014-talk/blob/master/demos/tutorial.py https://www.panda3d.org/manual/index.php/A_Panda3D_Hello_World_Tutorial
engine. Panda3d includes bindings to it, and it can be controlled through Python. To simulate physics, you need a B u l l e t W o r l d Keeps track of all the physics objects Computes new positions Handles collisions Physics objects consist of a shape (collisions) and a body (dynamics) Bullet
games had so far been played a total of 200,000 years, with 300 million minutes of playing time daily. TNW Blog Think how much we could learn if people participated in psychology experiments at that scale! With engaging and interactive physics experiments, it doesn't seem impossible.
@ MIT Computational Cognitive Science Lab @ Berkeley Tools Python Panda3D, Blender, and Bullet IPython, NumPy, and the rest of the SciPy stack Slides created with IPython notebook and reveal.js