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