We use cookies to enhance your experience on our website. By continuing to use our website, you are agreeing to our use of cookies. You can change your cookie settings at any time. Find out more
Oxford University Press
  OUP Worldwide
Search:
Advanced Search
Printer-Friendly View
You are here: Home > Academic, Professional, & General > Boudreau and Swanson: Applied Computational Physics > Chapter 10: Graphics for Physicists

Companion Website

Boudreau and Swanson: Applied Computational Physics

Chapter 10: Graphics for Physicists

example code (.tgz)

  • SKELETON: an empty skeleton that you can use to develop your own graphics application.
  • HELLO_WORLD: an introductory example that shows some text.
  • TEXTUREWORLD: displays a texture-mapped image of the earth.
  • DUALWORLD: shows two copies of an identical texture-mapped earth.
  • CRYSTALLOGRAPHY: displays several types of lattices, such as cubic, rhombic, orthorhombic, and hexagonal.
  • CUBY: renders an image of a Sierpinski cube.
  • VECTORFIELD: draws an image of a vector field.
  • PERC: runs a simulation of percolation in three dimensions. Clusters are identified and coloured.
  • FRACTALS: draw a fractal tree, a fractal forest, and a Cayley tree. The Cayley tree program has two versions, one which makes more efficient use of memory by sharing instances of scene objects in the scene graph.
  • RANDOM_NUMBERS: visualizes a faulty LCG random number generator by plotting triplets of points in three dimensions.
  • ANIMATIONS/ROTATING_EARTH: demonstrates animated scenes using engines.
  • ANIMATIONS/ORBITS: demonstrates animated scenes using callback functions.

About this book
Price, bibliographic details, and more information on the book