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

  1. // Persistence of Vision Raytracer
  2. // Sample file
  3. // By Alexander Enzmann
  4.  
  5. { sample quartic data file written by Alexander Enzmann }
  6.  
  7. #include "shapes.dat"
  8. #include "colors.dat"
  9. #include "textures.dat"
  10.  
  11. composite
  12.    { Lemniscate of Gerono }
  13.    object
  14.       quartic
  15.       < 1.0   0.0   0.0    0.0  0.0   0.0   0.0   0.0   0.0 -1.0
  16.         0.0   0.0   0.0    0.0  0.0   0.0   0.0   0.0   0.0  0.0
  17.         0.0   0.0   0.0    0.0  0.0   1.0   0.0   0.0   0.0  0.0
  18.         0.0   0.0   1.0    0.0  0.0 >
  19.       end_quartic
  20.       bounded_by
  21.       sphere <0 0 0> 2.01 end_sphere
  22.       end_bound
  23.       texture
  24.         color CRed
  25.         phong 1.0
  26.         phongsize 10
  27.         ambient 0.2
  28.         diffuse 0.8
  29.       end_texture
  30.       rotate <0 0 45>
  31.    end_object
  32.  
  33.    { Lemniscate of Gerono }
  34.    object
  35.       quartic
  36.       < 1.0   0.0   0.0    0.0  0.0   0.0   0.0   0.0   0.0 -1.0
  37.         0.0   0.0   0.0    0.0  0.0   0.0   0.0   0.0   0.0  0.0
  38.         0.0   0.0   0.0    0.0  0.0   1.0   0.0   0.0   0.0  0.0
  39.         0.0   0.0   1.0    0.0  0.0 >
  40.       end_quartic
  41.       bounded_by
  42.       sphere <0 0 0> 2.01 end_sphere
  43.       end_bound
  44.       texture
  45.         color CBlue
  46.         phong 1.0
  47.         phongsize 10
  48.         ambient 0.2
  49.         diffuse 0.8
  50.       end_texture
  51.       rotate <0 0 -45>
  52.    end_object
  53.  
  54.    scale <4 4 4>
  55.    rotate <30 0 20>
  56.    translate <0 0 5>
  57.  
  58. end_composite
  59.  
  60. view_point
  61.    location  <0.0  0.0 -10.0>
  62.    right     <1.0  0.0  0.0>
  63.    up        <0.0  1.0  0.0>
  64.    direction <0.0  0.0  1.0>
  65. end_view_point
  66.  
  67. object
  68.    sphere <0 0 0 > 1 end_sphere
  69.    translate <200 30 -30>
  70.    texture
  71.      colour White
  72.      ambient 1.0
  73.      diffuse 0.0
  74.    end_texture
  75.    light_source
  76.    colour White
  77. end_object
  78.  
  79. object
  80.    sphere <0 0 0> 1 end_sphere
  81.    translate <-200 30 -300>
  82.    texture
  83.      colour White
  84.      ambient 1.0
  85.      diffuse 0.0
  86.    end_texture
  87.    light_source
  88.    colour White
  89. end_object
  90.  
  91. { Put down floor }
  92. object
  93.    plane <0.0 1.0 0.0> -30.0 end_plane
  94.    texture
  95.      White_Marble
  96.      scale <30 30 30>
  97.      ambient 0.3
  98.      diffuse 0.7
  99.    end_texture
  100.    rotate <5 0 0>
  101. end_object
  102.