home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / GRAPHICS / MISC / PVDAT.ZIP / TROUGH.DAT < prev    next >
Encoding:
Text File  |  1991-09-07  |  1.7 KB  |  69 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. #declare Quartic_Saddle =
  11.    quartic
  12.    < 0.0   0.0   0.0   0.0  0.0   0.0   0.0   4.0   0.0  0.0
  13.      0.0   0.0   0.0   0.0  0.0   0.0   0.0   0.0   0.0  0.0
  14.      0.0   0.0   0.0   0.0  0.0   0.0   0.0   0.0   0.0 -1.0
  15.      0.0   0.0   0.0   0.0  0.0 >
  16.    end_quartic
  17.  
  18. #declare Unit_Cube =
  19.    intersection
  20.       plane < 1  0  0> 1 texture color Clear end_texture end_plane
  21.       plane <-1  0  0> 1 texture color Clear end_texture end_plane
  22.       plane < 0  1  0> 1 texture color Clear end_texture end_plane
  23.       plane < 0 -1  0> 1 texture color Clear end_texture end_plane
  24.       plane < 0  0  1> 1 texture color Clear end_texture end_plane
  25.       plane < 0  0 -1> 1 texture color Clear end_texture end_plane
  26.    end_intersection
  27.  
  28. { Crossed Trough }
  29. object
  30.    intersection
  31.      quartic Quartic_Saddle
  32.        texture
  33.          color CRed
  34.      specular 0.8
  35.      roughness 0.005
  36.      ambient 0.3
  37.      diffuse 0.6
  38.        end_texture
  39.      end_quartic
  40.      intersection Unit_Cube end_intersection
  41.    end_intersection
  42.    bounded_by
  43.      intersection Unit_Cube scale <1.5 1.5 1.5> end_intersection
  44.    end_bound
  45.    scale <2 2 2> 
  46.    rotate <0 -10 0>
  47.    rotate <-60 0 0>
  48.    translate <0 0 4>
  49. end_object
  50.  
  51. view_point
  52.    location  <0.0  0.0 -4.0>
  53.    right     <1.33 0.0  0.0>
  54.    up        <0.0  1.0  0.0>
  55.    direction <0.0  0.0  1.0>
  56. end_view_point
  57.  
  58. object
  59.    sphere <0 0 0> 1 end_sphere
  60.    translate <200 30 -300>
  61.    texture
  62.      color White
  63.      ambient 1.0
  64.      diffuse 0.0
  65.    end_texture
  66.    light_source
  67.    colour White
  68. end_object
  69.