Animated Example

WB01343_.gif (599 bytes)

Notes

PVM was invoked with the following command line options to render the 80 frames of this animation: -Ianim +H240 +W320 +KFI0 +KFF80 +KI0 +KI360
The animated GIF was generated from the 80 Targa files produced using the Microsoft GIF Animator.

#include "colors.inc"
#include "shapes.inc"
#include "glass.inc"
#include "metals.inc"
#include "stones.inc"
#include "woods.inc"

camera
{
  location <5.0, 2.0, 5.0> 
  up y
  look_at <0.0, 0.0,  0.0>
  rotate <0, clock, 0>
}

light_source
{
  0*x
  color red 1.0  green 1.0  blue 1.0  
  translate <5, 5, 2>
}

plane
{
  y, 0
  pigment
  {
    checker
      color red 1 green 1 blue 1
      color red 0 green 0 blue 1
  }
}

sphere
{
  <0, 0, 0> 1
  pigment
  {
    wood
    turbulence 0.1 
  }
  rotate <-5*clock, 0, 0>
  translate <-2, 1, -1>
}

cone
{
  <2, 0, 0> 1
  <2, 2, 0> 0
  texture
  {
    pigment
    {
      marble 
      color_map {[0.1 color red 1] [0.5 color rgb 1]}
      turbulence 0.5
    }
    finish
    {
      ambient 0.2
      specular 0.6
    }
  }
}

disc
{
  <0, 0, 0>
  x,       
  1.0,     
  0.2      
  rotate <0, clock*5, 0>
  translate <-1, 1, 2>
  pigment {
    onion 
    color_map {[0.6 color red .9 blue 1] [0.6 color red 1]}
  }
}

torus
{
  0.8,
  0.2
  translate <1, 3, 2>
  rotate <0, 0, 45>
}


fog
{
  fog_type 1 
  distance 30
  color Gray
}
WB01343_.gif (599 bytes)