home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / GRAPHICS / MISC / PVDAT.ZIP / CAR.DAT < prev    next >
Encoding:
Text File  |  1991-09-07  |  5.3 KB  |  278 lines

  1. // Persistence of Vision Raytracer
  2. // Sample file
  3. // By Jorge Arreguin
  4.  
  5. {
  6.  car.dat  PvRay Script             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. }
  15.  
  16. {-----------------------------declaraciones------------------------}
  17.  
  18. #include "shapes.dat"
  19. #include "colors.dat"
  20. #include "textures.dat"
  21.  
  22. #declare JA_Hyperboloid = quadric
  23.        <  1.0  -1.0  1.0>
  24.        <  0.0   0.0  0.0>
  25.        <  0.0   0.0  0.0>
  26.       -0.6
  27. end_quadric
  28.  
  29. #declare Near_Black = colour red 0.1 green 0.1 blue 0.1
  30.  
  31. #declare Llanta = intersection
  32.  quadric QSphere scale < 1.0 1.0 1.0 > end_quadric
  33.  quadric JA_Hyperboloid scale < 0.7 0.3 0.7 > inverse end_quadric
  34. end_intersection
  35.  
  36. #declare Polvera = object
  37.  quadric QSphere scale < 0.8 0.2 0.8 > end_quadric
  38.  texture
  39.   color Gray
  40.   reflection 0.3
  41.   phong 0.8
  42.   phongsize 10.0
  43.  end_texture
  44.  color Gray
  45. end_object
  46.  
  47. view_point
  48.    location <0.0  -33.0  0.0>
  49.    direction <0.0 2.0  0.0>
  50.    up  <0.0  0.0  1.0>
  51.    right <1.33333 0.0 0.0>
  52.    rotate < -30.0 0.0 30.0 >
  53. end_view_point
  54.  
  55. object
  56.    sphere <0.0  0.0  0.0>  5.0 end_sphere
  57.    translate <-10.0  -30.0  50.0>
  58.    texture
  59.      colour White
  60.      ambient 1.0
  61.      diffuse 0.0
  62.    end_texture
  63.    light_source
  64.    colour White
  65. end_object
  66.  
  67. object  
  68.    sphere <0.0  0.0  0.0>  2.0 end_sphere
  69.    translate <40.0  -40.0  45.0>
  70.    colour red 1.0 green 1.0 blue 1.0
  71.    texture
  72.      colour White
  73.      ambient 1.0
  74.      diffuse 0.0
  75.    end_texture
  76.    light_source
  77.    colour White
  78. end_object
  79.  
  80. {--------------------------------------- cuerpo --------------------}
  81.  
  82. object
  83.  intersection
  84.   quadric
  85.     QSphere
  86.     scale < 10.0 10.0 4.0 >
  87.   end_quadric
  88.   plane < 1.0 0.0 0.0 > 0.0
  89.     rotate < 0.0 -16.2379 0.0 >
  90.     translate < -5.0 0.0 0.0 >
  91.     inverse
  92.   end_plane
  93.   plane < 0.0 0.0 1.0 > 0.01 end_plane
  94.   plane < 0.0 0.0 1.0 > 0.005 inverse end_plane
  95.   quadric
  96.     Cylinder_X
  97.     scale < 1.0 5.0 5.0 >
  98.   end_quadric
  99.  end_intersection
  100.  bounded_by sphere < 0.0 0.0 0.0 > 10.0 end_sphere end_bound
  101.  texture
  102.   color CBlue
  103.   reflection 0.4
  104.  end_texture
  105.  color CBlue
  106. end_object
  107.  
  108. object
  109.  union
  110.   intersection
  111.    quadric
  112.     QSphere
  113.     scale < 10.0 10.0 4.0 >
  114.    end_quadric
  115.    plane < 1.0 0.0 0.0 > 0.0
  116.     rotate < 0.0 -16.2379 0.0 >
  117.     translate < -5.0 0.0 0.0 >
  118.     inverse
  119.    end_plane
  120.    plane < 0.0 0.0 1.0 > 0.01 inverse end_plane
  121.    quadric
  122.     Cylinder_X
  123.     scale < 1.0 5.0 5.0 >
  124.    end_quadric
  125.   end_intersection
  126.   intersection
  127.    quadric
  128.     QSphere
  129.     scale < 3.352 8.380 3.352 >
  130.     rotate < 0.0 -16.2379 0.0 >
  131.     translate < -5.0 0.0 0.0 >
  132.    end_quadric
  133.    plane < 1.0 0.0 0.0 > 0.0
  134.     rotate < 0.0 -16.2379 0.0 >
  135.     translate < -5.0 0.0 0.0 >
  136.    end_plane
  137.    plane < 1.0 0.0 0.0 > 0.0
  138.     rotate < 0.0 -64.0 0.0 >
  139.     translate < -5.0 0.0 0.0 >
  140.     inverse
  141.    end_plane
  142.    plane < 0.0 0.0 1.0 > 0.01 inverse end_plane
  143.    quadric
  144.     Cylinder_X
  145.     scale < 1.0 5.0 5.0 >
  146.    end_quadric
  147.   end_intersection
  148.  end_union
  149.  bounded_by sphere < 0.0 0.0 0.0 > 10.0 end_sphere end_bound
  150.  texture
  151.   imagemap < 1.0 -1.0 0.0 > gif "glass3.gif" 
  152.    interpolate 2.0
  153.    once 
  154.   end_map
  155.   scale < 18.6 10.0 1.0 >
  156.   translate < -8.38 -5.0 0.0 >
  157.   phong 0.8
  158.   phongsize 20.0
  159.   reflection 0.4
  160.  end_texture
  161.  color CBlue
  162. end_object
  163.  
  164. {------------------------------- llantas ------------------------------}
  165.  
  166. object
  167.  intersection
  168.   Llanta
  169.   scale < 1.907 1.0 1.907 >
  170.   translate < -4.0 -5.0 0.907 >
  171.  end_intersection
  172.  texture
  173.   color Near_Black
  174.   phong 0.8
  175.   phongsize 40.0
  176.  end_texture
  177.  color Near_Black
  178. end_object
  179.  
  180. object
  181.  intersection
  182.   Llanta
  183.   scale < 1.907 1.0 1.907 >
  184.   translate < -4.0 5.0 0.907 >
  185.  end_intersection
  186.  texture
  187.   color Near_Black
  188.   phong 0.8
  189.   phongsize 40.0
  190.  end_texture
  191.  color Near_Black
  192. end_object
  193.  
  194. object
  195.  intersection
  196.   Llanta
  197.   scale < 1.435 1.0 1.435 >
  198.   translate < 6.5 -5.0 0.435 >
  199.  end_intersection
  200.  texture
  201.   color Near_Black
  202.   phong 0.8
  203.   phongsize 40.0
  204.  end_texture
  205.  color Near_Black
  206. end_object
  207.  
  208.  
  209. object
  210.  intersection
  211.   Llanta
  212.   scale < 1.435 1.0 1.435 >
  213.   translate < 6.5 5.0 0.435 >
  214.  end_intersection
  215.  texture
  216.   color Near_Black
  217.   phong 0.8
  218.   phongsize 40.0
  219.  end_texture
  220.  color Near_Black
  221. end_object
  222.  
  223. {---------------------------- polveras -------------------------}
  224.  
  225. object
  226.  Polvera
  227.  scale < 1.3 1.0 1.3 >
  228.  translate < 6.5 5.0 0.435 >
  229. end_object
  230.  
  231. object
  232.  Polvera
  233.  scale < 1.3 1.0 1.3 >
  234.  translate < 6.5 -5.0 0.435 >
  235. end_object
  236.  
  237. object
  238.  Polvera
  239.  scale < 1.8 1.0 1.8 >
  240.  translate < -4.0 5.0 0.907 >
  241. end_object
  242.  
  243. object
  244.  Polvera
  245.  scale < 1.8 1.0 1.8 >
  246.  translate < -4.0 -5.0 0.907 >
  247. end_object
  248.  
  249. {------------------------------ piso y bardas -----------------------------}
  250.  
  251. object
  252.  plane < 0.0 0.0 -1.0 > 1.0 end_plane
  253.  texture
  254.   checker color Brown color Khaki
  255.   rotate < -90.0 0.0 0.0 >
  256.   reflection 0.5
  257.  end_texture
  258.  color Maroon
  259. end_object
  260.  
  261. object
  262.  plane < -1.0 0.0 0.0 > 11.0 end_plane
  263.  texture
  264.   color Maroon
  265.   reflection 0.5
  266.  end_texture
  267.  color Maroon
  268. end_object
  269.  
  270. object
  271.  plane < 0.0 1.0 0.0 > 7.0 end_plane
  272.  texture
  273.   color Maroon
  274.   reflection 0.5
  275.  end_texture
  276.  color Maroon
  277. end_object
  278.