home *** CD-ROM | disk | FTP | other *** search
/ Mega A/V / mega_av.zip / mega_av / GRAPHUTL / POVSCN.ZIP / MATH.ZIP / BICUBE.POV < prev    next >
Text File  |  1992-07-03  |  1KB  |  62 lines

  1. // Persistence Of Vision raytracer version 1.0 sample file.
  2.  
  3. // Sample quartic { file
  4. // by Alexander Enzmann
  5.  
  6.  
  7. #include "shapes.inc"
  8. #include "colors.inc"
  9. #include "textures.inc"
  10.  
  11. // a cubic { shape {, like a cube with smoothed edges in appearance 
  12. object {
  13.    quartic {
  14.       < 1.0   0.0   0.0    0.0     0.0   0.0   0.0   0.0   0.0    0.0
  15.       0.0   0.0   0.0    0.0     0.0   0.0   0.0   0.0   0.0    0.0
  16.       1.0   0.0   0.0    0.0     0.0   0.0   0.0   0.0   0.0    0.0
  17.       1.0   0.0   0.0    0.0  -1000.0 >
  18.       rotate <20.0 40.0 30.0>
  19.    }
  20.    texture {
  21.       color Red
  22.       phong 1.0
  23.       phong_size 10
  24.       ambient 0.2
  25.       diffuse 0.8
  26.    }
  27.    rotate <-45 0 0>
  28.    translate <0 0 20>
  29.    color Red
  30. }
  31.  
  32. // Put down checkered floor 
  33. /*
  34. object
  35.    plane <0.0  1.0  0.0> -20.0 end_plane
  36.    texture
  37.       checker colour NavyBlue colour MidnightBlue
  38.       scale < 20.0 20.0 20.0 >
  39.       ambient 0.8
  40.       diffuse 0.2
  41.    end_texture
  42. end_object
  43. */
  44. camera {
  45.    location  <0.0  2.0 -10.0>
  46.    look_at   <0.0  0.0   0.0>
  47.    up        <0.0  1.0   0.0>
  48.    right     <1.33 0.0   0.0>
  49. }
  50.  
  51. object {
  52.    light_source { <50 100 0>
  53.       colour White
  54.    }
  55. }
  56.  
  57. object {
  58.    light_source { <-200 30 -300>
  59.       colour White
  60.    }
  61. }
  62.