home *** CD-ROM | disk | FTP | other *** search
/ Ray Tracing Box / RAY_CD.mdf / raytrace / _pov_dat / chines / chinese.pov < prev    next >
Text File  |  1994-01-18  |  5KB  |  172 lines

  1. /*
  2.       "RICE BOWL WITH CHOPSTICKS"
  3.    
  4.    -- by Glenn Slingsby,  CIS 76660,354
  5.       March 1993
  6.  
  7.       1 hr 53 mins. render time on 386/20MHz with math co-processor, with 
  8.       these options: +w266 +h200 +a0.4 +mv1.0
  9.                                        ^^^^^^
  10.       Note this was created using ver 1.0 of POVRAY, so the above option 
  11.       should be used if rendering using ver 2.0 of same.
  12.  
  13.       This file was created without the use of a modeller which I now consider
  14.       a "must have" to do the initial slug work. It took me absolutely ages
  15.       to get all the positioning right doing it the "manual" way, but I think
  16.       the results were worth it.
  17.  
  18.       This file uses WICKER.GIF for the image_map.
  19. */
  20.  
  21. #include "colors.inc"
  22. #include "shapes.inc"
  23. #include "shapes2.inc"
  24. #include "stones.inc"
  25. #include "textures.inc"
  26.  
  27. camera {
  28.   location <0 3 -11>   
  29.   direction <0 0 1.303277>
  30.   up <0 1 0>
  31.   right <1.3333 0 0>
  32.   look_at <0 0 -1.5> // 0 0 0
  33. }
  34.  
  35. // *** Main light ***
  36. object { light_source { <6 8 -30> color White } }     
  37.  
  38. // *** Front spotlight ***
  39. // I like the filled in shadows the use of two lights creates here.
  40. object {    
  41.     light_source { <-3 10 -10> 
  42.         color White 
  43.         spotlight
  44.         point_at <0 0 0>
  45.         radius 35
  46.         falloff 65
  47.         tightness 50
  48.      } 
  49. }    
  50.  
  51. // *** Rear spotlight to help light up table at back ***
  52. object {        
  53.     light_source { <0 6 6> 
  54.         color White 
  55.         spotlight
  56.         point_at <0 0 0>
  57.         radius 55
  58.         falloff 85
  59.         tightness 70
  60.      } 
  61. }    
  62.  
  63. // *** Table top ***
  64. object {   
  65.    plane { <0 1 0> -3 }  
  66.    texture {
  67.       Tan_Wood
  68.       scale <-0.5 -0.5 1>
  69.       rotate <0 45 0> 
  70.    }  
  71. }
  72.  
  73. // *** "Wicker" table top divider ***    
  74. object {   
  75.      plane { <0 0 1> 5 }  
  76.        texture {
  77.           image_map { 0 gif "wicker.gif"  
  78.             alpha 10 1    // these alpha colors make the areas
  79.             alpha 11 1    // between the wicker clear. If you look
  80.             alpha 12 1    // carefully you can actually see the table
  81.             alpha 13 1    // on the other side.
  82.             alpha 14 1
  83.             alpha 15 1
  84.             interpolate 2
  85.           }
  86.        diffuse 0.75
  87.          scale <25 25 1>
  88.          rotate <0 0 90>  
  89.    }
  90. }
  91.  
  92. // *** The Bowl ***
  93. // I uploaded the finished GIF saying that the bowl was JADE but it would
  94. // appear that I used a modified MARBLE (looks like Jade a bit, though).
  95. object {  
  96.   intersection {
  97.      quadric { Ellipsoid scale <4.5 3 4.5> }
  98.      plane { <0 1 0> 0.6 }
  99.   }
  100.              texture { 
  101.                marble
  102.                turbulence 2  
  103.                colour_map {
  104.                  [0 .6 color red .1 green .6 blue .1
  105.                        color red 0  green .3 blue 0]
  106.                  [.6 .8 color red .85 green .85 blue .1
  107.                         color red .85 green .85 blue .1]  
  108.                  [.8 1 color red .1 green .6 blue .1
  109.                        color red 0 green .2 blue 0]
  110.              } 
  111.               scale <5 5 5> // the texture only
  112.               rotate <10 10 10>  
  113.            }
  114.    clipped_by { quadric { Ellipsoid scale <4.3 2.8 4.3> inverse } }  
  115.    bounded_by { sphere { <0 0 0> 4.8 } }
  116.          translate <0 0 0>
  117. }
  118.  
  119. // *** Fill bowl with rice ! ***
  120. // This took forever to get the look right!  It still isn't as physically
  121. // "lumpy" as I would like it, but it works okay.
  122. object {   
  123.      quadric { Ellipsoid 
  124.          scale <4.29 0.5 4.29> 
  125.      }
  126.      texture {
  127.        ambient 0.3
  128.        bumps 1
  129.        turbulence 8  
  130.        leopard color_map {
  131.           [0 .10 color red .99 green .99 blue .99
  132.                color red .99 green .99 blue .99] 
  133.           [.10 .90 color red 1 green 1 blue 1
  134.                color red 1 green 1 blue 1] 
  135.           [.90 1 color red .99 green .99 blue .99
  136.                color red .99 green .99 blue .99] 
  137.                
  138.       }
  139.           scale <0.6 0.6 0.6> 
  140.           rotate <90 90 90> 
  141.      }
  142. }
  143.  
  144. // *** Chopstick #1 ***
  145. // Again, these took a long time to position and texture...
  146. object {  
  147.       intersection { Pyramid }
  148.        texture { 
  149.          Yellow_Pine
  150.         rotate <0 90 0> // texture only
  151.        }
  152.       scale <0.3 4.8 0.3>
  153.       rotate <-45 50 110>   
  154.       translate <2 -0.2 0>
  155.     clipped_by { plane { <0 1 0> 0.02 inverse } }
  156. }
  157.  
  158. // *** Chopstick #2 ***
  159. object {  
  160.       intersection { Pyramid }
  161.        texture {
  162.          Yellow_Pine
  163.         rotate <0 90 0>  // texture only
  164.        }
  165.       scale <0.3 4.8 0.3>
  166.       rotate <-50 45 80>
  167.       translate <2 0 0> 
  168.     clipped_by { plane { <0 1 0> 0.02 inverse } }
  169. }
  170. // END
  171.  
  172.