home *** CD-ROM | disk | FTP | other *** search
/ Ray Tracing Box / RAY_CD.mdf / RAYTRACE / _POV_DAT / SPARK / SPARK.POV < prev   
Encoding:
Text File  |  1993-03-16  |  2.0 KB  |  68 lines

  1. /*
  2.  *   SPARK.POV - test file for SPARK.INC and RIBCYL.INC
  3.  *
  4.  *   I wanted to be able to do threaded cylinders.  Well, they can be 
  5.  *   done, but aren't easy.  This package is the result of my experiments.
  6.  *   I would be interested in any ideas for improvements, particularly
  7.  *   in the area of rendering speed!
  8.  *
  9.  *   This is an image of a spark plug.  Because of the large numbers of
  10.  *   quartic surfaces used, it is very time-consuming.  I suggest using
  11.  *   no, or very conservative (>0.5), antialiasing.  The 640x480 file 
  12.  *   (SPARK.TGA) included in this package took 4 days on my 20 Mhz 386 
  13.  *   w/80387 with parameters "q9 a0.3".  
  14.  *
  15.  *   The TGA image looks best when viewed on a HiColor-capable SVGA card.
  16.  *   A 256 color GIF file, SPARK.GIF, was prepared with PICLAB version 
  17.  *   1.82 (by Danial Crocker and Stone Soup Group) and uploaded separately.
  18.  *
  19.  *   Note:  this file requires LOTS of memory.  I set the Region setting
  20.  *          with POVMOD.EXE to 8M.
  21.  *
  22.  *   The files in this package:
  23.  *
  24.  *      SPARK.POV, SPARK.INC and RIBCYL.INC
  25.  *      MADEIN.GIF, RN9YC.GIF
  26.  *
  27.  *   John Lowery
  28.  *   71075, 1401
  29.  */
  30.  
  31.  
  32. #include "shapes.inc"
  33. #include "colors.inc"
  34. #include "textures.inc"
  35. #include "ribcyl.inc"           // included in this package
  36. #include "spark.inc"            // included in this package
  37.  
  38. camera {
  39.    location < 1.5  5  -4>
  40.    direction <0.0 0.0 2.5>      // away from camera is +z
  41.    up  <0.0  1.0  0.0>          // up is +y
  42.    right <1.33333 0.0 0.0>      // right is +x
  43.    look_at <-0.15 0.39 0>       // look at the center of the plug
  44. }
  45.  
  46. object {
  47.    light_source { <-20  20.0  -20.0>   // lighting from over our left shoulder
  48.       color White
  49.    }
  50. }
  51.  
  52. object {
  53.    light_source { <20  20.0  -20.0>   // lighting from over our right shoulder
  54.       color White
  55.    }
  56. }
  57.  
  58. // A nice plane, for contrast
  59. object {
  60.    plane { <0 1 0> 0}
  61.    texture { Glossy color NavyBlue }
  62. }
  63.  
  64. // the spark plug
  65. composite { Spark_Plug 
  66.   translate <0 0.39 0>  // lift it up out of the plane
  67. }
  68.