home *** CD-ROM | disk | FTP | other *** search
- // Persistence of Vision Raytracer
- // Sample file
-
- #include "colors.dat"
- #include "shapes.dat"
- #include "textures.dat"
-
- view_point
- location <0.0 10.0 -90.0>
- direction <0.0 0.0 1.0>
- up <0.0 1.0 0.0>
- right <1.0 0.0 0.0>
- end_view_point
-
- // Top part of bowl
- object
- intersection
- sphere <0.0 0.0 0.0> 20.0 end_sphere
- sphere <0.0 0.0 0.0> 19.99 inverse end_sphere
- plane <0.0 1.0 0.0> 15.0 rotate <10.0 0.0 0.0> end_plane
- plane <0.0 1.0 0.0> 10.0 rotate <10.0 0.0 0.0> inverse end_plane
- end_intersection
- translate <-8.0 0.0 0.0>
- texture
- color LightGray alpha 0.7
- ambient 0.3
- diffuse 0.7
- refraction 1.0
- ior 1.5
- end_texture
- end_object
-
- // Bottom part of bowl
- object
- intersection
- sphere <0.0 0.0 0.0> 20.0 end_sphere
- sphere <0.0 0.0 0.0> 19.99 inverse end_sphere
- plane <0.0 1.0 0.0> 10.0 rotate <10.0 0.0 0.0> end_plane
- end_intersection
- translate <-8.0 0.0 0.0>
- texture
- color LightBlue alpha 0.9
- ambient 0.1
- diffuse 0.7
- refraction 0.9
- ior 1.33
- end_texture
- end_object
-
- object
- plane <0.0 1.0 0.0> -19.0 end_plane
- texture
- checker colour DarkSlateGrey colour IndianRed
- scale <10.0 10.0 10.0>
- end_texture
- end_object
-
- object
- plane <0.0 0.0 1.0> 30.0 end_plane
- texture
- colour red 0.329804 blue 0.204314 green 0.204314
- end_texture
- end_object
-
- object
- sphere <0.0 0.0 0.0> 1.5 end_sphere
- translate <-100.0 100.0 -130.0>
- texture
- colour red 0.7 green 0.7 blue 0.7
- ambient 1.0
- diffuse 0.0
- end_texture
- colour red 0.7 green 0.7 blue 0.7
- light_source
- end_object
-
-
- // Picture
- composite
- object
- intersection
- plane <1.0 0.0 0.0> 1.0 end_plane
- plane <1.0 0.0 0.0> -1.0 inverse end_plane
- plane <0.0 1.0 0.0> 1.0 end_plane
- plane <0.0 1.0 0.0> -1.0 inverse end_plane
- plane <0.0 0.0 1.0> 1.0 end_plane
- plane <0.0 0.0 1.0> -1.0 inverse end_plane
- end_intersection
- translate <1.0 1.0 1.0>
- scale <20.0 15.0 1.0>
- texture
- color White
- ambient 0.05
- diffuse 0.9
- end_texture
- end_object
-
- // The picture frame
- object
- union
- intersection
- union
- quadric Cylinder_Y scale <1.0 1.0 1.0> translate <41.0 0.0 0.0> end_quadric
- quadric Cylinder_Y scale <1.0 1.0 1.0> translate <-1.0 0.0 0.0> end_quadric
- end_union
- plane <0.0 1.0 0.0> 31.0 end_plane
- plane <0.0 1.0 0.0> -1.0 inverse end_plane
- end_intersection
- intersection
- union
- quadric Cylinder_X scale <1.0 1.0 1.0> translate <0.0 31.0 0.0> end_quadric
- quadric Cylinder_X scale <1.0 1.0 1.0> translate <0.0 -1.0 0.0> end_quadric
- end_union
- plane <1.0 0.0 0.0> 41.0 end_plane
- plane <1.0 0.0 0.0> -1.0 inverse end_plane
- end_intersection
- sphere <-1.0 -1.0 0.0> 1.0 end_sphere
- sphere <-1.0 31.0 0.0> 1.0 end_sphere
- sphere <41.0 -1.0 0.0> 1.0 end_sphere
- sphere <41.0 31.0 0.0> 1.0 end_sphere
- end_union
- texture
- Pine_Wood
- ambient 0.3
- diffuse 0.7
- end_texture
- end_object
-
- scale <1.5 1.5 1.5>
- translate <20.0 20.0 29.0>
- end_composite
-