home *** CD-ROM | disk | FTP | other *** search
/ Mega A/V / mega_av.zip / mega_av / GRAPHUTL / POVSCN.ZIP / LEVEL3.ZIP / NTREAL.ZIP / NTREAL.POV < prev   
Text File  |  1992-07-03  |  7KB  |  293 lines

  1. // Persistence Of Vision raytracer version 1.0 sample file.
  2.  
  3. // By Drew Wells
  4.  
  5. // Title-"Not a Trace of Reality"
  6.  
  7. // -+ Compuserve Hall Of Fame award winner +- 
  8.  
  9. // This one is hard to describe and easy to look at. Have fun with it! 
  10. // - Drew Wells cis 73767,1244 
  11. // 11/29/90 
  12.  
  13.  
  14.  
  15. // Note - This one is a memory hog for pc's because of the twister 
  16. //        If you can't run it, try editing out some of the twister's 
  17. //        parts.  Requires #include file ntreal.inc
  18.  
  19. #include "shapes.inc"
  20. #include "colors.inc"
  21. #include "textures.inc"
  22.  
  23. #declare It = 
  24. quadric { Ellipsoid scale <4.0 0.3 0.3> }
  25.  
  26. /* Camera/Viewer */
  27.  
  28. // This camera is different from any of the other sample scene files
  29. // The camera is looking in the negative Z direction
  30. // and right is in the negative X direction.
  31. camera {
  32.    direction <0.0 0.0  1.5>
  33.    up  <0.0  1.0  0.0>
  34.    right <-1.333 0.0 0.0>
  35.    translate < -15.0  5.0  120.0>
  36.    look_at <10.0 12.0 55.0>
  37. }
  38.  
  39. #declare Purple_Clouds = texture {
  40.    bozo
  41.    turbulence 0.6
  42.    colour_map {
  43.       [0.0 0.5   colour red 0.9 green 0.5  blue 0.6
  44.       colour red 0.4 green 0.0  blue 0.4]  
  45.       [0.5 0.6   colour red 1.0 green 1.0  blue 1.0 alpha 1.0
  46.       colour red 1.0 green 1.0  blue 1.0 alpha 1.0 ]
  47.       [0.6 1.001 colour red 1.0 green 1.0  blue 1.0 alpha 1.0
  48.       colour red 1.0 green 1.0  blue 1.0 alpha 1.0]
  49.    }
  50. }
  51.  
  52. #declare Sunset_Sky = texture {
  53.    gradient <0.0 1.0 0.0>
  54.  
  55.    colour_map {   
  56.       [0.0 0.4   colour red 0.8 green 0.0 blue 0.0
  57.       colour red 0.4 green 0.0 blue 0.4]
  58.       [0.4 0.6   colour red 0.4 green 0.0 blue 0.4
  59.       colour red 0.0 green 0.0 blue 0.2]
  60.       [0.6 1.001 colour red 0.0 green 0.0 blue 0.2
  61.       colour red 0.0 green 0.0 blue 0.0]
  62.    }
  63.    scale <700.0 700.0 700.0>
  64. }
  65.  
  66. #declare Twister = object {
  67.    union {
  68. #include "ntreal.inc"
  69.    }
  70.    bounded_by {
  71.       sphere { <0.0 5.0 0.0> 6.0  }
  72.    }
  73.    texture {
  74.       White_Wood
  75.       0.05
  76.       scale <3.0 3.0 3.0>
  77.       ambient 0.1
  78.       diffuse 0.99
  79.    }
  80.    color Blue
  81. }
  82.  
  83. #declare Slice = quadric {
  84.    Ellipsoid
  85.    translate <0.0 0.0 3.0>
  86.    scale <0.25 1.00 0.25>
  87. }
  88.  
  89. #declare Thing = object {
  90.    union {
  91.       quadric { Slice }
  92.       quadric { Slice rotate <0.0 -20.0  0.0> }
  93.       quadric { Slice rotate <0.0 -40.0  0.0> }
  94.       quadric { Slice rotate <0.0 -60.0  0.0> }
  95.       quadric { Slice rotate <0.0 -80.0  0.0> }
  96.       quadric { Slice rotate <0.0 -100.0 0.0> }
  97.       quadric { Slice rotate <0.0 -120.0 0.0> }
  98.       quadric { Slice rotate <0.0 -140.0 0.0> }
  99.       quadric { Slice rotate <0.0 -160.0 0.0> }
  100.       quadric { Slice rotate <0.0  180.0 0.0> }
  101.       quadric { Slice rotate <0.0 -200.0 0.0> }
  102.       quadric { Slice rotate <0.0 -220.0 0.0> }
  103.       quadric { Slice rotate <0.0 -240.0 0.0> }
  104.       quadric { Slice rotate <0.0 -260.0 0.0> }
  105.       quadric { Slice rotate <0.0 -280.0 0.0> }
  106.       quadric { Slice rotate <0.0 -300.0 0.0> }
  107.       quadric { Slice rotate <0.0 -320.0 0.0> }
  108.       quadric { Slice rotate <0.0 -340.0 0.0> }
  109.    }
  110.    bounded_by {
  111.       quadric { Ellipsoid scale <6.7 6.7 6.7> }
  112.    }            
  113.    texture {
  114.       color red 0.8 green 0.22 blue 0.1
  115.       bumps 0.3
  116.       scale < 0.1 0.1 0.1>
  117.       ambient 0.1
  118.       diffuse 0.9
  119.       phong 0.75
  120.       phong_size 30.0
  121.    }
  122.    color red 0.8 green 0.22 blue 0.1
  123. }    
  124.  
  125. #declare Slice2 = sphere { <0.0 0.0 0.5> 0.1 }
  126.  
  127. #declare Thing2 =
  128. object {
  129.    union {
  130.       sphere { Slice2 }
  131.       sphere { Slice2 rotate <0.0 -20.0  0.0> }
  132.       sphere { Slice2 rotate <0.0 -40.0  0.0> }
  133.       sphere { Slice2 rotate <0.0 -60.0  0.0> }
  134.       sphere { Slice2 rotate <0.0 -80.0  0.0> }
  135.       sphere { Slice2 rotate <0.0 -100.0 0.0> }
  136.       sphere { Slice2 rotate <0.0 -120.0 0.0> }
  137.       sphere { Slice2 rotate <0.0 -140.0 0.0> }
  138.       sphere { Slice2 rotate <0.0 -160.0 0.0> }
  139.       sphere { Slice2 rotate <0.0  180.0 0.0> }
  140.       sphere { Slice2 rotate <0.0 -200.0 0.0> }
  141.       sphere { Slice2 rotate <0.0 -220.0 0.0> }
  142.       sphere { Slice2 rotate <0.0 -240.0 0.0> }
  143.       sphere { Slice2 rotate <0.0 -260.0 0.0> }
  144.       sphere { Slice2 rotate <0.0 -280.0 0.0> }
  145.       sphere { Slice2 rotate <0.0 -300.0 0.0> }
  146.       sphere { Slice2 rotate <0.0 -320.0 0.0> }
  147.       sphere { Slice2 rotate <0.0 -340.0 0.0> }
  148.    }
  149.    bounded_by {
  150.       sphere { <0.0 0.0 0.0> 12 }
  151.    }
  152.    texture {
  153.       color red 0.1 green 0.22 blue 0.8
  154.       ambient 0.1
  155.       diffuse 0.9
  156.       phong 0.75
  157.       phong_size 30.0
  158.    }
  159.    color red 0.1 green 0.22 blue 0.8
  160. }    
  161.  
  162.  
  163. /*******************************************/
  164. /*******************************************/
  165.  
  166. object {
  167.    Twister
  168.    /* scale <4.7 8.0 4.0> */
  169.    rotate <-15.0 30.0 0.0>
  170.    translate <-16.0 7.7 61.5>    
  171. }    
  172. object {
  173.    Twister
  174.    /*scale <1.0 2.0 1.0> */
  175.    rotate <-15.0 0.0 -10.0>
  176.    translate <0.0 1.0 88.0>    
  177. }    
  178. object {
  179.    Twister
  180.    /*scale <4.5 8.0 4.0>*/
  181.    rotate <0.0 45.0 0.0>
  182.    translate <13.0 25.0 40.0>    
  183. }    
  184.  
  185. object {
  186.    Twister
  187.    /*scale <4.5 8.0 4.0>*/
  188.    rotate <-15.0 0.0 -10.0>
  189.    translate <26.0 14.0 70.0>    
  190. }    
  191.  
  192. /* Little Things */
  193. object {
  194.    Thing 
  195.    scale <1.5 3.0 1.5>
  196.    translate < -11.0 1.55 95.0> 
  197. }    
  198. object {
  199.    Thing2 
  200.    scale <6.0 6.0 6.0>
  201.    rotate <-10.0 30.0 0.0>
  202.    translate <-11.0 1.55 95.0> 
  203. }    
  204.  
  205. object {
  206.    Thing 
  207.    scale <1.5 3.5 1.5>
  208.    translate <-10.0 10.55 95.0> 
  209. }    
  210. object {
  211.    Thing2 
  212.    scale <10.0 10.0 10.0>
  213.    rotate <0.0 0.0 -35.0>
  214.    translate < -10.0 10.55 95.0>    
  215. }    
  216.  
  217. object {
  218.    Thing 
  219.    scale <1.5 3.5 1.5>
  220.    translate < -4.0 4.0 80.0>    
  221. }    
  222. object {
  223.    Thing2 
  224.    scale <6.0 6.0 6.0>
  225.    rotate <-30.0 0.0 20.0>
  226.    translate < -4.6 5.55 80.0> 
  227. }    
  228.  
  229.  
  230. object {
  231.    Thing 
  232.    scale <1.5 3.5 1.5>
  233.    translate < 11.0 1.6 90.0>    
  234. }
  235. object {
  236.    Thing2    
  237.    scale <8.0 8.0 8.0>
  238.    rotate <0.0 45.0 20.0>
  239.    translate < 10.0 7.0 90.0>    
  240. }    
  241.  
  242. /*cloud hills*/
  243. object {
  244.    quadric { Paraboloid_Y 
  245.       scale<40.0 10.0 77.0>
  246.    }       
  247.    rotate <0.0 0.0 180.0>
  248.    translate <0.0 21.0 -28.0>
  249.    texture {
  250.       Purple_Clouds
  251.       scale < 5.0 5.0 5.0>
  252.       ambient 0.5
  253.       diffuse 0.9    
  254.    }
  255.    color red 0.5 green 0.6 blue 0.2
  256. }
  257.  
  258. /*cloud hill to right*/
  259. object {
  260.    quadric { Paraboloid_Y 
  261.       scale<30.0 10.0 40.0>
  262.    }       
  263.    rotate <0.0 0.0 180.0>
  264.    translate <40.0 14.0 50.0>
  265.    texture {
  266.       Purple_Clouds
  267.       scale < 7.0 5.0 5.0>
  268.       ambient 0.5
  269.       diffuse 0.9    
  270.    }
  271.    color red 0.6 green 0.6 blue 0.1
  272. }
  273.  
  274. /*The Sun*/
  275. object {
  276.    light_source { <150.0 40.0 1200.0>
  277.       colour White
  278.    }
  279. }
  280.  
  281. /*sky*/
  282. object {
  283.    sphere { <0.0 0.0 0.0> 2000.0 inverse }
  284.    texture {
  285.       Sunset_Sky
  286.       translate <0.0 200.0 0.0>
  287.       scale <1.2 1.2 1.2>
  288.       ambient 0.6
  289.       diffuse 0.0
  290.    }
  291.    color White
  292. }    
  293.