home *** CD-ROM | disk | FTP | other *** search
/ Ray Tracing Box / RAY_CD.mdf / raytrace / _pov_dat / lion / lionfish.pov < prev    next >
Text File  |  1993-05-04  |  7KB  |  300 lines

  1. #include "colors.inc"
  2. #include "shapes.inc"
  3. #include "lionfish.inc"
  4. #include "lionfin.inc"
  5. #include "eyespine.inc"
  6. #include "eyeflap.inc"
  7. #include "nosespn.inc"
  8. #include "coral.inc"
  9. #include "coralhd.inc"
  10.  
  11. camera {
  12.   location  <1 0 -17>
  13.   direction <0 0 1.5>
  14.   up        <0 1 0>
  15.   right     <1.33 0 0>
  16.   look_at   <1 0 2>
  17. }
  18.  
  19. object { light_source { <2 8 -6> color White } }
  20.  
  21. #declare Eyeball =
  22.     union {
  23.       quadric {
  24.         Ellipsoid
  25.         scale <.25 .175 .25>
  26.         texture {
  27.           wood
  28.           turbulence .15
  29.           scale <.2 .2 .2>
  30.           color_map {
  31.             [0.0 0.2 color White color White]
  32.             [0.2 0.3 color Black color Black]
  33.             [0.3 0.7 color ReddishBrown color ReddishBrown]
  34.             [0.7 0.8 color Black color Black]
  35.             [0.8 1.0 color White color White]
  36.           }
  37.         }
  38.       }
  39.       quadric {
  40.         Ellipsoid 
  41.         scale <.1 .025 .1>
  42.         translate <0 .2 0>
  43.         texture {color Black}
  44.       }
  45.     }
  46.  
  47. #declare Lionwing = // you can try using this if you want. 
  48.                     //It wouldn't work for me. Use in place of 
  49.                     //objects at lines 190 and 208.
  50. object {
  51.   height_field {gif "lionwing.gif" water_level 1}
  52.   scale <8.5 .1 4.25>
  53.   rotate <-90 0 0>
  54.   texture {
  55.     onion
  56.     color_map {
  57.       [0.0 0.25 color White color ReddishBrown]
  58.       [0.25 0.5 color ReddishBrown color ReddishBrown]
  59.       [0.50 0.75 color ReddishBrown color White]
  60.       [0.75 1.0 color White color White]
  61.     }
  62.     scale <1 1 1>
  63.     ambient 0.3
  64.     diffuse 0.7
  65.   }
  66. }
  67.  
  68.  
  69. #declare Eye_Spine_Flap =  
  70.   composite {
  71.     composite {
  72.       Eyespine
  73.       scale <.15 .125 .2>
  74.     }
  75.     composite {
  76.       Eyeflap
  77.       scale <.15 .125 .002>
  78.       rotate <0 0 15>
  79.       translate <0 .425 0>
  80.     }
  81.   }
  82.  
  83. object { //sandy bottom
  84.   plane {<0 1 0> -4.5}
  85.   texture {
  86.     color Sand
  87.     ambient 0.3
  88.     diffuse 0.6
  89.     ripples .35
  90.     frequency 100
  91.     turbulence 0.75
  92.     scale <100 100 100>
  93.   }
  94. }
  95.  
  96. object { //the deep blue sea
  97.   sphere {<0 0 0> 1000}
  98.   texture {color SlateBlue}
  99. }
  100.  
  101. fog {
  102.   color SlateBlue
  103.   200
  104.  
  105. composite { //a coral branch
  106.   Coral_Tree
  107.   rotate <0 0 -10>
  108.   scale <.6 .75 .6>
  109.   translate <5 -3 10>
  110. }
  111.  
  112. composite { //a coral head
  113.   Coral_Head
  114.   scale <1 1 1>
  115.   translate <-9 -2 15>
  116. }
  117.  
  118. composite { //the lionfish
  119.   composite { //lionfish's body
  120.     Lionfish_Body
  121.     scale <.5 .45 .2>
  122.   }
  123.   composite { //caudal fin
  124.     Lionfin
  125.     scale <.5 .5 .01>
  126.     translate <7 0 0>
  127.   }
  128.   composite { //rear dorsal fin
  129.     Lionfin
  130.     scale <.35 .25 .01>
  131.     rotate <0 0 10>
  132.     translate <4.5 1 0>
  133.   }
  134.   composite { //anal fin
  135.     Lionfin
  136.     scale <.35 .25 .01>
  137.     rotate <0 0 -10>
  138.     translate <4.5 -1 0>
  139.   }
  140.   composite { //left pectoral fin
  141.     Lionfin
  142.     scale <.35 .25 .01>
  143.     rotate <0 0 -45>
  144.     rotate <25 0 0>
  145.     translate <0 -1.5 -.5>
  146.   }
  147.   composite { //right pectoral fin
  148.     Lionfin
  149.     scale <.35 .25 .01>
  150.     rotate <0 0 -45>
  151.     rotate <-25 0 0>
  152.     translate <0 -1.5 .5>
  153.   }
  154.   object { //the lower jaw
  155.     quadric {
  156.       Ellipsoid
  157.       scale <.6 .25 .25>
  158.       rotate <0 0 -60>
  159.       translate <-2.5 -.2 0>
  160.     }
  161.     texture {color White}
  162.   }
  163.   object { //left eye
  164.     union {
  165.       Eyeball
  166.       scale <1.25 1.25 1.25>
  167.       rotate <-75 0 0>
  168.       translate <-1.5 .7 -.3>
  169.     }
  170.   }
  171.   object { //right eye
  172.     union {
  173.       Eyeball
  174.       scale <1.25 1.25 1.25>
  175.       rotate <75 0 0>
  176.       translate <-1.5 .7 .3>
  177.     }
  178.   }
  179.   composite { //left eye spine
  180.     Eye_Spine_Flap
  181.     scale <.75 .75 .75>
  182.     rotate <0 0 15>
  183.     translate <-1.6 1.15 -.3>
  184.   }
  185.   composite { //right eye spine
  186.     Eye_Spine_Flap
  187.     scale <.75 .75 .75>
  188.     rotate <0 0 15>
  189.     translate <-1.6 1.15 .3>
  190.   }
  191.   object { //left pectoral "wing" fin 
  192.     height_field {gif "lionwing.gif" water_level 1}
  193.     scale <8.5 .025 4.25>
  194.     rotate <-100 0 0>
  195.     texture {
  196.       onion 
  197.       color_map {
  198.         [0.0 0.25 color White color ReddishBrown]
  199.         [0.25 0.5 color ReddishBrown color ReddishBrown]
  200.         [0.5 0.75 color ReddishBrown color White]
  201.         [0.75 1.0 color White color White]
  202.       }
  203.       ambient .3
  204.       diffuse .7
  205.     }
  206.     rotate <-10 40 -15>
  207.     translate <-1.25 -.5 .5>
  208.   }
  209.   object { //right pectoral "wing" fin
  210.     height_field {gif "lionwing.gif" water_level 1}
  211.     scale <8.5 .025 4.25>
  212.     rotate <-60 0 0>
  213.     texture {
  214.       onion
  215.       color_map {
  216.         [0.0 0.25 color White color ReddishBrown]
  217.         [0.25 0.5 color ReddishBrown color ReddishBrown]
  218.         [0.5 0.75 color ReddishBrown color White]
  219.         [0.75 1.0 color White color White]
  220.       }
  221.       ambient .3
  222.       diffuse .7
  223.     }
  224.     rotate <10 -40 -15>
  225.     translate <-.25 -.5 -.4>
  226.   }
  227.   object { //the dorsal spines
  228.     height_field {gif "lionspin.gif" water_level 1}
  229.     scale <8.5 .025 5>
  230.     rotate <-90 0 0>
  231.     texture {
  232.       bozo
  233.       color_map {
  234.         [0.0 0.25 color White color ReddishBrown]
  235.         [0.25 0.5 color ReddishBrown color ReddishBrown]
  236.         [0.5 0.75 color ReddishBrown color White]
  237.         [0.75 1.0 color White color White]
  238.       }
  239.       scale <.75 .25 .25>
  240.       ambient .3
  241.       diffuse .7
  242.     }
  243.     translate <-2.85 .25 0>
  244.   }
  245.   composite { the spine over the left eye
  246.     Eye_Spine_Flap
  247.     scale <.35 .35 .35>
  248.     rotate <-140 0 -20>
  249.     translate <-2.1 -.5 -.25>
  250.   }
  251.   composite { //the spine over the right eye
  252.     Eye_Spine_Flap
  253.     scale <.3 .3 .3>
  254.     rotate <-140 0 0>
  255.     translate <-1.9 -.6 -.25>
  256.   }
  257.   composite { //small spines by upper jaw
  258.     Eye_Spine_Flap
  259.     scale <.4 .4 .4>
  260.     rotate <-140 0 -60>
  261.     translate <-2.25 -.3 -.25>
  262.   }
  263.   composite {
  264.     Eye_Spine_Flap
  265.     scale <.35 .35 .35>
  266.     rotate <140 0 -20>
  267.     translate <-2.1 -.5 .25>
  268.   }
  269.   composite {
  270.     Eye_Spine_Flap
  271.     scale <.3 .3 .3>
  272.     rotate <140 0 0>
  273.     translate <-1.9 -.6 .25>
  274.   }
  275.   composite {
  276.     Eye_Spine_Flap
  277.     scale <.4 .4 .4>
  278.     rotate <140 0 -60>
  279.     translate <-2.25 -.3 .25>
  280.   }
  281.   composite { small spines at tip of nose
  282.     Nose_Spine
  283.     scale <.2 .125 .2>
  284.     rotate <0 0 20>
  285.     translate <-2.1 .55 0>
  286.   }
  287.   composite {
  288.     Nose_Spine
  289.     scale <.2 .125 .2>
  290.     rotate <0 0 20>
  291.     translate <-2.5 .445 0>
  292.   }
  293.   rotate <-30 0 0> 
  294.   rotate <0 -20 0> 
  295.   rotate <0 0 15>
  296.   translate <-2 0 0>
  297. }
  298.  
  299.