home *** CD-ROM | disk | FTP | other *** search
/ ANews 3 / AnewsCD3.iso / atari / GRAPHX / POV / 68030.060 / POV31G30 / POVRAY_3.1G / SCENES / RADIOS / RAD2.POV < prev   
Text File  |  1999-10-30  |  4KB  |  161 lines

  1. // Persistence Of Vision raytracer version 3.1 sample file.
  2. // File by Dan Farmer
  3. // Radiosity demonstration
  4.  
  5.  
  6. global_settings { assumed_gamma 2.2 }
  7.  
  8. #include "colors.inc"
  9. #include "textures.inc"
  10. #include "shapes.inc"
  11. #include "glass.inc"
  12. #include "metals.inc"
  13. #include "consts.inc"
  14. #include "rad2.inc"
  15.  
  16. // Constants used by 'rad_def.inc' are set in 'const.inc'
  17. //#declare Rad_Quality = Radiosity_Debug
  18. //#declare Rad_Quality = Radiosity_Fast
  19. //#declare Rad_Quality = Radiosity_Normal
  20. //#declare Rad_Quality = Radiosity_2Bounce
  21. //#declare Rad_Quality = Radiosity_Final
  22.  
  23. //#include "rad_def.inc"
  24.  
  25. #declare Area_Lights = on
  26. #if(Area_Lights)
  27.     #debug "\nArea lights are ON"
  28. #else
  29.     #debug "\nArea lights are OFF"
  30. #end
  31.  
  32. background { White }
  33. camera {  //  Camera Camera01
  34.   location  <-1.500, -29.900, 2.000>
  35.   direction <0.0,     0.0,  1.75>
  36.   sky       <0.0,     0.0,  1.0>  // Use right handed-system!
  37.   up        <0.0,     0.0,  1.0>  // Where Z is up
  38.   right     <1.3333,  0.0,  0.0>
  39.   look_at   <0.50,  0.000, -1.0>
  40. }
  41.  
  42. #declare Dist=15;
  43. #declare L = 0.7;
  44.  
  45. light_source {   // Light001
  46.   <0.000, 0.000, 7.500>
  47.   color rgb L
  48.   #if(Area_Lights)
  49.      #debug "\nDing! Area light #1 turned on."
  50.      area_light <-6, -6, 0>, <6, 6, 0>, 5, 5
  51.      adaptive 1
  52.      jitter
  53.   #end
  54.   fade_distance Dist fade_power 2
  55. }
  56.  
  57. light_source {   // Light002
  58.   <4.000, 15.000, 7.500>
  59.   color rgb L
  60.   #if(Area_Lights)
  61.      #debug "\nBing! Area light #2 turned on.\n"
  62.      area_light <-1.5, -1.5, 0>, <1.5, 1.5, 0>, 5, 5
  63.      adaptive 1
  64.      jitter
  65.   #end
  66.   fade_distance Dist fade_power 2
  67. }
  68.  
  69.  
  70. // ********  O B J E C T S *******
  71. #declare A_Ball =
  72. object {   // Sphere001
  73.   sphere {<0,0,0>,1}
  74.   texture {
  75.     Ball_Texture
  76.   }
  77.   scale <3.824621, 3.824621, 3.824621>
  78.   translate <-5.000000, 20.000000, -3.000000>
  79. }
  80.  
  81.  
  82. // Extra objects to place inside
  83. #declare A_Cone =
  84. cone {   // Cone001
  85.   <0,0,0>, 0.00000
  86.   <0,0,1>, 1.00000
  87.   texture {
  88.     Cone_Texture
  89.   }
  90.   interior{ior 1.55}
  91.   scale <2.000000, 2.000000, 12.000000>
  92.   rotate <-180.000000, 0.000000, 0.000000>
  93.   translate <-4.603342, 11.005570, -2>
  94. }
  95.  
  96. #declare A_Super_El =
  97. superellipsoid { <.3, .3>
  98.   texture {
  99.     Box_Texture
  100.   }
  101.   scale <2.000000, 2.000000, 4.000000>
  102.   rotate z*45
  103.   translate <6.000000, 10.000000, -6.000000>
  104. }
  105.  
  106. #declare A_Torus =
  107. torus {   // Torus001
  108.   2.000, 1.000  // Major, minor radius
  109.   rotate -x*90
  110.   texture {
  111.     Torus_Texture
  112.   }
  113.   rotate x*35
  114.   translate <0,0, 1>
  115.   translate <0, 10, -8>
  116. }
  117.  
  118. #declare Room =
  119. union {
  120.     box {   // LeftWall
  121.       <-1, -1, -1>, <1, 1, 1>
  122.       texture {
  123.         LeftWallTex
  124.       }
  125.       scale <0.010000, 30.000999, 10.001000>
  126.       translate <-10.000000, 0.000000, 0.000000>
  127.     }
  128.     box {   // RightWall
  129.       <-1, -1, -1>, <1, 1, 1>
  130.       texture {
  131.         RightWallTex
  132.       }
  133.       scale <0.010000, 30.000999, 10.001000>
  134.       translate <10.000000, 0.000000, 0.000000>
  135.     }
  136.     box {   // Floor
  137.       <-1, -1, -1>, <1, 1, 1>
  138.       scale <20.010000, 30.000999,0.00001>
  139.       translate <10.000000, 0.000000, -9.999999>
  140.       texture {
  141.         pigment { checker color ForestGreen color SteelBlue
  142.           scale < 5 5 1 >
  143.         }
  144.         finish { reflection 0.15 }
  145.       }
  146.     }
  147.     box {   // Room
  148.       <-1, -1, -1>, <1, 1, 1>
  149.       texture {
  150.         Room_Texture
  151.       }
  152.       scale <10.000000, 30.000000, 10.000000>
  153.     }
  154. }
  155.  
  156. object { Room  hollow on}
  157. object { A_Ball }
  158. // object { A_Cone }
  159. object { A_Super_El }
  160. // object { A_Torus }
  161.