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

  1. // Persistence of Vision Raytracer
  2. // Sample file
  3. // By Aaron A. Collins
  4.  
  5. { Scene Description of a Satellite Dish by Aaron A. Collins }
  6. { Made to test the quadric "Paraboloid" and "Cone" Shapes   } 
  7.  
  8. #include "shapes.dat"
  9. #include "colors.dat"
  10. #include "textures.dat"
  11.  
  12. view_point
  13.    location <0.0  0.0  -70.0>
  14.    direction <0.0 0.0  1.0>
  15.    up  <0.0  1.0  0.0>
  16.    right <1.33333 0.0 0.0>
  17. end_view_point
  18.  
  19. composite
  20.  
  21.   object            { The basic dish }
  22.      intersection
  23.        quadric Paraboloid_Y
  24.          scale <30.0 20.0 30.0>
  25.        end_quadric
  26.        quadric Paraboloid_Y
  27.          scale <29.0 19.0 29.0>
  28.      inverse
  29.        end_quadric
  30.        plane <0.0 1.0 0.0> 20.0 end_plane
  31.      end_intersection
  32.      texture
  33.        color red 0.8 green 0.2 blue 0.2
  34.        ambient 0.2
  35.        diffuse 0.8
  36.        phong 1.0
  37.        phongsize 10
  38.      end_texture
  39.      color red 0.8 green 0.2 blue 0.2
  40.   end_object
  41.  
  42.   object            { The lna thingy at the focal point }
  43.     union
  44.       intersection
  45.         quadric Cone_Y
  46.           scale <1.0 10.0 1.0>
  47.           translate <0.0 31.0 0.0>
  48.       end_quadric
  49.         plane <0.0 1.0 0.0> 31.0 end_plane
  50.         plane <0.0 -1.0 0.0> 0.0 end_plane
  51.       end_intersection
  52.       sphere <0.0 30.0 0.0> 2.0 end_sphere
  53.     end_union
  54.     texture
  55.       color red 0.0 green 0.2 blue 0.8
  56.       ambient 0.2
  57.       diffuse 0.8
  58.       phong 1.0
  59.       phongsize 30
  60.     end_texture
  61.     color red 0.0 green 0.2 blue 0.8
  62.   end_object
  63.  
  64.   object            { The equatorial mount }
  65.     quadric Paraboloid_Y
  66.       rotate <180.0 0.0 0.0>
  67.       scale <30.0 60.0 30.0>
  68.     end_quadric
  69.     texture
  70.       color red 0.0 green 0.8 blue 0.2
  71.       ambient 0.2
  72.       diffuse 0.8
  73.       phong 1.0
  74.       phongsize 30
  75.     end_texture
  76.     color red 0.0 green 0.8 blue 0.2
  77.   end_object
  78.  
  79.   rotate <-30.0 -30.0 0.0>
  80.  
  81. end_composite
  82.  
  83. object
  84.   sphere <0.0 0.0 0.0> 2.0 end_sphere
  85.   translate <100.0  120.0  -130.0>
  86.   texture
  87.     colour White
  88.     ambient 1.0
  89.     diffuse 0.0
  90.   end_texture
  91.   light_source
  92.   colour White
  93. end_object
  94.  
  95. object
  96.   sphere <0.0 0.0 0.0> 2.0 end_sphere
  97.   translate <-100.0  100.0  -130.0>
  98.   texture
  99.     colour White
  100.     ambient 1.0
  101.     diffuse 0.0
  102.   end_texture
  103.   light_source
  104.   colour White
  105. end_object
  106.