home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / f / ftpov / Authors / Snow < prev   
Text File  |  1996-01-18  |  1KB  |  30 lines

  1. File: snowdemo.gif,      snowcode.c
  2. Size: 111,398 Bytes     5,623 Bytes
  3. Date: 2/8/95             2/1/95
  4. Time: 3:52:10            12:32:32
  5. Author: Robert J. MacG. Dawson
  6. AuthorEmail: rdawson@husky1.stmarys.ca
  7. Uploader: Robert J. MacG. Dawson
  8. UploaderEmail: rdawson@husky1.stmarys.ca
  9. Short: C patch for snow effect, and demo GIF
  10.  
  11.  
  12. Snowcode.C contains a set of C fragments which,properly inserted into 
  13. the POV source, will add a "snow" effect.  Both number and size of
  14. flakes can be varied.  It looks best in conjunction with fog. 
  15.    There is one known bug. If the ray never intersects any object,
  16. then no snowflake is placed along that ray. To avoid this problem,
  17. use a sky sphere.
  18.     Snow, like crand, is random and won't animate well. Sorry!
  19. Moredetails are given in snowcode.c.
  20.  
  21.     Syntax: snow{distance 10.0 flake_size 2.0 color White}
  22. Small distance -> more flakes. 
  23.  
  24.     Snowdemo.gif is a sample image. A few notes:
  25. -The snow was a 10% gray, to show dark against the sky and light 
  26. against everything else. A white fog was used as well.
  27. -The drifting on the table was done with a clear-clear-white marble.
  28. -The trees were done with nested cones, textured with a y-gradient
  29. that was clear from about 0.4 to 1, with dark green and a streak of 
  30. white below that.