3D Graphics
Python for S60 provides support for 3D graphics by way of the modulesgles and glcanvas. The gles module contains Python bindings to the
OpenGL ES 2D and 3D graphics API. The glcanvas module provides
an object for displaying the 3D graphics, in the same way as the Canvas
object is used to display 2D graphics.
Making 3D graphics with OpenGL is somewhat complicated. Fortunately,
several good books and free tutorials have been written about the
subject. Thus, we do not go into details here. A good starting point is,
for instance http://pyopengl.sourceforge.net, which explains a Python
version of the OpenGL graphics. The Python for S60 version follows these
conventions closely
We provide a teaser for 3D graphics on this book’s website. There you
can find an example of a 3D cube, shown in Figure 5.7, which spins on
the x, y and z axes simultaneously.

No comments:
Post a Comment