home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / scripts / pov / wavedat / wavent.pov < prev   
Encoding:
Text File  |  1994-04-04  |  5.1 KB  |  100 lines

  1. // "Moonlight Barrel"
  2. // This file will render an image as seen from inside a tubing wave at night.
  3. // Copyright 1994  by Robert A. Mickelsen  71042,751
  4.  
  5. #include "colors.inc"
  6. #include "textures.inc"
  7. #include "shapes.inc"
  8. #include "wavent.inc"
  9.  
  10. camera { 
  11.   location  <-1.007, -4.494, 0.750>
  12.   direction <0.0,     0.0,  3.0071>
  13.   sky       <0.0,     0.0,  1.0>  
  14.   up        <0.0,     0.0,  1.0>  
  15.   right     <1.3333,  0.0,  0.0>
  16.   look_at   <-0.769, 1.842, 0.581>
  17. }
  18.  
  19. light_source {   // Light1
  20.   <-36, 800, 44.366>
  21.   color rgb <1.000, 1.000, 1.000>
  22. }
  23.  
  24.  
  25. #declare wave1_1 = object {
  26.   bicubic_patch { type 1 flatness 0.0000 u_steps 5 v_steps 5
  27.     <-3.834245, -0.928592, 0.000000>  <-3.617966, -3.920313, 0.000000>  <-3.944313, -6.103953, 0.000000>  <-0.498921, -4.543246, 0.000000>
  28.     <-3.144655, 1.854024, 0.000000>  <-1.122566, -1.003017, 0.000000>  <1.343171, -2.073385, -1.220344>  <0.970462, -3.346160, 1.129725>
  29.     <-2.045748, 3.110262, 0.000000>  <1.319439, 0.222955, -0.504014>  <-0.035272, -1.122613, 2.694834>  <-0.497226, -4.540582, 2.299598>
  30.     <-0.489370, 2.615655, 0.000000>  <1.006780, 1.700975, 1.432659>  <-0.880942, 2.507347, 2.426552>  <-2.587043, -0.906394, 0.050321>  }
  31. }
  32. object {   // wave1
  33.   wave1_1
  34.   texture {
  35.     wavetex
  36.   }
  37. }
  38.  
  39. #declare surfboard_1 = object {
  40.   bicubic_patch { type 1 flatness 0.0000 u_steps 5 v_steps 5
  41.     <-0.259823, -0.050429, -0.001825>  <-0.275056, -0.094569, -0.001932>  <-0.175234, -0.098592, -0.065883>  <0.016538, -0.098592, -0.063910>
  42.     <-1.155093, 0.015129, 2.391714>  <-1.221830, -0.094569, 2.391245>  <-0.634415, -0.098592, 2.395370>  <-0.016854, -0.098592, 2.399708>
  43.     <-1.171948, 0.015129, 4.791421>  <-1.238684, -0.094569, 4.790953>  <-0.651270, -0.098592, 4.795078>  <-0.033709, -0.098592, 4.799416>
  44.     <-0.944463, 0.015129, 7.152488>  <-1.011200, -0.094569, 7.152020>  <-0.167505, 0.678019, 10.389944>  <-0.115601, 0.678019, 10.390952>  }
  45. }
  46. #declare surfboard_2 = object {
  47.   bicubic_patch { type 1 flatness 0.0000 u_steps 5 v_steps 5
  48.     <0.016538, -0.098592, -0.063910>  <0.208309, -0.098592, -0.061937>  <0.295613, -0.094569, 0.002076>  <0.277829, -0.050429, 0.001951>
  49.     <-0.016854, -0.098592, 2.399708>  <0.600707, -0.098592, 2.404045>  <1.177854, -0.094569, 2.408099>  <1.105984, 0.015129, 2.407594>
  50.     <-0.033709, -0.098592, 4.799416>  <0.583852, -0.098592, 4.803753>  <1.161000, -0.094569, 4.807807>  <1.089129, 0.015129, 4.807302>
  51.     <-0.115601, 0.678019, 10.390952>  <-0.063696, 0.678019, 10.391960>  <0.880102, -0.094569, 7.164918>  <0.808232, 0.015129, 7.164413>  }
  52. }
  53. #declare surfboard_3 = object {
  54.   bicubic_patch { type 1 flatness 0.0000 u_steps 5 v_steps 5
  55.     <0.277829, -0.050429, 0.001951>  <0.260046, -0.006290, 0.001826>  <0.198224, 0.017905, -0.062008>  <0.006452, 0.017905, -0.063981>
  56.     <1.105984, 0.015129, 2.407594>  <1.034113, 0.124826, 2.407089>  <0.600707, 0.179278, 2.404045>  <-0.016854, 0.179278, 2.399708>
  57.     <1.089129, 0.015129, 4.807302>  <1.017259, 0.124826, 4.806797>  <0.583852, 0.179278, 4.803753>  <-0.033709, 0.179278, 4.799416>
  58.     <0.808232, 0.015129, 7.164413>  <0.736361, 0.124826, 7.163909>  <-0.053610, 0.673485, 10.392031>  <-0.105515, 0.678528, 10.391023>  }
  59. }
  60. #declare surfboard_4 = object {
  61.   bicubic_patch { type 1 flatness 0.0000 u_steps 5 v_steps 5
  62.     <0.006452, 0.017905, -0.063981>  <-0.185320, 0.017905, -0.065953>  <-0.244589, -0.006290, -0.001718>  <-0.259823, -0.050429, -0.001825>
  63.     <-0.016854, 0.179278, 2.399708>  <-0.634415, 0.179278, 2.395370>  <-1.088356, 0.124826, 2.392182>  <-1.155093, 0.015129, 2.391714>
  64.     <-0.033709, 0.179278, 4.799416>  <-0.651270, 0.179278, 4.795078>  <-1.105211, 0.124826, 4.791890>  <-1.171948, 0.015129, 4.791421>
  65.     <-0.105515, 0.678528, 10.391023>  <-0.157420, 0.683571, 10.390015>  <-0.877726, 0.124826, 7.152957>  <-0.944463, 0.015129, 7.152488>  }
  66. }
  67. union {   // surfboard
  68.   object { surfboard_1 }
  69.   object { surfboard_2 }
  70.   object { surfboard_3 }
  71.   object { surfboard_4 }
  72.   texture {
  73.     boardtex1
  74.     scale <8.000000, 4.000000, 0.674073>
  75.     rotate <270.000000, 270.000000, 0.000000>
  76.     translate <-2.099817, 0.340019, 2.534052>
  77.   }
  78.   scale <0.200000, 0.200000, 0.200000>
  79.   rotate <95.126228, 16.352993, -175.795502>
  80.   translate <-0.863999, -3.885364, 0.459396>
  81. }
  82.  
  83. #declare lip_1 = object {
  84.   bicubic_patch { type 1 flatness 0.0000 u_steps 5 v_steps 5
  85.     <-2.304130, -2.000000, 0.521366>  <-0.869658, -2.263290, 0.347578>  <0.000000, -2.263290, 0.651708>  <0.869658, -2.000000, 0.955838>
  86.     <-4.053811, -1.000000, 0.738602>  <-2.319678, -1.000000, 0.260683>  <1.455854, -1.000000, 0.000000>  <1.246532, -1.000000, 2.824068>
  87.     <-4.053811, 0.000000, 0.738602>  <-2.319678, 0.000000, 0.260683>  <1.455854, 0.000000, 0.000000>  <1.246532, 0.000000, 2.824068>
  88.     <-2.304130, 1.000000, 0.521366>  <-0.869658, 1.300903, 0.347578>  <0.000000, 1.300903, 0.651708>  <0.869658, 1.000000, 0.955838>  }
  89. }
  90. object {   // lip
  91.   lip_1
  92.   texture {
  93.     liptex
  94.   }
  95.   scale <0.500000, 1.500000, 0.500000>
  96.   rotate <-178.414886, -35.231167, 0.000000>
  97.   translate <-1.072524, -2.370918, 1.559552>
  98. }
  99.  
  100. #include "nightsky.inc"