home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1995 January / pcw-0195.iso / polyray / dat / simple / box1.pi < prev    next >
Text File  |  1994-12-31  |  720b  |  33 lines

  1. // File demonstrating boxes
  2. // Polyray input file: Alexander Enzmann
  3.  
  4. // Set up the camera
  5. viewpoint {
  6.    from <0,7,-10>
  7.    at <0,0,0>
  8.    up <0,1,0>
  9.    angle 45
  10.    resolution 160, 120
  11.    aspect 4/3
  12.    }
  13.  
  14. // Get various surface finishes
  15. background white
  16. light <1, 1, 1>, <-10,10, -5>
  17. // light <1, 1, 1>, <30, 5, 0>
  18.  
  19. // Set up background color & lights
  20. include "..\colors.inc"
  21.  
  22. // Define a short pyramid made out of progressively smaller boxes
  23. define pyramid
  24. object {
  25.      object { box <-1, 3, -1>, <1, 4, 1> }
  26.    + object { box <-2, 2, -2>, <2, 3, 2> }
  27.    + object { box <-3, 1, -3>, <3, 2, 3> }
  28.    + object { box <-4, 0, -4>, <4, 1, 4> }
  29.    matte_blue
  30.    }
  31.  
  32. pyramid { rotate <0, 30, 0> }
  33.