home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #7 / amigamamagazinepolishissue1998.iso / varia / povray3 / povray3_fpu / pov3demo / demo / shapes2.pov < prev    next >
Text File  |  1997-12-12  |  2KB  |  100 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // By Chris Young
  3. // This image contains an example of every shape from SHAPES2.INC
  4.  
  5. #version 3.0
  6. global_settings { assumed_gamma 2.2 }
  7.  
  8. #include "colors.inc"
  9. #include "shapes.inc"
  10. #include "shapes2.inc"
  11.  
  12. camera {
  13.    location <10, 10, -20>
  14.    direction <0, 0, 1.5>
  15.    up  <0, 1, 0>
  16.    right <4/3, 0, 0>
  17.    look_at <2, 0, 0>
  18. }
  19.  
  20. light_source {<0, 1000, -1000> color LightGray}
  21.  
  22. light_source {<150, 100, -100> color LightGray}
  23.  
  24. #declare Col1 =-9
  25. #declare Col2 =-3
  26. #declare Col3 =3
  27. #declare Col4 =8
  28.  
  29. #declare Row1 =6
  30. #declare Row2 =0
  31. #declare Row3 =-6
  32.  
  33. object { Tetrahedron
  34.    pigment {Red}
  35.    bounded_by {sphere{<0, 0, 0>, 3}}
  36.    translate <Col1, 2, Row1>
  37. }
  38.  
  39. object { Octahedron
  40.    pigment {Green}
  41.    bounded_by {sphere{<0, 0, 0>, 1.8}}
  42.    translate <Col2, 1.8, Row1>
  43. }
  44.  
  45. object { Dodecahedron
  46.    pigment {Blue}
  47.    bounded_by {sphere{<0, 0, 0>, 1.3}}
  48.    translate <Col3, 1.3, Row1>
  49. }
  50.  
  51. object { Icosahedron
  52.    pigment {Magenta}
  53.    bounded_by {sphere{<0, 0, 0>, 1.3}}
  54.    translate <Col4, 1.3, Row1>
  55. }
  56.  
  57. object { HalfCone_Y
  58.    pigment {Yellow}
  59.    bounded_by {sphere{<0, 0, 0>, 1.5}}
  60.    translate <Col1, 1.5, Row2>
  61. }
  62.  
  63. object { Hexagon
  64.    pigment {Cyan}
  65.    bounded_by {sphere{<0, 0, 0>, 1.5}}
  66.    translate <Col2, 1.5, Row2>
  67. }
  68.  
  69. object { Rhomboid
  70.    pigment {Tan}
  71.    bounded_by {sphere{<0, 0, 0>, 2.3}}
  72.    translate <Col3, 1.5, Row2>
  73. }
  74.  
  75. object { Pyramid
  76.    pigment {Orange}
  77.    bounded_by {sphere{<0, 0, 0>, 5}}
  78.    translate <Col4, 1.5, Row2>
  79. }
  80.  
  81. object { Square_X
  82.    pigment {NeonPink}
  83.    translate <Col2, 1, Row3>
  84. }
  85.  
  86. object { Square_Y
  87.    pigment {Scarlet}
  88.    translate <Col3, 1, Row3>
  89. }
  90.  
  91. object { Square_Z
  92.    pigment {NeonBlue}
  93.    translate <Col4, 1, Row3>
  94. }
  95.  
  96. object {
  97.    plane {y, 0}
  98.    pigment {White}
  99. }
  100.