home *** CD-ROM | disk | FTP | other *** search
-
- *** IFFtoPAT.BAS ***
-
- IFFtoPAT.BAS creates .PAT pattern files for use with the
- ray-tracing program TRACER. It allows you to load in 16- or 32-color
- IFF files and, using the mouse, select an area to be stored as a
- pattern.
-
- **** You must rename 'g.bmap' as 'graphics.bmap' ****
-
-
- - Making the IFF file -
-
- TRACER uses a palette consisting of 16 shades of gray. To
- make your patterns match, you must use the same palette when you draw
- the picture. In DeluxePaint, for example, you would set color 0 as
- black and color 15 as white, and create a range of shades between
- them. (If this makes it hard to see the DPaint icons, turn the
- brightness up on your monitor).
- If you use a 32-color screen instead of a 16-color one, colors
- 16-31 should repeat the 16 shades of gray in 0-15.
- You can also use pictures you have previously created: in
- DPaint, you would set up the palette, load the picture as a brush, and
- use the Remap function under the Brush menu.
- Save the picture as a 16- or 32-color lo-res IFF screen. A
- word of caution: on a 512K Amiga, TRACER will crash if the pattern is
- too big. 160 pixels by 100, or one-fourth of a lo-res screen, is a
- safe size. It is also best to put the pattern somewhere in the middle
- of the screen, as AmigaBASIC has borders around the windows which will
- cut off some of your pattern if it is too close to the edge of the
- screen.
-
- - Using IFFtoPAT.BAS -
-
- Use AmigaBASIC to run IFFtoPAT.BAS. You will need to have the
- three included '.bmap' files (graphics.bmap, exec.bmap, dos.bmap) on
- the same disk as AmigaBASIC, or you will need to use the CHDIR command
- in BASIC to change to the directory where you have these '.bmap' files
- stored. They are necessary for loading the IFF file.
- The program is fairly self-explanatory. When the picture has
- been loaded, move the mouse to one corner of the pattern and press the
- button. Move the mouse to the opposite corner and press the button
- again; the area will be selected and IFFtoPAT.BAS will save it as a
- pattern. I strongly suggest that you save the pattern ('Output filename')
- in RAM:.
-
- - Some tips for TRACER -
-
- TRACER will run about twice as fast if, after starting it, you
- flip back to the Workbench screen using Amiga-N. This also lets you see
- if your pattern is big enough to have caused a Guru error.
- Sixteen shades of gray may not seem much to work with, but you
- can do some nice effects with gradient fill if you have Aegis Images or
- DPaint II.
-
-
- - Misc. -
-
- This program is freely redistributable, etc.
-
- Arthur Blume
- January 29, 1987
-