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

  1. // Persistence of Vision Raytracer
  2. // Bezier patch example
  3. // by Alexander Enzmann
  4.  
  5.  
  6. #include "shapes.dat"
  7. #include "colors.dat"
  8.  
  9. object
  10.    bicubic_patch 1 5 5
  11. // bicubic_patch 3 0.05 5 5 
  12.       < 0.0  0.0  2.0>  < 1.0  0.0  0.0>  < 2.0  0.0  0.0>  < 3.0  0.0 -2.0>
  13.       < 0.0  1.0  0.0>  < 1.0  1.0  0.0>  < 2.0  1.0  0.0>  < 3.0  1.0  0.0>
  14.       < 0.0  2.0  0.0>  < 1.0  2.0  0.0>  < 2.0  2.0  0.0>  < 3.0  2.0  0.0>
  15.       < 0.0  3.0  2.0>  < 1.0  3.0  0.0>  < 2.0  3.0  0.0>  < 3.0  3.0 -2.0>
  16.       texture
  17.      checker
  18.         color red 1.0 color blue 1.0
  19.      rotate <90 0 0>
  20.      phong 1
  21.       end_texture
  22.    end_bicubic
  23.    color red 1.0
  24.    translate <-1.5 -1.5 0>
  25.    scale <2 2 2>
  26.    rotate <30 -70 0>
  27. end_object
  28.  
  29. // The viewer is eight units back along the z-axis. 
  30. view_point
  31.    location  <0.0  0.0 -15.0>
  32.    right     <1.3333  0.0  0.0>
  33.    up        <0.0  1.0  0.0>
  34.    direction <0.0  0.0  1.0>
  35. end_view_point
  36.  
  37. // Light source 
  38. object
  39.    sphere <0 0 0> 0.1 end_sphere
  40.    translate <100 100 0> 
  41.    texture
  42.      colour White
  43.      ambient 1.0
  44.      diffuse 0.0
  45.    end_texture
  46.    light_source
  47.    colour White
  48. end_object
  49.  
  50.