home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 015.lha / tracer_source / readme.hak < prev    next >
Encoding:
Text File  |  1986-11-10  |  1.3 KB  |  30 lines

  1. ***** A Hackers Guide to Tracer *****
  2. tracer consists of a bunch of files containing a program that does 
  3. ray tracing (No fooling!!).
  4. Thes files are as follows:
  5. tracer.c:    main() sets up the initial rays and stores values
  6.         in a file. booboo prints an error message and quits.
  7. shade.c:    shade() calculates the intensity returned by a ray. It is
  8.          recursive, and also makes a call to refract().
  9. refract.c:    The most difficult part of the program. This file contains
  10.         refract(), inside(), refk() and getcapt().
  11.         and these do all the refraction calculations.
  12. find.c:        contains find(),findo() (for when a ray is inside a ball)
  13.         and shadow() and finds() for shadows.
  14. support.c:    supportive subroutines. right now only contains mt_vec
  15.         as all the others were either discarded or converted to 
  16.         macros.
  17. g_bal.c        g_bal() gets the ball data and points bl[] at them.
  18. g_bod.c        g_bod() loads the floor pattern into suzie.
  19.  
  20. macros.h    contains all the macro definitions. Definitely to be looked at.
  21. rtd.h        header file containing all the structure definitions.
  22. extern.h    keeps track of all global variables used through the program.
  23.  
  24. tracer.ball    sample ball data file.
  25. tracer.param    parameters file: viewport, output device, viewpoint, and light
  26.         source specifications.
  27.  
  28. susie.pat,
  29. checker.pat    sample pattern files.
  30.