threeDS is a Python module for loading and displaying 3D models in the 3DStudio Max 3DS format.
threeDS comes with view3DS, a simple 3DS model viewer written in Python.
· PyOpenGL is needed for all displaying of models. While the threeDS.py module can be used to load models without PyOpenGL, no rendering is possible.
· view3ds also requires the Togl Tk widget be installed.
· If you plan on loading models with textures, you must also have the Python Imaging Library installed. PIL can be downloaded from: http://www.pythonware.com/products/pil/
Keep in mind, all texture files referenced by models are intended to be case insensitive. On some platforms(*nix) renaming texture files may be required.
Copy threeDS.py somewhere into your Python path before you try to run view3ds
or any code using threeDS.
The Togl widget provides basic navigation. Dragging the left mouse button pans, middle mouse button rotates, and right mouse button zooms. The model can also be set to autorotate by clicking once with the middle mouse button.
· The 3DS format is very robust, and much of it is not implemented in this module. Currently, threeDS only supports 3DS geometry, materials(including textures), and undirected lights. Keyframing, directed lighting, and everything else is currently unimplemented.