home *** CD-ROM | disk | FTP | other *** search
- // Persistence of Vision Raytracer
- // Sample Quartic file
- // by Alexander Enzmann
-
- // Bicorn
- #case_sensitive_opt
- #include "shapes.dat"
- #include "colors.dat"
- #include "textures.dat"
- #include "shapesq.dat"
-
- // Get the declaration of the coordinate axes
- #include "axisbox.dat"
-
- // Declare the orientation of the surface
- #declare Orient = <-20 -60 0>
-
- // Bicorn
- composite
- object
- quartic Bicorn
- texture color CRed phong 1.0 end_texture
- sturm
- end_quartic
- scale <3 3 3>
- bounded_by
- sphere <0 0 0> 3 end_sphere
- end_bound
- clipped_by
- plane < 1 0 0> 0.5 end_plane
- plane <-1 0 0> 0.5 end_plane
- end_clip
- end_object
- object
- quartic Bicorn
- texture color CBlue phong 1.0 end_texture
- sturm
- end_quartic
- scale <2.99 2.99 2.99>
- translate <0 0.01 0>
- bounded_by
- sphere <0 0 0> 2.99 end_sphere
- end_bound
- clipped_by
- plane < 1 0 0> 0.49 end_plane
- plane <-1 0 0> 0.49 end_plane
- end_clip
- end_object
- translate <0 -1.5 0 >
- rotate Orient
- end_composite
-
- // Show coordinate axes
- composite Axes
- rotate Orient
- end_composite
-
- // The viewer is eight units back along the z-axis.
- view_point
- location <0.0 0.0 -8.0>
- right <1.3333 0.0 0.0>
- up <0.0 1.0 0.0>
- direction <0.0 0.0 1.0>
- end_view_point
-
- // Put in some light sources so that highlighting can give visual clues
- // as to the shape of the surface.
- object
- sphere <0 0 0> 1 end_sphere
- translate <200 100 -300>
- texture
- colour White
- ambient 1.0
- diffuse 0.0
- end_texture
- light_source
- colour White
- end_object
-
- object
- sphere <0 0 0> 1 end_sphere
- translate <-200 100 -300>
- texture
- colour White
- ambient 1.0
- diffuse 0.0
- end_texture
- light_source
- colour White
- end_object
-