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

  1. // Persistence of Vision Raytracer
  2. // Sample file
  3. // By Alexander Enzmann
  4. { sample quartic data file written by Alexander Enzmann }
  5.  
  6. #include "colors.dat"
  7. #include "shapes.dat"
  8. #include "textures.dat"
  9.  
  10. { Quartic Cylinder - a Space Needle? }
  11. object
  12.    quartic
  13.    < 0.0   0.0   0.0   0.0   1.0   0.0   0.0   0.0   0.0   0.01
  14.      0.0   0.0   0.0   0.0   0.0   0.0   0.0   0.0   0.0   0.0
  15.      0.0   0.0   0.0   1.0   0.0   0.0   0.0   0.0   0.0   0.0
  16.      0.0   0.0   0.01  0.0  -0.01 >
  17.    end_quartic
  18.    bounded_by
  19.      sphere <0 0 0> 2 end_sphere
  20.    end_bound
  21.    texture
  22.       color CRed
  23.       phong 1.0
  24.       phongsize 10
  25.       ambient 0.2
  26.       diffuse 0.8
  27.    end_texture
  28.    rotate <-30 20 0>
  29.    translate <0 0 3>
  30. end_object
  31.  
  32. { Put down checkered floor }
  33. object
  34.    quadric
  35.       Plane_XZ
  36.       translate <0.0  -20.0  0.0>
  37.    end_quadric
  38.    texture
  39.       checker colour NavyBlue colour MidnightBlue
  40.       scale < 20.0 20.0 20.0 >
  41.       ambient 0.8
  42.       diffuse 0.2
  43.    end_texture
  44. end_object
  45.  
  46. view_point
  47.    location  <0.0  0.0 -3.0>
  48.    direction <0.0  0.0  1.0>
  49.    up        <0.0  1.0  0.0>
  50.    right     <1.33 0.0  0.0>
  51. end_view_point
  52.  
  53. object
  54.    sphere <0 0 0> 1 end_sphere
  55.    translate <200 30 -300>
  56.    texture
  57.       color White
  58.       ambient 1.0
  59.       diffuse 0.0
  60.    end_texture
  61.    light_source
  62.    colour White
  63. end_object
  64.  
  65. object
  66.    sphere <0 0 0> 1 end_sphere
  67.    translate <-200 30 -300>
  68.    texture
  69.       color White
  70.       ambient 1.0
  71.       diffuse 0.0
  72.    end_texture
  73.    light_source
  74.    colour White
  75. end_object
  76.