home *** CD-ROM | disk | FTP | other *** search
- // Persistence of Vision Raytracer
- // Sample file
- // By Anon.
-
- { This would have won the Intl. Obfuscated Raytrace Code Contest, So I }
- { reformatted it while converting it :-) All kidding }
- { aside, nice job, whoever wrote it! - Aaron A. Collins }
-
- #include "colors.dat"
- #include "shapes.dat"
- #include "textures.dat"
-
- view_point
- location <0.0 -80.0 0.0>
- direction <0.0 1.0 0.0>
- up <0.0 0.0 1.0>
- right <1.333333 0.0 0.0>
- translate < 25.0 0.0 5.0 >
- rotate < -30.0 0.0 30.0 >
- end_view_point
-
- object
- sphere <0.0 0.0 0.0> 1.0 end_sphere
- translate <44.514 0.0 13.5>
- texture
- color White
- ambient 1.0
- diffuse 0.0
- end_texture
- light_source
- color White
- end_object
-
- object
- sphere <0.0 0.0 0.0> 1.0 end_sphere
- translate <-60.514 0.0 160.5>
- texture
- color red 0.7 green 0.7 blue 0.7
- ambient 1.0
- diffuse 0.0
- end_texture
- light_source
- color red 0.7 green 0.7 blue 0.7
- end_object
-
- object
- sphere < 0.0 0.0 0.0 > 5.0 end_sphere
- texture Brass_Texture end_texture
- end_object
-
- object
- sphere < 38.161 0.0 17.197 > 1.0 end_sphere
- texture Brass_Texture end_texture
- end_object
-
- object
- sphere < 9.307 0.0 30.288 > 1.0 end_sphere
- texture Brass_Texture end_texture
- end_object
-
- object
- intersection X_Disk end_intersection
- scale < 31.685 1.0 1.0 >
- rotate < 0.0 -72.9193 0.0 >
- texture Brass_Texture end_texture
- end_object
-
- object intersection X_Disk end_intersection
- scale < 31.685 1.0 1.0 >
- rotate < 0.0 -155.5969 0.0 >
- translate < 38.161 0.0 17.197 >
- texture Brass_Texture end_texture
- end_object
-
- object
- intersection X_Disk end_intersection
- scale < 3.2 0.5 0.5 >
- translate < 38.161 0.0 17.197 >
- texture Brass_Texture end_texture
- end_object
-
- object
- intersection
- quadric
- Cone_Z
- scale < 1.0 1.0 1.0 >
- translate < 44.514 0.0 17.685 >
- end_quadric
- quadric
- Cone_Z
- scale < 1.0 1.0 1.0 >
- translate < 44.514 0.0 16.685 >
- inverse
- end_quadric
- plane < 0.0 0.0 1.0 > 7.685 inverse end_plane
- plane < 0.0 0.0 1.0 > 13.695 end_plane
- end_intersection
- texture Brass_Texture end_texture
- end_object
-
- object
- intersection
- quadric
- Cone_Z
- scale < 0.2 0.2 1.0 >
- translate < 44.514 0.0 33.496 >
- end_quadric
- quadric
- Cone_Z
- scale < 0.2 0.2 1.0 >
- translate < 44.514 0.0 32.496 >
- inverse
- end_quadric
- plane < 0.0 0.0 1.0 > 13.695 inverse end_plane
- plane < 0.0 0.0 1.0 > 23.496 end_plane
- end_intersection
- texture Brass_Texture end_texture
- end_object
-
- object
- plane < 0.0 0.0 1.0 > -4.0 end_plane
- texture
- color CRed
- ambient 0.4
- diffuse 0.6
- brilliance 8.0
- reflection 0.8
- phong 1.0
- phongsize 30.0
- end_texture
- end_object
-