Getting ready

Raspberry Pi must be directly connected to a display, either via the HDMI or an analog video output. The 3D graphics rendered by the GPU will only be displayed on a local display, even if you are connecting to Raspberry Pi remotely over a network. You will also need to use a locally connected mouse for control (however, keyboard control does work via a SSH connection).

The first time we use pi3d, we will need to download and install it via the following steps:

  1. The pi3d library uses Pillow, a version of the Python Imaging Library that is compatible with Python 3, to import graphics used in models (such as textures and backgrounds).

The installation of Pillow has been covered in the Getting ready section of Chapter 3, Using ...

Get Raspberry Pi 3 Cookbook for Python Programmers - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.