pygame does work with 3.x and Mac OS X. There are no binary installers for any latest version of Mac, but this is not a big loss because binary installers have never been very good. You basically have to follow Unix installation instructions and figure out how to install all the prerequisites (if you use Homebrew , it's just brew install sdl sdl_ttf β¦ jpeg libpng ), then figure out how to tell the setup how to find all these prerequisites. You can look at (or perhaps even use) this recipe adapted to your own Python installation.
As far as I know, other main alternatives for 3D graphics are PyOpenGL and pyglet . The first is a pretty straightforward wrapper around OpenGL, which is great if you think in terms of GL. The latter is a higher-level library, somewhat similar to pygame , but built directly on its own OpenGL and its own windows on each platform, and not on SDL.
You can also see the Python 3D Software Collection , which is maintained by the main author of PyOpenGL . I have no idea how relevant this is, but it still links to it from the PyOpenGL website and docs.
If you are looking for something mathematically oriented, you can see matplotlib , mplot3d and friends. If you are ultimately trying to display complex geometric shapes and transform / intersect / etc. them, this is your friend. If you are trying to create a simple game or quasi-CAD program, it is not.
abarnert
source share