home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 16 / CD_ASCQ_16_0994.iso / news / 4613 / map.rrt < prev    next >
Text File  |  1980-01-06  |  909b  |  57 lines

  1. // Real Ray Tracer
  2. // Example of texture mapping and transparency
  3.  
  4. #include "colors.inc"
  5. #include "textures.inc"
  6.  
  7. object {
  8.   bound {
  9.     object {
  10.       torus { <0 0 0> <0 0 1> 1 0.3 rotate <30 0 0> }
  11.       texture { Phong_Transparent }
  12.     }
  13.   }
  14.   by sphere { <0 0 0> 1.3 }
  15. }
  16.  
  17. object {
  18.   plane { <0 0 -1> -3  }
  19.   texture {
  20.     image_map { <0 0 0> <1 0 0> <0 1 0> 3.4 "Crawford.tga" }
  21.     scale <1 0.75 1>
  22.     rotate <0 0 15>
  23.     ambient 0.30
  24.     diffuse 0.60
  25.   }
  26. }
  27.  
  28. object {
  29.   plane { <0 1 0> -1.5  }
  30.   texture {
  31.     checker color Yellow color red 1.0 blue 0.75
  32.     scale <0.3 0 0.3>
  33.     ambient 0.15
  34.     diffuse 0.25
  35.     reflection 0.75
  36.   }
  37. }
  38.  
  39. camera {
  40.   location  <0 0 -2.5>
  41.   direction <0 0  1>
  42. }
  43.  
  44. environment {
  45.   background color Blue
  46. }
  47.  
  48. object {
  49.   light_source { <2 8 -9> color White }
  50. }
  51.  
  52. object {
  53.   light_source { <-3 7 -10> color White }
  54. }
  55.  
  56. end.
  57.