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

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2.  
  3. #version 3.0
  4. global_settings { assumed_gamma 2.2 }
  5.  
  6. #include "stage1.inc"
  7.  
  8. #declare Radius =5
  9. #declare RowSpace=1.35
  10. #declare ColSpace=1.25
  11. #declare Dist=0.9-Radius
  12. #declare Row2=-Dist
  13. #declare Row1=Row2+Radius*RowSpace*2
  14. #declare Col1= -Radius*ColSpace*2
  15. #declare Col2= Col1+Radius*ColSpace*2
  16. #declare Col3= Col2+Radius*ColSpace*2
  17.  
  18. camera{Camera1 translate <0,Row1-Radius*RowSpace,-240>}
  19.  
  20. #declare Thing=
  21. object {
  22.    UnitBox
  23.    scale Radius
  24.    pigment {Gray75}
  25.    finish  {phong 0.8}
  26. }
  27.  
  28. object { Thing normal {bumps  0.6} translate <Col1 ,Row1 ,Dist> }
  29.  
  30. object {
  31.    Thing
  32.    normal {
  33.       bump_map { gif "test.gif" bump_size 1.0 use_index }
  34.       translate -(x+y)/2
  35.       scale 2*Radius
  36.    }
  37.    translate <Col2 ,Row1 ,Dist>
  38. }
  39.  
  40. object { Thing normal {dents  0.6}    translate <Col3 ,Row1 ,Dist> }
  41. object { Thing normal {ripples  0.6}  translate <Col1 ,Row2 ,Dist> }
  42. object { Thing normal {waves    0.6}  translate <Col2 ,Row2 ,Dist> }
  43. object { Thing normal {wrinkles 0.6}  translate <Col3 ,Row2 ,Dist> }
  44.  
  45.