home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #7 / amigamamagazinepolishissue1998.iso / varia / povray3 / povray3_fpu / pov3demo / demo / arealit1.pov next >
Text File  |  1997-12-12  |  2KB  |  91 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Illustrates how area light grid size affects soft shadows
  3.  
  4. // Left   shadow - area_light <8,0,0>, <0,0,8>,  3,  3 (renders fastest)
  5. // Middle shadow - area_light <8,0,0>, <0,0,8>,  5,  5
  6. // Right  shadow - area_light <8,0,0>, <0,0,8>, 17, 17 (renders slowest)
  7.  
  8. #version 3.0
  9. global_settings { assumed_gamma 2.2 }
  10.  
  11. #include "colors.inc"
  12. #include "textures.inc"
  13.  
  14. // A back wall to cast shadows onto
  15. plane { -z, -20
  16.     pigment { Gray70 }
  17.     finish { Dull }
  18. }
  19.  
  20. #declare SpacingX = 20
  21. #declare Radius = 5
  22. #declare LightX = 15
  23. #declare LightY = 40
  24. #declare LightZ = -40
  25. #declare SRadius = 0
  26. #declare SFalloff = 11
  27.  
  28. #declare SphereTexture = texture {
  29.     pigment { Red }
  30.     finish { Shiny }
  31. }
  32.  
  33. sphere { <-SpacingX, 0, 0>, Radius
  34.     texture { SphereTexture }
  35. }
  36.  
  37. light_source {
  38.     <0, LightY, LightZ> color White
  39.     area_light <8, 0, 0>, <0, 8, 0>, 3, 3
  40.     adaptive 0
  41.     jitter
  42.  
  43.     spotlight
  44.     point_at <-SpacingX, 0, 0>
  45.     tightness 0
  46.     radius SRadius
  47.     falloff SFalloff
  48. }
  49.  
  50. sphere { <0, 0, 0>, Radius
  51.     texture { SphereTexture }
  52. }
  53.  
  54. light_source {
  55.     <0, LightY, LightZ> color White
  56.     area_light <8, 0, 0>, <0, 8, 0>, 5, 5
  57.     adaptive 0
  58.     jitter
  59.  
  60.     spotlight
  61.     point_at <0, 0, 0>
  62.     tightness 0
  63.     radius SRadius
  64.     falloff SFalloff
  65. }
  66.  
  67. sphere { <+SpacingX, 0, 0>, Radius
  68.     texture { SphereTexture }
  69. }
  70.  
  71. light_source {
  72.     <0, LightY, LightZ> color White
  73.     area_light <8, 0, 0>, <0, 8, 0>, 17, 17
  74.     adaptive 0
  75.     jitter
  76.  
  77.     spotlight
  78.     point_at <+SpacingX, 0, 0>
  79.     tightness 0
  80.     radius SRadius
  81.     falloff SFalloff
  82. }
  83.  
  84. light_source { <0, -15, -120> color Gray10 }
  85.  
  86. camera {
  87.     location <0, -15, -120>
  88.     direction 2*z
  89.     look_at <0, -15, 0>
  90. }
  91.