home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1995 January / pcw-0195.iso / polyray / dat / uvmaps / uvtst.pi < prev   
Text File  |  1994-12-31  |  1KB  |  68 lines

  1. // Generic Polyray input File
  2. // Polyray input file: Alexander Enzmann
  3.  
  4. // Set up the camera
  5. viewpoint {
  6.    from <0,0,-8>
  7.    at <0,0,0>
  8.    up <0,1,0>
  9.    angle 45
  10.    hither 1
  11.    resolution 256, 256
  12.    }
  13.  
  14. background <0, 0, 0>
  15. light <-10,3, -20>
  16.  
  17. define shiny_red
  18. texture {
  19.    surface {
  20.       ambient red, 0.2
  21.       diffuse red, 0.8
  22.       specular white, 0.7
  23.       microfacet Reitz 10
  24.       }
  25.    }
  26.  
  27. define two_sided_red_blue
  28. texture {
  29.    special surface {
  30.       color (N . I < 0 ? red : blue)
  31.       ambient 0.1
  32.       diffuse 0.7
  33.       specular white, 0.7
  34.       microfacet Cook 5
  35.       }
  36.    }
  37.  
  38. object {
  39.    sphere <-2, 2, 0>, 1
  40.    uv_bounds 0.3, 1.0, 0.0, 0.8
  41.    two_sided_red_blue
  42.    }
  43. object {
  44.    cone <-2, 0, 0>, 0, <-2,-2, 0>, 1
  45.    uv_bounds 0.3, 1.0, 0.0, 0.8
  46.    two_sided_red_blue
  47.    }
  48. object {
  49.    disc < 2, 2, 0>, <0, 1, -1>, 1
  50.    uv_bounds 0.3, 1.0, 0.0, 1.0
  51.    two_sided_red_blue
  52.    }
  53. object {
  54.    cylinder < 2,-2, 0>, < 2, 0, 0>, 1
  55.    uv_bounds 0.3, 1.0, 0.0, 0.8
  56.    two_sided_red_blue
  57.    }
  58. object {
  59.    parabola <0, -2, 0>, <0, 0, 0>, 1
  60.    uv_bounds 0.3, 1.0, 0.0, 0.5
  61.    two_sided_red_blue
  62.    }
  63. object {
  64.    torus 0.5, 0.25, <0, 1, 0>, <0, 1, -1>
  65.    uv_bounds 0.3, 1.0, 0.0, 0.7
  66.    two_sided_red_blue
  67.    }
  68.