home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / graphics / ftpovscn / 2 / room.pov < prev    next >
Text File  |  1992-07-21  |  3KB  |  168 lines

  1. // Persistence Of Vision raytracer version 1.0 sample file.
  2.  
  3. // By Drew Wells
  4.  
  5. // Room.pov - Empty room created for cis Comart Raytracing Group Project
  6.  
  7. #include "shapes.inc"
  8. #include "colors.inc"
  9. #include "textures.inc"
  10.  
  11. /* Camera Facing North*/
  12. camera {
  13.    direction <0.0 0.0  1.5>
  14.    up  <0.0  1.0  0.0>
  15.    right <1.333333 0.0 0.0>
  16.    translate < 10.0  5.0  -30.0>
  17.    look_at <0.0 5.0 0.0>
  18. }
  19.  
  20. /*************************************************/
  21. /* Define objects for use in scene               */
  22. /* Your object should be DECLAREd here           */
  23. /*************************************************/
  24.  
  25. #declare North_Wall = object { 
  26.    plane { <0.0 0.0 1.0> 10.0 }
  27.    texture { 
  28.       granite
  29.       scale <1.0 20.0 1.0>
  30.    }
  31.    color Yellow
  32. }
  33. /* South Wall commented out so camera can see in*/
  34. #declare South_Wall = object {
  35.    plane { <0.0 0.0 1.0> -10.0 }
  36.    texture { 
  37.       Cherry_Wood
  38.       0.05
  39.       scale <10.0 10.0 10.0>
  40.    }
  41.    color Red
  42. }
  43.  
  44. /* Not visible with current viewpoint*/
  45. /* But could be useful for light coming through window etc. */
  46. #declare East_Wall = object {
  47.    plane { <1.0 0.0 0.0> 15.0 }
  48.    texture {
  49.       Jade
  50.       scale <10.0 10.0 10.0>
  51.    }
  52.    color Green  
  53. }
  54. #declare West_Wall = object {
  55.    plane { <1.0 0.0 0.0> -15.0 }
  56.    texture { 
  57.       White_Wood
  58.       0.05
  59.       scale <15.0 20.0 3.0>
  60.    }
  61.    color Blue
  62. }
  63. #declare Ceiling = object {
  64.    plane { <0.0 1.0 0.0> 15.0 }
  65.    texture { 
  66.       Red_Marble
  67.       scale <10.0 10.0 10.0>
  68.    }
  69.    color White
  70. #declare Floor = object {
  71.    plane { <0.0 1.0 0.0> 0.0 }
  72.    texture { 
  73.       Pine_Wood
  74.       0.05
  75.       scale <40.0 3.0 3.0>
  76.    }
  77.    color Violet
  78. }
  79.  
  80. /*******************************************/
  81. /* Scene description                       */
  82. /*******************************************/
  83. object {
  84.    North_Wall
  85. }
  86. /* Comment out South Wall so camera can see in */
  87. /*object
  88.   South_Wall
  89. end_object*/
  90. object {
  91.    East_Wall
  92. }
  93. object {
  94.    West_Wall
  95. }
  96. object {
  97.    Ceiling
  98. }
  99. object {
  100.    Floor
  101. }
  102.  
  103. /* Colored spheres to help visualize coordinates*/
  104. object { /*North*/
  105.    sphere { <0.0 7.0 9.0> 1.0 }
  106.    texture { color Yellow }
  107.    color Yellow
  108. }
  109. /* South sphere not visible in example gif*/
  110. /*object {South}
  111.  sphere <0.0 5.0 -10.0> 1.0 end_sphere
  112.  texture color CRed end_texture
  113.  color CRed
  114. end_object*/
  115. object { /*East*/
  116.    sphere { <10.0 7.0 0.0> 1.0 }
  117.    texture { color Green }
  118.    color Green
  119. }
  120. object { /*West*/
  121.    sphere { <-14.0 7.0 0.0> 1.0 }
  122.    texture { color Blue }
  123.    color Blue
  124. }
  125. object { /*Up*/
  126.    sphere { <0.0 14.0 0.0> 1.0 }
  127.    texture { color White }
  128.    color White
  129. }
  130. object { /*Down*/
  131.    sphere { <0.0 1.0 0.0> 1.0 }
  132.    texture { color Violet }
  133.    color Violet
  134. }
  135.  
  136.  
  137. /*Crude Spot light - feel free to add more light sources.*/
  138. composite {
  139.    object {
  140.       intersection {
  141.          sphere { <0.0 0.0 0.0> 2.0 inverse }
  142.          sphere { <0.0 0.0 0.0> 2.1 }
  143.          plane {  <0.0 0.0 1.0> 1.2 }
  144.       }
  145.       texture {
  146.          Brown_Agate
  147.          scale <3.0 3.0 3.0>
  148.          specular 1.0
  149.       }
  150.       rotate <45.0 -40.0 0.0>
  151.       translate <10.0 10.0 -8.0>
  152.    }
  153.  
  154.    object {
  155.       light_source { <10.0 10.0 -8.0>
  156.          colour White
  157.       }
  158.    }
  159. }
  160.  
  161. /* Far light source to light where spot doesn't */   
  162. object {
  163.    light_source { <-10.0 10.0 -40.0>
  164.       colour White
  165.    }
  166. }
  167.