home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #7 / amigamamagazinepolishissue1998.iso / varia / povray3 / povray3_fpu / pov3demo / objects / polygon.pov < prev    next >
Text File  |  1997-12-12  |  838b  |  53 lines

  1.  
  2. #global_settings { assumed_gamma 2.2 }
  3.  
  4. #include "colors.inc"
  5. #include "shapes.inc"
  6.  
  7. camera {
  8.   location <0, 8, -50>
  9.   right <4/3, 0, 0>
  10.   up <0, 1, 0>
  11.   sky <0, 1, 0>
  12.   angle 20
  13.   look_at <0, 4, 0>
  14. }
  15.  
  16. light_source { <20, 50, -100> color White }
  17.  
  18. background { color SkyBlue }
  19.  
  20. #declare P =
  21. polygon {
  22.   12,
  23.   <0, 0>, <0, 6>, <4, 6>, <4, 3>, <1, 3>, <1, 0>, <0, 0>,
  24.   <1, 4>, <1, 5>, <3, 5>, <3, 4>, <1, 4>
  25. }
  26.  
  27. #declare O =
  28. polygon {
  29.   10,
  30.   <0, 0>, <0, 6>, <4, 6>, <4, 0>, <0, 0>,
  31.   <1, 1>, <1, 5>, <3, 5>, <3, 1>, <1, 1>
  32. }
  33.  
  34. #declare V =
  35. polygon {
  36.   8,
  37.   <1, 0>, <0, 6>, <1, 6>, <2, 1>, <3, 6>, <4, 6>, <3, 0>, <1, 0>
  38. }
  39.  
  40. union {
  41.   object { P translate -5*x }
  42.   object { O translate 0*x }
  43.   object { V translate 5*x }
  44.   pigment { colour Red }
  45.   finish { ambient .3 diffuse .6 }
  46.   translate -3*x
  47. }
  48.  
  49. plane { y, 0
  50.   pigment { color Green }
  51. }
  52.  
  53.