Home

If you're new to Python
and VPython: Introduction

A VPython tutorial

Pictures of 3D objects

Choose a 3D object:

Work with 3D objects:

Windows, Events, & Files:

Vector operations

Graphs

factorial/combin

What's new in Visual 5

VPython web site
Visual license
Python web site
Math module (sqrt etc.)
Numpy module (arrays)

The Visual Module of VPython |

VPython is the Python programming language plus a 3D graphics module called "Visual" originated by David Scherer in 2000. This documentation describes all of the Visual capabilities.

Descriptions of the options available in the left margin:

> Introduction: The basics of Python and VPython.

> Tutorial: More on VPython, including making an animation

> Pictures of 3D objects: What the objects look like

> Choose a 3D object: Details of cylinder, box, etc. Start with cylinder for an overview.

> Work with 3D objects: Issues that apply to all 3D objects: color, material, etc.

> Windows, Events, & Files: Creating/modifying windows; handling mouse/ keyboard events; reading/writing files

> Vector operations: Magnitude, dot and cross product, rotation, etc.

> Graphs: Making graphs of data.

> factorial/combin: Special functions used in probability calculations.

> What's new: Features new in Visual 5.

Be sure to explore the many example programs that are installed with Visual.

To invoke the Visual module, place the following statement at the start of the file:

from visual import *

To make sure that 3/4 is treated as 0.75 rather than zero, start your program with these statements (there are two underlines before future and two underlines after future):

from __future__ import division
from visual import *

VPython documentation was produced by Ruth Chabay, David Scherer, and Bruce Sherwood.