Artwork | Email

Pov-Ray source for Hay Sphere

// Persistence of Vision Ray Tracer Scene Description File
// File: hay_sphere2.pov
// Vers: 3
// Desc: Rods surrounding a sphere with light streaming out of it. This is my first
//       image using the #while statement.
// Date: 07/17/2000
// Auth: Jim Lowell - jlowell@visi.com

#version 3

#include "colors.inc"
#include "textures.inc"
#include "metals.inc"

camera
{
  location  <0, 0, -40>
  look_at   <0, 0,  0>
}

media {
  intervals 300
  scattering { 1, rgb 0.03}
  samples 1, 10         
  confidence 0.9999
  variance 1/1000
  ratio 0.9
}

light_source
{
  0*x
  color red 1.50  green 1.50 blue 1.50
  translate <0, 0, 0>
  media_attenuation on
}

box { <-50, -50, -50>, <50, 50, 50>
  pigment { rgb 1 }
  hollow
}

#declare I = 0
#while (I < 360)
  cylinder {
    <-10,0,0>,<10,0,0>,0.15
    translate <0,10,0>
    rotate <I * 1,I * 25,I * 30>
    pigment { Yellow }
    finish { Shiny }
  }    
  #declare I = I + 1
#end