home *** CD-ROM | disk | FTP | other *** search
- // Persistence of Vision Raytracer
- // Sample File
- // © Scintillating Graphics Co.
-
- // To test the little twister program.
- // In order to render, you will need to drag the accompanying file
- // "Twisted" into the "Inc" directory inside the PVRay appliaction.
-
- #include "<PVRay$Dir>.Dat.Colors"
- #include "<PVRay$Dir>.Dat.Shapes"
- #include "<PVRay$Dir>.Dat.Textures"
-
- #declare TraceMe = quadric
- QSphere
- end_quadric
-
- #include "<PVRay$Dir>.Lib.Path"
-
- object
- Path
- texture
- colour CRed
- phong 0.4
- phongsize 60
- end_texture
- end_object
-
- object
- plane <0 0 -1> -110 end_plane
- texture
- colour CBlue
- end_texture
- end_object
-
- object
- sphere <0 0 0> 1 end_sphere
- texture
- colour White
- end_texture
- light_source
- colour White
- translate <5 20 -20>
- end_object
-
- view_point
- location <0 5 0>
- direction <0 0 1>
- up <0 1 0>
- right <1.3 0 0>
- look_at <0 0 50>
- end_view_point
-