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 0.0 -100.0>
- up <0.0 1.0 0.0>
- right <1.3333 0.0 0.0>
- look_at <0.0 11.547005 0.0>
- end_view_point
-
- {The Kaleidoscope Tube}
- composite
- composite
- object
- union
- triangle <0.0 1.1547005 -100.0>
- <0.0 1.1547005 0.0>
- <-1.0 -0.5773502 0.0>
- inverse end_triangle
-
- triangle <0.0 1.1547005 -100.0>
- <-1.0 -0.5773502 -100.0>
- <-1.0 -0.5773502 0.0>
- inverse end_triangle
- end_union
- texture 0.05
- ambient 0.1
- diffuse 0.7
- colour White
- reflection 1.0
- end_texture
- end_object
-
- object
- union
- triangle <-0.001 1.1547005 -100.0>
- <-0.001 1.1547005 0.0>
- <1.0 -0.5773502 0.0>
- inverse end_triangle
-
-
- triangle <-0.001 1.1547005 -100.0>
- <1.0 -0.5773502 -100.0>
- <1.0 -0.5773502 0.0>
- inverse end_triangle
- end_union
- texture 0.05
- ambient 0.1
- diffuse 0.7
- colour White
- reflection 1.0
- end_texture
- end_object
-
- object
- union
- triangle
- <-1.0 -0.5773502 -100.0>
- <1.0 -0.5773502 -100.0>
- <-1.0 -0.5773502 0.0>
- end_triangle
-
- triangle
- <1.0 -0.5773502 -100.0>
- <-1.0 -0.5773502 0.0>
- <1.0 -0.5773502 0.0>
- end_triangle
- end_union
- texture
- 0.05
- Bright_Blue_Sky
- ambient 0.5
- diffuse 0.5
- end_texture
- colour Cyan
- end_object
-
- object
- triangle <-1.0 -0.5773502 0.0>
- <1.0 -0.5773502 0.0>
- <0.0 1.1547005 0.0>
- end_triangle
- colour red 0.5 green 0.5 blue 0.5 alpha 0.3
- texture
- 0.1
- ambient 0.3
- diffuse 0.7
- colour red 0.5 green 0.5 blue 0.5 alpha 0.3
- end_texture
- end_object
-
- scale <10.0 10.0 1.0>
- end_composite
-
- object
- sphere <-3.5 -3.0 -45.0> 3.0 end_sphere
- texture
- 0.05
- ambient 0.1
- diffuse 0.7
- colour CRed alpha 0.8
- reflection 0.2
- refraction 1.0
- ior 1.2
- brilliance 3.0
- end_texture
- end_object
-
- object
- sphere <4.0 -3.0 -40.0> 2.5 end_sphere
- texture
- 0.05
- ambient 0.1
- diffuse 0.7
- colour CGreen alpha 0.8
- reflection 0.2
- refraction 1.0
- ior 1.2
- brilliance 3.0
- end_texture
- end_object
-
- object
- sphere <0.0 4.0 -30.0> 2.0 end_sphere
- texture
- 0.05
- ambient 0.1
- diffuse 0.7
- colour Magenta alpha 0.8
- reflection 0.2
- refraction 1.0
- ior 1.2
- brilliance 3.0
- end_texture
- end_object
-
- object
- sphere <0.0 -2.0 -20.0> 2.0 end_sphere
- texture
- 0.05
- ambient 0.1
- diffuse 0.7
- colour Yellow alpha 0.8
- reflection 0.2
- refraction 1.0
- ior 1.2
- brilliance 3.0
- end_texture
- end_object
-
- object
- sphere <2.0 -4.0 -70.0> 2.0 end_sphere
- texture 0.05
- ambient 0.1
- diffuse 0.7
- colour Cyan alpha 0.8
- reflection 0.2
- refraction 1.0
- ior 1.2
- brilliance 3.0
- end_texture
- end_object
-
- object
- triangle
- <-1.0 -8.0 -50.0>
- < 0.0 1.0 -50.0>
- < 2.0 -3.0 -50.0>
- end_triangle
-
- texture
- 0.05
- ambient 0.3
- diffuse 0.7
- colour red 0.8 green 0.5 blue 0.3 alpha 0.9
- end_texture
- end_object
-
- object
- triangle
- <1.0 7.0 -5.0>
- < -4.0 -1.0 -5.0>
- < 3.0 1.0 -5.0>
- end_triangle
-
- texture
- 0.05
- ambient 0.3
- diffuse 0.7
- colour red 0.2 green 0.9 blue 0.5 alpha 0.9
- end_texture
- end_object
-
- object
- triangle
- <-8.0 -5.0 -80.0>
- < -4.0 -1.0 -80.0>
- < 0.0 -4.0 -80.0>
- end_triangle
- texture
- 0.05
- ambient 0.3
- diffuse 0.7
- colour red 0.7 green 0.7 blue 0.3 alpha 1.0
- refraction 0.9
- ior 1.0
- end_texture
- end_object
-
- object
- union
- triangle
- <0.0 0.0 0.0>
- <0.0 1.0 0.0>
- <1.0 0.0 0.0>
- end_triangle
-
- triangle
- <1.0 0.0 0.0>
- <0.0 1.0 0.0>
- <1.0 1.0 0.0>
- end_triangle
- end_union
- rotate <20.0 45.0 -10.0>
- translate <-0.6 -0.5 -65.0>
- scale <10.0 10.0 1.0>
- texture
- ambient 0.5
- diffuse 0.3
- // Subsitute your own image here instead of sunset.ham
- // imagemap <1.0 -1.0 0.0> iff "sunset.ham" once
- // interpolate 2.0
- // end_map
- rotate <20.0 45.0 -10.0>
- translate <-0.6 -0.5 -65.0>
- scale <9.0 9.0 1.0>
- refraction 0.25
- ior 1.0
- end_texture
- end_object
-
- end_composite
-
- object
- sphere <0.0 0.0 0.0> 20.0 end_sphere
- translate <0.0 0.0 20.0>
- texture
- ambient 1.0
- diffuse 0.0
- colour White
- end_texture
- colour White
- light_source
- end_object
-