home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / scripts / pov / f1.pov < prev    next >
Encoding:
Text File  |  1993-10-05  |  12.4 KB  |  533 lines

  1. // Persistence of Vision Raytracer
  2. #include "colors.inc"
  3. #include "textures.inc"
  4. #include "shapes.inc"
  5. #include "shapesq.inc"
  6.  
  7.  
  8.  
  9. #declare Felge=object{
  10. union {
  11.    intersection {
  12.     quadric {Cylinder_X scale <1 4.8 4.8>}
  13.     quadric {Cylinder_X scale <1 4.7 4.7> inverse}
  14.     plane {<1 0 0> -3.2 inverse}
  15.     plane {<1 0 0> 3.2}
  16. }
  17.    intersection {
  18.     quadric {Cylinder_X scale <1 4.7 4.7>}
  19.     plane {<1 0 0> -1 inverse}
  20.     plane {<1 0 0> 1}
  21.     quadric {Cylinder_X scale <1 2 1> translate <0 3 0> rotate <0 0 0> inverse}
  22.     quadric {Cylinder_X scale <1 2 1> translate <0 3 0> rotate <60 0 0> inverse}
  23.     quadric {Cylinder_X scale <1 2 1> translate <0 3 0> rotate <120 0 0> inverse}
  24.     quadric {Cylinder_X scale <1 2 1> translate <0 3 0> rotate <180 0 0> inverse}
  25.     quadric {Cylinder_X scale <1 2 1> translate <0 3 0> rotate <240 0 0> inverse}
  26.     quadric {Cylinder_X scale <1 2 1> translate <0 3 0> rotate <300 0 0> inverse}
  27.  
  28. }
  29.    intersection {Disk_X scale <.5 .1 .1>}
  30. }
  31.    texture {Gold_Metal}
  32. }
  33.  
  34.  
  35.  
  36. #declare Pneu=object{
  37. intersection {
  38.     quartic {Torus_40_12 rotate <0 0 90>}
  39.     quadric {Cylinder_X scale <1 8.6 8.6>}
  40.     quadric {Cylinder_X scale <1 4.8 4.8> inverse}
  41. }
  42.    texture {Dull color Gray05}
  43.    texture {image_map { < 0 -1.0 1.0 > gif "goodyear.gif"
  44.          alpha 2 1
  45.          interpolate 2.0
  46.          once}
  47.    translate <0 -.5 -.5> scale <14 14 14>}
  48.  
  49. }
  50.  
  51. #declare Kissen=quartic {
  52.       < 1.0   0.0   0.0    0.0     0.0   0.0   0.0   0.0   0.0    0.0
  53.       0.0   0.0   0.0    0.0     0.0   0.0   0.0   0.0   0.0    0.0
  54.       1.0   0.0   0.0    0.0     0.0   0.0   0.0   0.0   0.0    0.0
  55.       1.0   0.0   0.0    0.0  -1000.0 >
  56. }
  57.  
  58. camera {
  59.     location <13 10 4>
  60.     direction <0.0 0.0 2.0>
  61.     up  <0.0  1.0  0.0>
  62.     right <1.333 0.0 0.0>
  63.     look_at <0 0 0>
  64.  }
  65.  
  66. /* Sonne */
  67. object { 
  68.     light_source {<-30.0  100.0 -90.0>
  69.        colour White
  70.      }
  71. }
  72.  
  73. /*Spotlight1*/
  74. object{
  75. light_source {<-50 50 -50>
  76.    color White
  77.     spotlight
  78.      point_at <0 0 0>
  79.      tightness 50
  80.      radius 4
  81.      falloff 9
  82. }
  83. /*Spotlight2*/
  84. object{
  85. light_source {<10 20 10>
  86.    color White
  87.     spotlight
  88.      point_at <1.5 .5 -4>
  89.      tightness 50
  90.      radius 6
  91.      falloff 12
  92. }
  93.  
  94.  
  95. /* Boden */
  96.  
  97. /*object {
  98.   sphere {<0 -100.774 0> 100}
  99.     texture {Dull color Black}
  100. }*/
  101.  
  102. /*K÷rper*/
  103.  
  104. composite{
  105. object{
  106. union{
  107.  
  108. /* Vorderteil*/
  109. intersection {
  110.  quadric {Paraboloid_Z scale <2.3 3 50> rotate <-5 0 0> translate <0 0 -5>}
  111.  quadric {Cylinder_Y scale <.45 1 .45> translate <0 0 -1.5> inverse}
  112.  box {<-.45 -2 -1.5> <.45 2 1> inverse}
  113.  box {<-1 .89 -1.5> <1 4 1> inverse}
  114.  box {<-1 -.45 -3> <1 0 -2.2> inverse}
  115.  plane {<1 0 0> .6 rotate <0 0 8>}
  116.  plane {<1 0 0> -.6 rotate <0 0 -8> inverse}
  117.  plane {<0 0 1> 0 }
  118.  plane {<0 1 0> -.25 inverse}
  119. }
  120.  
  121. /*Windschutz*/
  122. intersection {
  123.  quadric {Paraboloid_Z scale <2.3 3 50> rotate <-12 0 0> translate <0 0 -4.1>}
  124.  quadric {Cylinder_Y scale <.45 1 .45> translate <0 0 -1.5> inverse}
  125.  box {<-.45 -2 -1.5> <.45 2 1> inverse}
  126.  box {<-1 .89 -1.55> <1 4 1> inverse}
  127.  box {<-1 -.45 -3> <1 0 -2.2> inverse}
  128.  plane {<1 0 0> .6 rotate <0 0 8>}
  129.  plane {<1 0 0> -.6 rotate <0 0 -8> inverse}
  130.  plane {<0 0 1> 0 }
  131.  plane {<0 1 0> -.25 inverse}
  132. }
  133.  
  134. /* Boden */
  135.  
  136.  box {<-.6 -.25 -2.2> <.6 .2 1> }
  137.  
  138.  
  139. /*Heck*/
  140. intersection{
  141.  quadric {Paraboloid_Z scale <.18 .6 .5> rotate <-6 180 0> translate <0 -.7 5>}
  142.  quadric {Ellipsoid scale <1.2 5 10> translate <0 -3.3 -1>}
  143.  plane {<0 0 1> 0 inverse}
  144.  plane {<0 1 0> -.25 inverse}
  145.  plane {<0 0 1> 3 rotate <-4 0 0>}
  146.  plane {<1 0 0> .65 rotate <0 0 8>}
  147.  plane {<1 0 0> -.65 rotate <0 0 -8> inverse}
  148.  quadric {Cylinder_Y scale <.07 1 .1> translate <.27 1.3 2.6> rotate <-35 0 0> inverse}
  149.  quadric {Cylinder_Y scale <.07 1 .1> translate <-.27 1.3 2.6> rotate <-35 0 0> inverse}
  150. }
  151. intersection{
  152.  quadric {Paraboloid_Z scale <.2 .6 .5> rotate <-6 180 0> translate <0 -.7 5>}
  153.  quadric {Paraboloid_Z scale <.19 .59 .49> rotate <-8 180 0> translate <0 -1 5> inverse}
  154.  plane {<0 0 1> 3 rotate <-4 0 0>}
  155.  plane {<0 1 0> -.25 inverse}
  156.  plane {<0 0 1> 2.7 rotate <-2 0 0> inverse}
  157. }
  158. }
  159. texture {Metal color Blue}
  160.  texture { image_map{ <1 0 -1>gif "one.gif"
  161.            alpha 15 1 
  162.            interpolate 2
  163.            once}
  164.  translate <-.5 0 -.5>
  165.  scale <.7 1 .8>
  166.  rotate <0 0 0>
  167.  translate <0 0 -3.5>}
  168.  
  169.  texture { image_map{ <1 0 -1>gif "marlb.gif"
  170.            alpha 15 1
  171.            interpolate 2
  172.            once}
  173.  translate <-.5 0 -.5>
  174.  scale <.7 1 .3>
  175.  rotate <0 0 0>
  176.  translate <0 0 -2.7>}
  177.  
  178.  texture { image_map{ <1 0 -1>gif "granini.gif"
  179.            alpha 15 1 
  180.            interpolate 2
  181.            once}
  182.  translate <-.5 0 -.5>
  183.  scale <3.2 3.2 1.1>
  184.  rotate <0 0 0>
  185.  translate <0 0 -4.3>}
  186.  
  187.  
  188. }
  189.  
  190. /*Lufteinla▀*/
  191.  
  192. object{
  193. intersection{
  194.  quadric {Cylinder_X scale <10 7.7 9> translate <0 -7 2>}
  195.  plane {<0 0 1> -.5 rotate <6 0 0> inverse}
  196.  plane {<0 0 1> 4}
  197.  plane {<0 1 0> -.25 inverse}
  198.  box {<-.5 -2 -1.5> <.5 2 1> inverse}
  199.  quadric {Cylinder_Y scale <12 1 8> translate <-10.3 0 1>}
  200.  quadric {Cylinder_Y scale <12 1 8> translate <10.3 0 1>}
  201.  quadric {Cylinder_Y scale <3.2 3 3.5> translate <4.05 0 4> inverse}
  202.  quadric {Cylinder_Y scale <3.2 3 3.5> translate <-4.05 0 4> inverse}
  203.  box {<-1.25 -.2 -1.5> <1.25 .4 1> inverse}
  204.  box {<-2 -1 2.5> <2 0 6> inverse}
  205.  box {<-.4 -.5 3.5> <.4 .4 6> inverse}
  206.  quadric {Cylinder_X scale <10 8 15> translate <0 8.4 5> inverse}
  207. /*Schlitze*/
  208.  box {<-1.3 -1 2> <1.3 2 2.1> rotate <-15 0 0> inverse}
  209.  box {<-1.25 -1 2.2> <1.25 2 2.3> rotate <-15 0 0> inverse}
  210.  box {<-1.15 -1 2.4> <1.15 2 2.5> rotate <-15 0 0> inverse}
  211.  box {<-1.05 -1 2.6> <1.05 2 2.7> rotate <-15 0 0> inverse}
  212.  box {<-.95 -1 2.8> <.95 2 2.9> rotate <-15 0 0> inverse}
  213.  box {<-.85 -1 3> <.85 2 3.1> rotate <-15 0 0> inverse}
  214.  box {<-.75 -1 3.2> <.75 2 3.3> rotate <-15 0 0> inverse}
  215. }
  216.  texture {Gold_Metal}
  217.  texture { image_map{ <1 0 -1>gif "visa.gif"
  218.            alpha 15 1
  219.            interpolate 2
  220.            once}
  221.  translate <-.5 0 -.5>
  222.  scale <.7 .7 .4>
  223.  rotate <0 0 0>
  224.  translate <-1 0 0>}
  225.  texture { image_map{ <1 0 -1>gif "visa.gif"
  226.            alpha 15 1
  227.            interpolate 2
  228.            once}
  229.  translate <-.5 0 -.5>
  230.  scale <.5 .5 .3>
  231.  rotate <0 0 0>
  232.  translate <1 0 0>}
  233.  
  234. }
  235.  
  236. /*Sitz*/
  237. object {
  238.   union {
  239.    quartic {Kissen
  240.    scale <0.07 0.02 0.1>
  241.    rotate <10 0 0>
  242.    translate <0 .2 -.6>
  243. }
  244.    quartic {Kissen
  245.    scale <0.07 0.02 0.08>
  246.    rotate <-80 0 0>
  247.    translate <0 .75 -.1>
  248. }
  249. }
  250.   texture {Dull color Gray70}
  251. }
  252.  
  253. /*Steuer*/
  254.  
  255. composite {
  256.   object {
  257.     intersection {
  258.      quartic {Torus_40_12 scale <1 .5 1>}
  259.      quartic {Torus_40_12 scale <.5 .5 .5>}
  260.  
  261.      }
  262.    texture {Dull color Gray50}
  263.    }
  264.  object {
  265.    intersection {
  266.    quadric {Cylinder_Y scale <3 .7 3>}
  267.    plane {<0 1 0> -.5 inverse}
  268.    plane {<0 1 0> .5}
  269.    quadric {Cylinder_Y scale <5 1 7> translate <0 0 8> rotate <0 0 0> inverse} 
  270.    quadric {Cylinder_Y scale <5 1 7> translate <0 0 8> rotate <0 120 0> inverse}    
  271.    quadric {Cylinder_Y scale <5 1 7> translate <0 0 8> rotate <0 240 0> inverse}    
  272.    }
  273.    texture {color Red}
  274.  }
  275.  
  276.  scale <0.04 0.03 0.04>
  277.  rotate <60 0 0>
  278.  translate <0 .85 -1.8>
  279. }
  280.  
  281. /*Spiegel*/
  282. /*links*/
  283. object {
  284.   union {
  285.    intersection {
  286.      quadric {Paraboloid_Z scale <.75 .5 1>}  
  287.      plane {<0 0 1> 1}  
  288.    }
  289.    intersection {Disk_X scale <.5 .1 .2> translate <-1.2 0 .8>
  290.    }
  291.   }
  292.   texture { Chrome_Metal color Blue}
  293.   scale <.2 .2 .2>
  294.   rotate <-7 0 0>
  295.   translate <.8 .8 -2>
  296. }
  297.  
  298. /*rechts*/
  299. object {
  300.   union {
  301.    intersection {
  302.      quadric {Paraboloid_Z scale <.75 .5 1>}  
  303.      plane {<0 0 1> 1}  
  304.    }
  305.    intersection {Disk_X scale <.5 .1 .2>  translate <1.2 0 .8>
  306.    }
  307.   }
  308.   texture { Chrome_Metal color Blue}
  309.   scale <.2 .2 .2>
  310.   rotate <-7 0 0>
  311.   translate <-.8 .8 -2>
  312. }
  313.  
  314.  
  315. /*Frontspoiler*/
  316.  
  317. object {
  318.  union {
  319.   box {<-1.3 -.25 -4.7> <1.3 -.2 -4>}
  320.   box {<-1.3 -.25 -4.2> <1.3 -.2 -3.9> rotate <-15 0 0> translate <0 1.1 0>}
  321.  
  322.   intersection {
  323.    box {<-.015 -.27 -4.8> <.015 .4 -3.7>}
  324.    plane {<0 1 0> 0 rotate <-12 0 0> translate <0 0 -4>}
  325. translate <-1.315 0 0>
  326. }
  327.   intersection {
  328.    box {<-.015 -.27 -4.8> <.015 .4 -3.7>}
  329.    plane {<0 1 0> 0 rotate <-12 0 0> translate <0 0 -4>}
  330. translate <1.315 0 0>
  331. }
  332.  
  333. }
  334.  
  335.  texture{Gold_Metal}
  336.  texture { image_map{ <1 0 -1>gif "granini.gif"
  337.            alpha 15 1 
  338.            interpolate 2
  339.            once}
  340.  translate <-.5 0 -.5>
  341.  scale <3.2 3.2 1.1>
  342.  rotate <0 0 0>
  343.  translate <0 0 -4.3>}
  344. }
  345.  
  346. /*Heckspoiler*/
  347.  
  348. object {
  349.  union {
  350.  intersection {
  351.   quadric {Cylinder_Y scale <.1 1 .5> rotate <18 0 0> translate <0 0 3.2>}
  352.   plane {<0 1 0> .6 inverse}
  353.   plane {<0 1 0> 1.7}
  354. }
  355.  
  356.   box {<-1 1.7 3.2> <1 1.75 4.5>}
  357.   box {<-1 -.1 4.7> <1 .1 5.35> rotate <-21 0 0>}
  358.   box {<-1 1.2 3.2> <1 1.25 4.5>}   
  359.  
  360.   intersection {
  361.    box {<-1.02 .7 2> <-1 2.1 5>}
  362.    plane {<0 0 1> 5 rotate <15 0 0>}
  363.    plane {<0 0 1> 3.5 rotate <-20 0 0> inverse}
  364.    plane {<0 0 1> 1.75 rotate <30 0 0> inverse}
  365. }
  366.  
  367.   intersection {
  368.    box {<1 .7 2> <1.02 2.1 5>}
  369.    plane {<0 0 1> 5 rotate <15 0 0>}
  370.    plane {<0 0 1> 3.5 rotate <-20 0 0> inverse}
  371.    plane {<0 0 1> 1.75 rotate <30 0 0> inverse}
  372. }
  373.  
  374.   texture {Gold_Metal}
  375.  texture { image_map{ <1 0 -1>gif "flag.gif"
  376.            alpha 15 1
  377.            interpolate 2
  378.            once}
  379.  translate <-.5 0 -.5>
  380.  scale <2 1 2>
  381.  rotate <0 0 0>
  382.  translate <0 0 4.1>}
  383.  
  384.   translate <0 -.3 0>
  385. }
  386.  
  387. /*Vorderachse*/
  388.  
  389. /*links*/
  390. object {
  391.  union {
  392.   intersection {
  393.    union {
  394.    quadric {Cylinder_X scale <.025 .025 .025> rotate <0 -12 0> translate <0 .1 0>}
  395.    quadric {Cylinder_X scale <.025 .025 .025> rotate <0 12 0> translate <0 .1 0>}
  396.    quadric {Cylinder_X scale <.025 .025 .025> rotate <0 -12 0> translate <0 -.1 0>}
  397.    quadric {Cylinder_X scale <.025 .025 .025> rotate <0 12 0> translate <0 -.1 0>}
  398.    quadric {Cylinder_X scale <.025 .025 .025> rotate <0 0 -25> translate <0 -.1 0>}
  399. }
  400.    plane {<1 0 0> -1.3 inverse}
  401.    plane {<1 0 0> -.01}
  402. }
  403.   sphere{<0 0 0> .1}
  404. }
  405. texture {Silver_Metal}
  406. translate <1.6 -.172 -2.6>
  407. }
  408.  
  409. /*rechts*/
  410. object {
  411.  union {
  412.   intersection {
  413.    union {
  414.    quadric {Cylinder_X scale <.025 .025 .025> rotate <0 -12 0> translate <0 .1 0>}
  415.    quadric {Cylinder_X scale <.025 .025 .025> rotate <0 12 0> translate <0 .1 0>}
  416.    quadric {Cylinder_X scale <.025 .025 .025> rotate <0 -12 0> translate <0 -.1 0>}
  417.    quadric {Cylinder_X scale <.025 .025 .025> rotate <0 12 0> translate <0 -.1 0>}
  418.    quadric {Cylinder_X scale <.025 .025 .025> rotate <0 0 25> translate <0 -.1 0>}
  419. }
  420.    plane {<1 0 0> 1.3}
  421.    plane {<1 0 0> .01 inverse}
  422. }
  423.   sphere{<0 0 0> .1}
  424. }
  425. texture {Silver_Metal}
  426. translate <-1.6 -.172 -2.6>
  427. }
  428.  
  429. /*Hinterachse*/
  430.  
  431. object {
  432.   intersection {Disk_X scale <1.8 .07 0.07> translate <0 .0 3.5>}
  433.   texture {color Blue}
  434. }
  435.  
  436. /*links*/
  437. object {
  438.  union {
  439.   intersection {
  440.    union {
  441.    quadric {Cylinder_X scale <.025 .025 .025> rotate <0 -40 0> translate <0 .1 0>}
  442.    quadric {Cylinder_X scale <.025 .025 .025> rotate <0 15 0> translate <0 .1 0>}
  443.    quadric {Cylinder_X scale <.025 .025 .025> rotate <0 -40 0> translate <0 -.1 0>}
  444.    quadric {Cylinder_X scale <.025 .025 .025> rotate <0 15 0> translate <0 -.1 0>}
  445. }
  446.    plane {<1 0 0> -.7 inverse}
  447.    plane {<1 0 0> -.01}
  448. }
  449.   intersection {Disk_X scale <.07 .15 .15>}
  450. }
  451. texture {Silver_Metal}
  452. translate <1.6 .0 3.5>
  453. }
  454.  
  455. /*rechts*/
  456. object {
  457.  union {
  458.   intersection {
  459.    union {
  460.    quadric {Cylinder_X scale <.025 .025 .025> rotate <0 -15 0> translate <0 .1 0>}
  461.    quadric {Cylinder_X scale <.025 .025 .025> rotate <0 40 0> translate <0 .1 0>}
  462.    quadric {Cylinder_X scale <.025 .025 .025> rotate <0 -15 0> translate <0 -.1 0>}
  463.    quadric {Cylinder_X scale <.025 .025 .025> rotate <0 40 0> translate <0 -.1 0>}
  464. }
  465.    plane {<1 0 0> .7}
  466.    plane {<1 0 0> .01 inverse}
  467. }
  468.   intersection {Disk_X scale <.07 .15 .15>}
  469. }
  470. texture {Silver_Metal}
  471. translate <-1.6 .0 3.5>
  472. }
  473.  
  474. /*RΣder*/
  475.  
  476. /*HL*/
  477.  
  478. composite {
  479. object {Felge}
  480. object {Pneu}
  481.   scale <.17 .09 .09>
  482.   rotate <-12 0 0>
  483.   translate <1.8 0 3.5>
  484.  
  485. }
  486.  
  487. /*HR*/
  488.  
  489. composite {
  490. object {Felge}
  491. object {Pneu}
  492.   scale <.17 .09 .09>
  493.   rotate <70 0 0>
  494.   translate <-1.8 0 3.5>
  495.  
  496. }
  497.  
  498. /*VL*/
  499.  
  500. composite {
  501. object {Felge}
  502. object {Pneu}
  503.   scale <.11 .07 .07>
  504.   rotate <50 -30 0>
  505.   translate <1.8 -.172 -2.6>
  506.  
  507. }
  508.  
  509. /*VR*/
  510.  
  511. composite {
  512. object {Felge}
  513. object {Pneu}
  514.   scale <.11 .07 .07>
  515.   rotate <30 -28 0>
  516.   translate <-1.8 -.172 -2.6>
  517.  
  518.  
  519. }
  520.  
  521.  
  522.  
  523. bounded_by {box {<-3 -1 -5> <3 2 5.5>}}
  524.          translate <0 0 0>
  525.  
  526. }
  527.  
  528.  
  529.  
  530.