home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1995 January / pcw-0195.iso / polymore / fig2-7.pi < prev    next >
Text File  |  1994-09-25  |  647b  |  38 lines

  1. // "HEXAGON.PI" OR FIG2-7.PI
  2.  
  3. include "d:\polyray\include\colors.inc"
  4.  
  5. //////////////////////////////////
  6. // The scene starts here
  7.  
  8. // Make a hexagon floor in red, white and blue
  9. // PLANE (Polygon)
  10. object {
  11.    polygon 4, <-100,0,100>, <-100,0,-100>, <100,0,-100>, <100,0,100>
  12.    translate <0, -1, 0>
  13.    texture { hexagon matte_red, matte_white, matte_blue }  
  14. }
  15.  
  16. // Sphere
  17. object
  18.       { 
  19.      sphere<0, 0, 5>, 4
  20.      shiny_red
  21.       }
  22.  
  23. // The scene ends here
  24. //////////////////////////////////
  25.             
  26. // Lights!
  27. light<-5, 5, -5>
  28.  
  29. // Camera!
  30. viewpoint
  31.   from <0, 0, -1>
  32.   at <0, 0, 5>
  33.   up <0, 1, 0>
  34.   aspect 1.6
  35. }
  36.  
  37.