home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 058.lha / IFFtoPAT.doc < prev    next >
Encoding:
Text File  |  1986-11-20  |  2.5 KB  |  63 lines

  1.  
  2.             *** IFFtoPAT.BAS ***
  3.  
  4.     IFFtoPAT.BAS creates .PAT pattern files for use with the
  5. ray-tracing program TRACER.  It allows you to load in 16- or 32-color
  6. IFF files and, using the mouse, select an area to be stored as a
  7. pattern.
  8.  
  9.     **** You must rename 'g.bmap' as 'graphics.bmap' ****
  10.  
  11.  
  12.             - Making the IFF file -
  13.  
  14.     TRACER uses a palette consisting of 16 shades of gray.  To
  15. make your patterns match, you must use the same palette when you draw
  16. the picture.  In DeluxePaint, for example, you would set color 0 as
  17. black and color 15 as white, and create a range of shades between
  18. them.  (If this makes it hard to see the DPaint icons, turn the
  19. brightness up on your monitor).
  20.     If you use a 32-color screen instead of a 16-color one, colors
  21. 16-31 should repeat the 16 shades of gray in 0-15.
  22.     You can also use pictures you have previously created: in
  23. DPaint, you would set up the palette, load the picture as a brush, and
  24. use the Remap function under the Brush menu.
  25.     Save the picture as a 16- or 32-color lo-res IFF screen.  A
  26. word of caution: on a 512K Amiga, TRACER will crash if the pattern is
  27. too big.  160 pixels by 100, or one-fourth of a lo-res screen, is a
  28. safe size.  It is also best to put the pattern somewhere in the middle
  29. of the screen, as AmigaBASIC has borders around the windows which will
  30. cut off some of your pattern if it is too close to the edge of the
  31. screen.
  32.  
  33.             - Using IFFtoPAT.BAS -
  34.  
  35.     Use AmigaBASIC to run IFFtoPAT.BAS.  You will need to have the
  36. three included '.bmap' files (graphics.bmap, exec.bmap, dos.bmap) on
  37. the same disk as AmigaBASIC, or you will need to use the CHDIR command
  38. in BASIC to change to the directory where you have these '.bmap' files
  39. stored.  They are necessary for loading the IFF file.
  40.     The program is fairly self-explanatory.  When the picture has
  41. been loaded, move the mouse to one corner of the pattern and press the
  42. button.  Move the mouse to the opposite corner and press the button
  43. again; the area will be selected and IFFtoPAT.BAS will save it as a
  44. pattern.  I strongly suggest that you save the pattern ('Output filename')
  45. in RAM:.
  46.  
  47.             - Some tips for TRACER -
  48.  
  49.     TRACER will run about twice as fast if, after starting it, you
  50. flip back to the Workbench screen using Amiga-N.  This also lets you see
  51. if your pattern is big enough to have caused a Guru error.
  52.     Sixteen shades of gray may not seem much to work with, but you
  53. can do some nice effects with gradient fill if you have Aegis Images or
  54. DPaint II.
  55.  
  56.  
  57.                 - Misc. -
  58.  
  59.     This program is freely redistributable, etc.
  60.  
  61.             Arthur Blume
  62.             January 29, 1987
  63.