Simple sphere example for POV-Ray

The commands below are the sample commands from the first part of the POV-Ray tutorial.

Copy these commands into a new file called demo.pov

Then give the following commands:

setup povray
povray +Idemo.pov
display demo.tga

You should see an image of a sphere appear on your screen.


#include "colors.inc"    

background { color Cyan }

camera {
  location <0, 2, -3>
  look_at <0, 1, 2>
}

sphere {
  <0, 1, 2>, 2
  texture {
    pigment { color Yellow }
  }
}

light_source { <2, 4, -3> color White}