home *** CD-ROM | disk | FTP | other *** search
- // Persistence of Vision Raytracer
- // Sample file
- // By Dan Farmer
-
- #include "shapes.dat"
- #include "colors.dat"
- #include "textures.dat"
-
- view_point
- location <0.0 0.0 -60.0>
- look_at <0.0 0.0 0.0>
- right <1.3333 0.0 0.0>
- end_view_point
-
- { Light behind viewer postion (pseudo-ambient light) }
- object
- sphere <0.0 0.0 0.0> 2.0 end_sphere
- translate <-50.0 50.0 -150.0>
- texture
- colour White
- ambient 1.0
- diffuse 0.0
- end_texture
- light_source
- colour White
- end_object
-
-
- { Top row }
- object { Ball 1 }
- sphere <-18.0 18.0 -4.0> 3.25 end_sphere
- texture
- color White
- end_texture
- end_object
- object { Ball 2 }
- sphere <-24 18.0 -4.0> 3.25 end_sphere
- texture
- color CRed
- end_texture
- end_object
- object { Ball 3 }
- sphere <-12.0 18.0 -4.0> 3.25 end_sphere
- texture
- color CGreen
- end_texture
- end_object
- object { Ball 4 }
- sphere <-6.0 18.0 -4.0> 3.25 end_sphere
- texture
- color CBlue
- end_texture
- end_object
- object { Ball 5 }
- sphere <0.0 18.0 -4.0> 3.25 end_sphere
- texture
- color Yellow
- end_texture
- end_object
- object { Ball 6 }
- sphere <6.0 18.0 -4.0> 3.25 end_sphere
- texture
- color Cyan
- end_texture
- end_object
- object { Ball 7 }
- sphere <12.0 18.0 -4.0> 3.25 end_sphere
- texture
- color Magenta
- end_texture
- end_object
- object { Ball 8 }
- sphere <18.0 18.0 -4.0> 3.25 end_sphere
- texture
- color Aquamarine
- end_texture
- end_object
- object { Ball 9 }
- sphere <24.0 18.0 -4.0> 3.25 end_sphere
- texture
- color Black
- end_texture
- end_object
-
- { 2nd row }
- object { Ball 1 }
- sphere <-24.0 12.0 -4.0> 3.25 end_sphere
- texture
- color BlueViolet
- end_texture
- end_object
- object { Ball 2 }
- sphere <-18.0 12.0 -4.0> 3.25 end_sphere
- texture
- color Brown
- end_texture
- end_object
- object { Ball 3 }
- sphere <-12.0 12.0 -4.0> 3.25 end_sphere
- texture
- color CadetBlue
- end_texture
- end_object
- object { Ball 4 }
- sphere <-6.0 12.0 -4.0> 3.25 end_sphere
- texture
- color Coral
- end_texture
- end_object
- object { Ball 5 }
- sphere <0.0 12.0 -4.0> 3.25 end_sphere
- texture
- color CornflowerBlue
- end_texture
- end_object
- object { Ball 6 }
- sphere <6.0 12.0 -4.0> 3.25 end_sphere
- texture
- color DarkGreen
- end_texture
- end_object
- object { Ball 7 }
- sphere <12.0 12.0 -4.0> 3.25 end_sphere
- texture
- color DarkOliveGreen
- end_texture
- end_object
- object { Ball 8 }
- sphere <18.0 12.0 -4.0> 3.25 end_sphere
- texture
- color DarkOrchid
- end_texture
- end_object
- object { Ball 9 }
- sphere <24.0 12.0 -4.0> 3.25 end_sphere
- texture
- color DarkSlateBlue
- end_texture
- end_object
-
- { 3rd (Center ) row}
- object { Ball 1 }
- sphere <-24.0 6.0 -4.0> 3.25 end_sphere
- texture
- color DarkSlateGray
- end_texture
- end_object
- object { Ball 2 }
- sphere <-18.0 6.0 -4.0> 3.25 end_sphere
- texture
- color DarkTurquoise
- end_texture
- end_object
- object { Ball 3 }
- sphere <-12.0 6.0 -4.0> 3.25 end_sphere
- texture
- color DimGray
- end_texture
- end_object
- object { Ball 4 }
- sphere <-6.0 6.0 -4.0> 3.25 end_sphere
- texture
- color Firebrick
- end_texture
- end_object
- object { Ball 5 }
- sphere <0.0 6.0 -4.0> 3.25 end_sphere
- texture
- color ForestGreen
- end_texture
- end_object
- object { Ball 6 }
- sphere <6.0 6.0 -4.0> 3.25 end_sphere
- texture
- color Gold
- end_texture
- end_object
- object { Ball 7 }
- sphere <12.0 6.0 -4.0> 3.25 end_sphere
- texture
- color Goldenrod
- end_texture
- end_object
- object { Ball 8 }
- sphere <18.0 6.0 -4.0> 3.25 end_sphere
- texture
- color Gray
- end_texture
- end_object
- object { Ball 9 }
- sphere <24.0 6.0 -4.0> 3.25 end_sphere
- texture
- color GreenYellow
- end_texture
- end_object
-
- { 4th row }
- object { Ball 1 }
- sphere <-24.0 0.0 -4.0> 3.25 end_sphere
- texture
- color IndianRed
- end_texture
- end_object
- object { Ball 2 }
- sphere <-18.0 0.0 -4.0> 3.25 end_sphere
- texture
- color Khaki
- end_texture
- end_object
- object { Ball 3 }
- sphere <-12.0 0.0 -4.0> 3.25 end_sphere
- texture
- color LightBlue
- end_texture
- end_object
- object { Ball 4 }
- sphere <-6.0 0.0 -4.0> 3.25 end_sphere
- texture
- color LightGray
- end_texture
- end_object
- object { Ball 5 }
- sphere <0.0 0.0 -4.0> 3.25 end_sphere
- texture
- color LightSteelBlue
- end_texture
- end_object
- object { Ball 6 }
- sphere <6.0 0.0 -4.0> 3.25 end_sphere
- texture
- color LimeGreen
- end_texture
- end_object
- object { Ball 7 }
- sphere <12.0 0.0 -4.0> 3.25 end_sphere
- texture
- color Maroon
- end_texture
- end_object
- object { Ball 8 }
- sphere <18.0 0.0 -4.0> 3.25 end_sphere
- texture
- color MediumAquamarine
- end_texture
- end_object
- object { Ball 9 }
- sphere <24.0 0.0 -4.0> 3.25 end_sphere
- texture
- color MediumBlue
- end_texture
- end_object
-
- { 5th row }
- object { Ball 1 }
- sphere <-24.0 -6.0 -4.0> 3.25 end_sphere
- texture
- color MediumForestGreen
- end_texture
- end_object
- object { Ball 2 }
- sphere <-18.0 -6.0 -4.0> 3.25 end_sphere
- texture
- color MediumGoldenrod
- end_texture
- end_object
- object { Ball 3 }
- sphere <-12.0 -6.0 -4.0> 3.25 end_sphere
- texture
- color MediumOrchid
- end_texture
- end_object
- object { Ball 4 }
- sphere <-6.0 -6.0 -4.0> 3.25 end_sphere
- texture
- color MediumSeaGreen
- end_texture
- end_object
- object { Ball 5 }
- sphere <0.0 -6.0 -4.0> 3.25 end_sphere
- texture
- color MediumSlateBlue
- end_texture
- end_object
- object { Ball 6 }
- sphere <6.0 -6.0 -4.0> 3.25 end_sphere
- texture
- color MediumSpringGreen
- end_texture
- end_object
- object { Ball 7 }
- sphere <12.0 -6.0 -4.0> 3.25 end_sphere
- texture
- color MediumTurquoise
- end_texture
- end_object
- object { Ball 8 }
- sphere <18.0 -6.0 -4.0> 3.25 end_sphere
- texture
- color MediumVioletRed
- end_texture
- end_object
- object { Ball 9 }
- sphere <24.0 -6.0 -4.0> 3.25 end_sphere
- texture
- color MidnightBlue
- end_texture
- end_object
-
- { 6th row }
- object { Ball 1 }
- sphere <-24.0 -12.0 -4.0> 3.25 end_sphere
- texture
- color Navy
- end_texture
- end_object
- object { Ball 2 }
- sphere <-18.0 -12.0 -4.0> 3.25 end_sphere
- texture
- color Orange
- end_texture
- end_object
- object { Ball 3 }
- sphere <-12.0 -12.0 -4.0> 3.25 end_sphere
- texture
- color OrangeRed
- end_texture
- end_object
- object { Ball 4 }
- sphere <-6.0 -12.0 -4.0> 3.25 end_sphere
- texture
- color Orchid
- end_texture
- end_object
- object { Ball 5 }
- sphere <0.0 -12.0 -4.0> 3.25 end_sphere
- texture
- color PaleGreen
- end_texture
- end_object
- object { Ball 6 }
- sphere <6.0 -12.0 -4.0> 3.25 end_sphere
- texture
- color Pink
- end_texture
- end_object
- object { Ball 7 }
- sphere <12.0 -12.0 -4.0> 3.25 end_sphere
- texture
- color Plum
- end_texture
- end_object
- object { Ball 8 }
- sphere <18.0 -12.0 -4.0> 3.25 end_sphere
- texture
- color Salmon
- end_texture
- end_object
- object { Ball 9 }
- sphere <24.0 -12.0 -4.0> 3.25 end_sphere
- texture
- color SeaGreen
- end_texture
- end_object
-
- { 7th row }
- object { Ball 1 }
- sphere <-24.0 -18.0 -4.0> 3.25 end_sphere
- texture
- color Sienna
- end_texture
- end_object
- object { Ball 2 }
- sphere <-18.0 -18.0 -4.0> 3.25 end_sphere
- texture
- color SkyBlue
- end_texture
- end_object
- object { Ball 3 }
- sphere <-12.0 -18.0 -4.0> 3.25 end_sphere
- texture
- color SlateBlue
- end_texture
- end_object
- object { Ball 4 }
- sphere <-6.0 -18.0 -4.0> 3.25 end_sphere
- texture
- color SpringGreen
- end_texture
- end_object
- object { Ball 5 }
- sphere <0.0 -18.0 -4.0> 3.25 end_sphere
- texture
- color SteelBlue
- end_texture
- end_object
- object { Ball 6 }
- sphere <6.0 -18.0 -4.0> 3.25 end_sphere
- texture
- color Tan
- end_texture
- end_object
- object { Ball 7 }
- sphere <12.0 -18.0 -4.0> 3.25 end_sphere
- texture
- color Thistle
- end_texture
- end_object
- object { Ball 8 }
- sphere <18.0 -18.0 -4.0> 3.25 end_sphere
- texture
- color Turquoise
- end_texture
- end_object
- object { Ball 9 }
- sphere <24.0 -18.0 -4.0> 3.25 end_sphere
- texture
- color Violet
- end_texture
- end_object
-
- { 8th row }
- object { Ball 1 }
- sphere <-24.0 -24.0 -4.0> 3.25 end_sphere
- texture
- color VioletRed
- end_texture
- end_object
- object { Ball 2 }
- sphere <-18.0 -24.0 -4.0> 3.25 end_sphere
- texture
- color Wheat
- end_texture
- end_object
- object { Ball 3 }
- sphere <-12.0 -24.0 -4.0> 3.25 end_sphere
- texture
- color YellowGreen
- end_texture
- end_object
- object { Ball 4 }
- sphere <-6.0 -24.0 -4.0> 3.25 end_sphere
- texture
- color OldGold
- end_texture
- end_object
- { ********************** unused for now **********************************
- object { Ball 5 }
- sphere <0.0 -24.0 -4.0> 3.25 end_sphere
- texture
- color
- end_texture
- end_object
- object { Ball 6 }
- sphere <6.0 -24.0 -4.0> 3.25 end_sphere
- texture
- color
- end_texture
- end_object
- object { Ball 7 }
- sphere <12.0 -24.0 -4.0> 3.25 end_sphere
- texture
- color
- end_texture
- end_object
- object { Ball 8 }
- sphere <18.0 -24.0 -4.0> 3.25 end_sphere
- texture
- color
- end_texture
- end_object
- object { Ball 9 }
- sphere <24.0 -24.0 -4.0> 3.25 end_sphere
- texture
- color
- end_texture
- end_object
- ****************** end of unused area ***************************}
-