home *** CD-ROM | disk | FTP | other *** search
/ Chestnut's Multimedia Mania / MM_MANIA.ISO / graphics / povscn20 / car.pov < prev    next >
Text File  |  1993-09-27  |  6KB  |  290 lines

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // By Jorge Arreguin
  4.  
  5. /*
  6.  car.dat  POV-Ray Scene             February 27, '91
  7.  
  8.  By Jorge Arreguin
  9.     i. Allende # 611
  10.     Cortazar , Gto.
  11.     Mexico  cp 38300
  12.     
  13.     Renders a Futuristic Car, making a diferent use of the imagemap
  14.     NOTES: Requires "car_inc.gif" for imagemap. 540x350x16 color
  15.     May require protected mode version of POV-Ray to run.  If you can't
  16.     run POV-Ray, and you've already got all TSR's removed, then try
  17.     scaling the imagemap down using PICLAB and changing the scaling in
  18.     the texture block accordingly.  The results won't be as nice, but
  19.     at least you'll be able to render it!
  20.  
  21.     To reduce by 1/2 from PICLAB:
  22.  
  23.             gload "car_inc.gif"   //The windshield glass
  24.             unmap
  25.             rescale 0.5
  26.             map
  27.             gsave "car_inc.gif"
  28.  
  29.     This image is designed using "right-hand" coordinates... z = height
  30.     and y = depth.
  31.  
  32. */
  33.  
  34. /*-----------------------------declaraciones------------------------*/
  35.  
  36. #include "shapes.inc"
  37. #include "colors.inc"
  38. #include "textures.inc"
  39.  
  40. #declare JA_Hyperboloid = quadric {
  41.    <  1.0, -1.0, 1.0>,
  42.    <  0.0,  0.0, 0.0>,
  43.    <  0.0,  0.0, 0.0>,
  44.    -0.6
  45. }
  46.  
  47. #declare Near_Black = colour red 0.1 green 0.1 blue 0.1
  48.  
  49. #declare Llanta = intersection {
  50.    sphere { <0, 0, 0>, 1 }
  51.    object { JA_Hyperboloid scale < 0.7 0.3 0.7 > inverse }
  52.  
  53.    bounded_by { sphere { <0, 0, 0>, 1 } }
  54. }
  55.  
  56. #declare Polvera =
  57.    sphere {
  58.       <0, 0, 0>, 1
  59.       scale <0.8, 0.2, 0.8>
  60.  
  61.       texture {
  62.          pigment { Gray }
  63.          finish {
  64.             reflection 0.3
  65.             phong 0.8
  66.             phong_size 10.0
  67.          }
  68.       }
  69.    }
  70.  
  71. camera {
  72.    location <0.0, -33.0, 0.0>
  73.    direction <0.0, 2.0,  0.0>
  74.    up  <0.0,  0.0,  1.0>
  75.    right <4/3, 0.0, 0.0>
  76.    rotate <-30.0, 0.0, 30.0>
  77. }
  78.  
  79. light_source { <-10.0, -30.0, 50.0> colour White }
  80.  
  81. light_source { <40.0, -40.0, 45.0> colour White }
  82.  
  83. /*--------------------------------------- cuerpo --------------------*/
  84.  
  85. intersection {
  86.    sphere {
  87.       <0, 0, 0>, 1.0
  88.       scale <10.0, 10.0, 4.0>
  89.    }
  90.    plane {
  91.       x, 0.0
  92.       rotate -16.2379*y
  93.       translate -5.0*x
  94.       inverse
  95.    }
  96.    plane { z, 0.01 }
  97.    plane { z, 0.005 inverse }
  98.    object {
  99.       Cylinder_X
  100.       scale <1.0, 5.0, 5.0>
  101.    }
  102.  
  103.    bounded_by { sphere { <0.0, 0.0, 0.0>, 10.0 } }
  104.  
  105.    texture {
  106.       pigment { Blue }
  107.       finish { reflection 0.4 }
  108.    }
  109. }
  110.  
  111.  
  112. union {
  113.    intersection {
  114.       sphere {
  115.          <0, 0, 0>, 1
  116.          scale <10.0, 10.0, 4.0>
  117.       }
  118.       plane {
  119.          x, 0.0
  120.          rotate -16.2379*y
  121.          translate -5.0*x
  122.          inverse
  123.       }
  124.       plane { z, 0.01 inverse }
  125.       object {
  126.          Cylinder_X
  127.          scale <1.0, 5.0, 5.0>
  128.       }
  129.    }
  130.  
  131.    intersection {
  132.       sphere {
  133.          <0, 0, 0>, 1
  134.          scale <3.352, 8.380, 3.352>
  135.          rotate -16.2379*y
  136.          translate -5.0*x
  137.       }
  138.       plane {
  139.          x, 0.0
  140.          rotate -16.2379*y
  141.          translate -5.0*x
  142.       }
  143.       plane {
  144.          x, 0.0
  145.          rotate -64.0*y
  146.          translate -5.0*x
  147.          inverse
  148.       }
  149.       plane { z, 0.01 inverse }
  150.       object {
  151.          Cylinder_X
  152.          scale <1.0, 5.0, 5.0>
  153.       }
  154.    }
  155.  
  156.    bounded_by { sphere { <0.0, 0.0, 0.0>, 10.0 } }
  157.  
  158.    texture {
  159.       pigment {
  160.          image_map { gif "car_inc.gif" interpolate 2.0 once }
  161.          scale <18.6, 10.0, 1.0>
  162.          translate <-8.38, -5.0, 0.0>
  163.          quick_color Blue
  164.       }
  165.       finish {
  166.          phong 0.8
  167.          phong_size 20.0
  168.          reflection 0.4
  169.       }
  170.    }
  171. }
  172.  
  173. /*------------------------------- llantas ------------------------------*/
  174.  
  175. object {
  176.    Llanta
  177.    scale <1.907, 1.0, 1.907>
  178.    translate <-4.0, -5.0, 0.907>
  179.  
  180.    texture {
  181.       pigment { Near_Black }
  182.       finish {
  183.          phong 0.8
  184.          phong_size 40.0
  185.       }
  186.    }
  187. }
  188.  
  189. object {
  190.    Llanta
  191.    scale <1.907, 1.0, 1.907>
  192.    translate <-4.0, 5.0, 0.907>
  193.  
  194.    texture {
  195.       pigment { Near_Black }
  196.       finish {
  197.          phong 0.8
  198.          phong_size 40.0
  199.       }
  200.    }
  201. }
  202.  
  203. object {
  204.    Llanta
  205.    scale <1.435, 1.0, 1.435>
  206.    translate <6.5, -5.0, 0.435>
  207.  
  208.    texture {
  209.       pigment { Near_Black }
  210.       finish {
  211.          phong 0.8
  212.          phong_size 40.0
  213.       }
  214.    }
  215. }
  216.  
  217.  
  218. object {
  219.    Llanta
  220.    scale <1.435, 1.0, 1.435>
  221.    translate <6.5, 5.0, 0.435>
  222.  
  223.    texture {
  224.       pigment { Near_Black }
  225.       finish {
  226.          phong 0.8
  227.          phong_size 40.0
  228.       }
  229.    }
  230. }
  231.  
  232. /*---------------------------- polveras -------------------------*/
  233.  
  234. object {
  235.    Polvera
  236.    scale <1.3, 1.0, 1.3>
  237.    translate <6.5, 5.0, 0.435>
  238. }
  239.  
  240. object {
  241.    Polvera
  242.    scale <1.3, 1.0, 1.3>
  243.    translate <6.5, -5.0, 0.435>
  244. }
  245.  
  246. object {
  247.    Polvera
  248.    scale <1.8, 1.0, 1.8>
  249.    translate <-4.0, 5.0, 0.907>
  250. }
  251.  
  252. object {
  253.    Polvera
  254.    scale <1.8, 1.0, 1.8 >
  255.    translate <-4.0, -5.0, 0.907>
  256. }
  257.  
  258. /*------------------------------ piso y bardas -----------------------------*/
  259.  
  260. plane {
  261.    -z, 1.0
  262.  
  263.    texture {
  264.       pigment {
  265.          checker color Brown color Khaki
  266.          rotate -90*x
  267.          quick_color Maroon
  268.       }
  269.       finish { reflection 0.5 }
  270.    }
  271. }
  272.  
  273. plane { 
  274.    -x, 11.0
  275.  
  276.    texture {
  277.       pigment { Maroon }
  278.       finish { reflection 0.5 }
  279.    }
  280. }
  281.  
  282. plane {
  283.    y, 7.0
  284.  
  285.    texture {
  286.       pigment { Maroon }
  287.       finish { reflection 0.5 }
  288.    }
  289. }
  290.