// Sample-1-2.pov #include "shapes.inc" // The #include command is just for the compatibility with // the POV-Ray. By now, consider it as a comment. camera { location <0, 0, 5> look_at <0, 0, 0> // direction has been removed!!! right <0, 1.33, 0> up <0, 1, 0> // note that camera coordinate system is scaling, not the world coordinate system scale <2, 2, 2> } // create a regular point light source light_source { <2 ,0, 10> color rgb <1,1,1> // white light } union { cone { <0, 1, 0>, 0.05, <0, 0, 0>, 0.3 pigment {color rgb <1, 0.5, 0>} // brown translate <0, 2, 0> } cylinder { <0, 2, 0>, <0, -1, 0>, 0.1 pigment {color rgb <1, 1, 0>} // yellow } scale <0.5, 1, 1> rotate <0, 0, 40> } // note that the union block below is same as the above // just with differenct transformations union { cone { <0, 1, 0>, 0.05, <0, 0, 0>, 0.3 pigment {color rgb <1, 0.5, 0>} // brown translate <0, 2, 0> } cylinder { <0, 2, 0>, <0, -1, 0>, 0.1 pigment {color rgb <1, 1, 0>} // yellow } scale <0.8, 0.7, 1> rotate <0, 0, -80> // color: will be applied to sub objects // only if no color has already been specified for them pigment {color rgb <1, 1, 1>} } sphere { <0, 0, 0> 0.2 pigment {color rgb <1, 1, 1>} // white }