home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / thx / demos / mfighter / build / intro / intro.pov < prev    next >
Encoding:
Text File  |  1995-05-15  |  2.6 KB  |  170 lines

  1. #include "colors.inc"
  2. #include "shapes.inc"
  3. #include "textures.inc"
  4.  
  5. camera
  6.   {
  7.   location <0.0, 3.0,-5.0>
  8.   direction <0, 0, 2.3>
  9.   look_at <-0.2, 0.0,0.5>
  10.   }
  11.  
  12. height_field
  13.   {
  14.   gif "text.gif"
  15.   water_level .001
  16.   smooth
  17.   texture { White_Marble scale .1 }
  18.   finish { ambient .15 }
  19.   translate <-.5,-.5,-.5 >
  20.   rotate <270,0,0>
  21.   scale <2.5,2.5,.1>
  22.   rotate <0,-20,0>
  23.   translate <-.5,.3,0>
  24.   }
  25.  
  26. light_source
  27.   {
  28.   < -2, 1,-5 >
  29.   color White
  30. /*
  31.   area_light <4,0,0>, <0,4,0>, 10,10
  32.   adaptive 0
  33.   jitter
  34.   spotlight
  35.   point_at <0,0,0>
  36.   tightness 1
  37.   radius 30
  38.   falloff 50
  39. */
  40.   }
  41.  
  42. light_source
  43.   {
  44.   < 2, 1,-5 >
  45.   color White
  46. /*
  47.   area_light < 4,0,0 >, <0,4,0>,10,10
  48.   adaptive 0
  49.   jitter
  50.   spotlight
  51.   point_at <0,0,0>
  52.   tightness 1
  53.   radius 30
  54.   falloff 50
  55. */
  56.   }
  57.  
  58. plane
  59.   {
  60.   y, -0.7
  61.   texture { Jade scale 10 }
  62.   normal { bumps .1 }
  63.   finish { ambient .2 }
  64.   }
  65.  
  66. #declare  head_loc =        < 0.8, 4.1, 0.0 >
  67. #declare  upper_torso_loc = < 0.0, 3.0, 0.0 >
  68. #declare  lower_torso_loc = <-1.0, 0.0, 0.0 >
  69.  
  70. #declare  left_elbow_loc =  < 0.5, 1.0, 1.5 >
  71. #declare  left_hand_loc =   < 2.0, 2.0, 0.0 >
  72.  
  73. #declare  right_elbow_loc = <-1.5, 1.0,-1.5 >
  74. #declare  right_hand_loc =  < 1.0, 2.0,-1.5 >
  75.  
  76. #declare  left_knee_loc =   < 0.8,-2.0, 1.0 >
  77. #declare  left_foot_loc =   <-0.1,-4.0, 1.5 >
  78.  
  79. #declare  right_knee_loc =  < 0.7,-2.0,-2.0 >
  80. #declare  right_foot_loc =  <-0.5,-4.0,-1.5 >
  81.  
  82. #default { texture { Jade scale .5 }}
  83.  
  84. #default
  85.   {
  86.   finish
  87.     {
  88.     ambient 0.4
  89.     diffuse 0.8
  90.     phong 0.6
  91.     phong_size 45.0
  92.     }
  93.   }
  94.  
  95. union
  96.   {
  97. sphere  //------------------- head
  98.   {
  99.   head_loc,
  100.   .8
  101.   }
  102.  
  103. cylinder  //----------------- torso
  104.   {
  105.   lower_torso_loc,
  106.   upper_torso_loc,
  107.   .6
  108.   }
  109.  
  110. cylinder  //----------------- upper right arm
  111.   {
  112.   upper_torso_loc,
  113.   right_elbow_loc,
  114.   .3
  115.   }
  116.  
  117. cylinder  //---------------- lower right arm
  118.   {
  119.   right_elbow_loc,
  120.   right_hand_loc,
  121.   .2
  122.   }
  123.  
  124. cylinder  //---------------- upper left arm
  125.   {
  126.   upper_torso_loc,
  127.   left_elbow_loc,
  128.   .3
  129.   }
  130.  
  131. cylinder  //---------------- lower left arm
  132.   {
  133.   left_elbow_loc,
  134.   left_hand_loc,
  135.   .2
  136.   }
  137.  
  138. cylinder  //---------------- upper right leg
  139.   {
  140.   lower_torso_loc,
  141.   right_knee_loc,
  142.   .4
  143.   }
  144.  
  145. cylinder //----------------- lower right leg
  146.   {
  147.   right_knee_loc,
  148.   right_foot_loc,
  149.   .3
  150.   }
  151.  
  152. cylinder //----------------- upper left leg
  153.   {
  154.   lower_torso_loc,
  155.   left_knee_loc,
  156.   .4
  157.   }
  158.  
  159. cylinder //----------------- lower left leg
  160.   {
  161.   left_knee_loc,
  162.   left_foot_loc,
  163.   .3
  164.   }
  165.  
  166.   rotate <0,85,0>
  167.   scale <.2,.2,.2>
  168.   translate <1,.3,0>
  169.   }
  170.