home *** CD-ROM | disk | FTP | other *** search
- // Persistence of Vision Raytracer
- // Sample file
- // By Tom Price
-
-
-
- #include "shapes.dat"
- #include "colors.dat"
- #include "textures.dat"
-
- view_point
- location <0.0 35.0 -150.0>
- up <0.0 1.0 0.0>
- right <1.3333 0.0 0.0>
- look_at <0.0 0.0 0.0>
- end_view_point
-
- fog
- colour red 0.5 green 0.5 blue 0.5
- 1000.0
- end_fog
-
- {The floor}
- object
- plane <0.0 1.0 0.0> -60.0 end_plane
- texture
- 0.05
- checker colour Brown colour LightGray
- scale <40.0 40.0 40.0>
- translate <-5.0 0.0 0.0>
- ambient 0.2
- diffuse 0.7
- reflection 0.3
- phong 1.0
- phongsize 20.0
- end_texture
- colour red 0.4 blue 0.4 green 0.4
- end_object
-
- {The Sky}
- object
- sphere <0.0 -40000.0 0.0> 50000.0 end_sphere
- texture
- 0.05
- Bright_Blue_Sky
- scale <6000.0 3000.0 3000.0>
- rotate <0.0 -30.0 0.0>
- ambient 0.7
- diffuse 0.0
- end_texture
- colour CBlue
- end_object
-
- composite
- object
- intersection
- sphere <0.0 0.0 0.0> 40.0 end_sphere
- quadric Cylinder_Z scale <20.0 20.0 1.0> inverse end_quadric
- end_intersection
- texture
- 0.05
- ambient 0.1
- diffuse 0.7
- colour red 0.6 green 0.6 blue 0.0
- reflection 0.7
- brilliance 6.0
- specular 0.5
- end_texture
- end_object
-
- composite
- object
- triangle
- <-1.0 0.0 -0.5773502>
- < 1.0 0.0 -0.5773502>
- < 0.0 0.0 1.1547005>
- end_triangle
- texture
- 0.05
- colour Gold
- ambient 0.1
- diffuse 0.7
- reflection 0.4
- brilliance 6.0
- specular 0.5
- end_texture
- end_object
-
- object
- triangle
- <-1.0 0.0 -0.5773502>
- < 0.0 0.0 1.1547005>
- < 0.0 1.6329931 0.0>
- end_triangle
- texture
- 0.05
- colour Gold
- ambient 0.1
- diffuse 0.7
- reflection 0.4
- brilliance 6.0
- specular 0.5
- end_texture
- end_object
-
- object
- triangle
- < 1.0 0.0 -0.5773502>
- < 0.0 0.0 1.1547005>
- < 0.0 1.6329931 0.0>
- end_triangle
- texture
- 0.05
- colour Gold
- ambient 0.1
- diffuse 0.7
- reflection 0.4
- brilliance 6.0
- specular 0.5
- end_texture
- end_object
-
- object
- triangle
- <-1.0 0.0 -0.5773502>
- < 1.0 0.0 -0.5773502>
- < 0.0 1.6329931 0.0>
- end_triangle
- texture
- 0.05
- colour red 0.5 green 0.4 blue 0.0
- ambient 0.4
- diffuse 0.6
- reflection 0.2
- brilliance 6.0
- end_texture
- end_object
-
- translate <0.0 -0.4082886 0.0>
- scale <15.0 15.0 15.0>
- rotate <-45.0 -50.0 10.0>
- end_composite
-
- object
- intersection
- quadric Cylinder_Y scale <7.0 1.0 7.0> end_quadric
- plane <0.0 1.0 0.0> -20.0 end_plane
- end_intersection
- texture
- 0.05
- Pine_Wood
- scale <10.0 100.0 10.0>
- ambient 0.1
- diffuse 0.7
- reflection 0.5
- specular 0.5
- end_texture
- end_object
- translate <10.0 20.0 60.0>
- end_composite
-
- composite
- object
- sphere <0.0 0.0 0.0> 20.0 end_sphere
- texture
- Glass
- 0.05
- end_texture
- end_object
-
- object
- intersection
- quadric Cylinder_Y scale <3.0 1.0 3.0> end_quadric
- plane <0.0 1.0 0.0> 0.0 end_plane
- end_intersection
- texture
- 0.05
- Pine_Wood
- scale <10.0 50.0 10.0>
- ambient 0.1
- diffuse 0.7
- reflection 0.5
- specular 0.5
- end_texture
- end_object
- translate <-40.0 -5.0 -0.0>
- end_composite
-
- composite
- object
- sphere <0.0 0.0 0.0> 15.0 end_sphere
- texture
- 0.05
- colour red 0.0 green 0.6 blue 0.3
- ambient 0.1
- diffuse 0.5
- reflection 0.5
- brilliance 3.0
- specular 0.1
- end_texture
- end_object
-
- object
- intersection
- quadric Cylinder_Y scale <3.0 1.0 3.0> end_quadric
- plane <0.0 1.0 0.0> 0.0 end_plane
- end_intersection
- texture
- 0.05
- Pine_Wood
- scale <10.0 100.0 10.0>
- ambient 0.1
- diffuse 0.7
- reflection 0.5
- specular 0.5
- end_texture
- end_object
- translate <50.0 10.0 -30>
- end_composite
-
- object
- sphere <250.0 25.0 350.0> 30.0 end_sphere
- texture
- Glass
- 0.05
- end_texture
- end_object
-
- composite
- object
- sphere <0.0 0.0 0.0> 40.0 end_sphere
- texture
- { imagemap <1.0 -1.0 0.0> gif "city01.gif" once }
- color CBlue
- scale <75.0 75.0 75.0>
- translate <-127.5 -7.5 100.0>
- ambient 0.1
- diffuse 0.5
- colour red 0.5 green 0.5 blue 0.5
- reflection 0.2
- { refraction 0.4}
- { ior 1.2 }
- phong 0.1
- phongsize 10
- end_texture
- end_object
-
- object
- intersection
- quadric Cylinder_Y scale <6.0 1.0 6.0> end_quadric
- plane <0.0 1.0 0.0> -20.0 end_plane
- end_intersection
- texture
- 0.05
- Pine_Wood
- scale <10.0 50.0 10.0>
- ambient 0.1
- diffuse 0.7
- reflection 0.5
- specular 0.5
- end_texture
- end_object
- translate <-100.0 30.0 100.0>
- end_composite
-
- object
- sphere <0.0 0.0 0.0> 20.0 end_sphere
- translate <-100.0 100.0 -200.0>
- texture
- colour White
- ambient 1.0
- diffuse 0.0
- end_texture
- light_source
- colour White
- end_object
-
-