home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / graphuti / fimaps.zip / FIMAPS.DOC < prev    next >
Text File  |  1993-10-30  |  15KB  |  288 lines

  1. FIMAPS 1.0  -  Fractint Map Creation Program
  2.  
  3.                                ┌──────────────┐
  4.                                │ Introduction │
  5.                                └──────────────┘
  6. This program creates smooth 256-color palette maps for use by Fractint.
  7. It requires at least a VGA video card and monitor capable of 320x200x256.
  8. The program is in the public domain.
  9.  
  10. *** It is probably not necessary to read this doc in order to use the program
  11. *** EXCEPT, please read the Running External Programs section toward the end.
  12. *** Also, the configuration file that comes with FIMAPS is set up for viewing
  13. *** GIFs only in 320x200x256 mode.  This can easily be changed for viewing
  14. *** higher resolution SVGA modes.  See Viewing GIFs and Configuration.
  15. *** The .ICO icon file is for OS/2, not Windows.
  16.  
  17. What it does
  18. ------------
  19. This program creates 'smooth' 256-color palette maps for use with Fractint;
  20. 'smooth' meaning that all the colors gradually blend into each other.
  21. For example, if the user selects 6 for the number of ranges the program will
  22. select 6 random colors evenly spaced along the 256-color palette and then
  23. gradually blend the in-between colors. This should be obvious when you run the
  24. program.  The program can also do 'neon' effects where every other color in
  25. the range is random and the other is a single, user selected color.  If black
  26. is selected for the neon color, it will produce an effect like the NEON.MAP
  27. that comes with Fractint.  This program's main purpose is to create random maps
  28. (similar to hitting the <enter> key in Fractint) so except for the 'neon' color
  29. the user cannot select the colors.
  30.  
  31. When the program creates a map that you like you can save it to a .MAP ASCII
  32. file that is compatible with Fractint. Other programs, such as IMPROCES, can
  33. also use maps in this format.
  34. By shelling to a picture viewing program, FIMAPS can display an image with one
  35. of it's palettes and you can change palettes with the image on screen.
  36. John Bridges' freeware program PICEM is included for this purpose, but you can
  37. use your favorite picture viewing program instead.
  38.  
  39. The Program
  40. -----------
  41. FIMAPS was written in Clarion Professional Developer 2.1 along with Jay Cotton's
  42. PCX3 LEM (a shareware third party Language Extension Module) and AKA Tools 2.5
  43. (a commercial third party LEM that provides access to DOS functions, low level
  44. system calls, etc.)
  45. Since FIMAPS is in the public domain I have included the source code although
  46. I doubt if many of you have access to a Clarion compiler.
  47. However, except for the screen handling stuff, Clarion is very similar to
  48. BASIC, C, PASCAL, etc. so if you would like to see how I create the palettes you
  49. can probably figure it out.
  50.  
  51. FIMAPS is in the public domain but I would hope that if you hack it, you will
  52. give credit where credit is due and take the blame when blame is due.
  53. However please note that PICEM, although free, is NOT public domain.
  54.  
  55. Any comments or bug reports would be very much appreciated.  I can be reached
  56. on the RIME Fractal Conference or by mail at the following address:
  57.  
  58. Nick Grasso
  59. 4092 Murphy Road
  60. Thompson, Ohio 44086
  61. U.S.A.
  62.  
  63.                                 ┌─────────────┐
  64.                                 │ Main Screen │
  65.                                 └─────────────┘
  66. To move between the fields on the screens press the Down Arrow, Tab, or Enter to
  67. go to the next field or the Up Arrow, Shift-Tab, or Escape to go to the previous
  68. field.  Pressing Escape will also reset a field to its previous value and
  69. pressing Escape on the first field will exit the screen or window.
  70. Press one of the Function Keys shown on the bottom of the screen to do something
  71. besides move around the fields.
  72.  
  73. Fields
  74. ------
  75. No. of color ranges: The number of random colors that the program will create.
  76.   This must be a number between 2 and 255. The program will create this many
  77.   random colors evenly spaced between 1 and 255 and blend the in-between colors.
  78.   If you select 255, you will just get 255 random colors. If you are going to
  79.   use Neon, this should be an even number (see the Neon field).
  80.  
  81. Repeat every: If this is not 0, the color ranges will be repeated. For example,
  82.   if No. of color ranges is 18 and Repeat every is 3, the program will choose
  83.   only 3 random color ranges that will be repeated 6 times. This number must be
  84.   greater than 1 and less than the No. of color ranges.  For best results, it
  85.   should be an even multiple of the No. of color ranges.
  86.  
  87. Neon: If you enter Y (yes), FIMAPS will use a color that you define and make
  88.   every other color random. If you use Neon, the no. of color ranges should be
  89.   an even number, otherwise the last range of palette colors will all be the
  90.   same.
  91.  
  92. Neon color: These fields are only used if you selected Yes for Neon. They are
  93.   the 3 color components (Red,Green,Blue) of the Neon color. Enter numbers
  94.   between 0 and 63. If you use 0-0-0 (black) it will make a map like NEON.MAP
  95.   that comes with Fractint.
  96.  
  97. Set color 0: If this is N (no), the program will not mess with color 0, that is,
  98.   it will be set to 0-0-0 (black) and will not take part in color cycling.
  99.  
  100. Save map filename: The [path\]filename of the file to save the ASCII map file.
  101.  
  102. Prompt if file exists: If you enter Y (yes) the program will ask first if you
  103.   hit F6 to save a map file and it already exists, otherwise it will overwrite
  104.   any existing file without asking.
  105.  
  106. View GIF filename: The [path\]filename of the GIF file that you want to view.
  107.   See Displaying GIFs.
  108.  
  109. Function Keys
  110. -------------
  111. Press one of these at any time to make the program actually do something.
  112.  
  113. F1 - Help: Don't expect too much from this key.
  114.  
  115. F2 - Configuration: This is where you specify which programs are run when F5 or
  116.   F7 is hit.  You can also specify these options in the FIMAPS.CFG file so you
  117.   don't have go to through this configuration each time you run FIMAPS.
  118.   (See Configuration)
  119.  
  120. F3 - Exit: Return to from whence you came.
  121.  
  122. F4 - View current map: This will re-display the current map.  If you haven't yet
  123.   created a map by hitting F9, it will first read the default map from your
  124.   video card - this may take some extra time.
  125.  
  126. F5 - View GIF.  If you haven't yet created a map, the note for F4 applies.
  127.   If the 'View GIF filename' is blank or the file doesn't exist, a scrolling
  128.   list of all the GIFs in the current directory will be brought up and you can
  129.   select one.  You can also enter wildcards, e.g., C:\PICS\T*.PCX.
  130.   (See Displaying GIFs)
  131.  
  132. F6 - Save current map: Writes an ASCII file compatible with Fractint's .MAP
  133.   files.  Note that the file will contain a '<' to the right of each random
  134.   color the program selected.  The colors in between have been 'blended'.
  135.   I used this for debugging but I thought I would leave it in.  However, these
  136.   will not appear if you have done any color cycling.
  137.  
  138. F7 - Execute another program as defined in your configuration.
  139.      (See Running External Programs)
  140.  
  141. F8 - Execute any DOS command. (See Running External Programs)
  142.  
  143. F9 - Create map: Creates and displays a new color map based on the fields
  144.   currently on the screen.
  145.  
  146.                               ┌─────────────────┐
  147.                               │ Displaying GIFs │
  148.                               └─────────────────┘
  149. Since Clarion doesn't have any built in graphics capabilities and I don't know
  150. of any third party extensions to display GIFs, FIMAPS must shell to an external
  151. program to display an image when F5 is hit.  This program must have the
  152. capability to display the image and then exit leaving the image on the screen
  153. and not resetting the video mode.  FIMAPS will then be able to manipulate the
  154. palette while the image is on the screen.  Note that FIMAPS is not limited to
  155. GIFs; you can specify any image the external program is capable of displaying.
  156. The freeware program PICEM is included for this purpose.  Note that the
  157. FIMAPS.CFG configuration file specifies PICEM (actually TPICEM, the 'tiny'
  158. version) at a resolution of 320x200x256.  To display higher resolutions change
  159. the /v:l parameter to whatever you want (see PICEM.DOC).
  160.  
  161. If you have a favorite picture viewing program, you can use it instead of PICEM.
  162. The only requirement is that it must be able to display a picture from a command
  163. line prompt and then exit but leaving the picture on the screen.
  164. This program, along with any necessary command line parameters, are specified
  165. in either FIMAPS.CFG or by pressing F2 on the Main Screen.
  166. I have tested FIMAPS with 3 other popular picture viewing programs.
  167. Use the following command line parameters:
  168.  
  169.   PICEM (or TPICEM) /V:x /E /K
  170.   VPIC /A /R
  171.   GDS /S /Z0 /X
  172.   CSHOW
  173.  
  174. For PICEM, replace x with the video mode you want, e.g., /V:L for 320x200x256,
  175. /V:S for SVGA 640x480x256, /V:T for SVGA 800x600x256 (see PICEM.DOC for others).
  176. *** I have noticed that PICEM 2.7 (the version included here) does not display
  177. *** 1024x768x256 GIFs on my system.  There is a later version (3.01d) but that
  178. *** version doesn't run properly on my system at all.
  179.  
  180. VPIC is my favorite since it is the only one that will run in existing memory
  181. on my machine; it decodes the picture directly to video memory.
  182. Also, unlike PICEM, it will try to pick the correct video mode based on the
  183. size of the picture if you use the /A parameter.
  184. CSHOW is a special case because you must append '+X' to the end of the filename.
  185. FIMAPS takes this into account.  If the string 'cshow' is anywhere on the
  186. View GIF command, it will automatically append '+X' to the View GIF filename.
  187.  
  188.                           ┌────────────────────────┐
  189.                           │ While in Graphics Mode │
  190.                           └────────────────────────┘
  191. While a picture or a map is on the screen, i.e., after you hit F4 or F5, you can
  192. create a new map or cycle the colors by pressing one of the following keys.
  193. You will note that FIMAPS is much slower than Fractint when displaying maps and
  194. cycling colors.  Sorry, but I'm not young enough to code in assembly language.
  195.  
  196.   F9 or Enter creates a new color map
  197.   > or . color cycles forward one time
  198.   < or , color cycles backward one time
  199.   1 thru 0 color cycles forward or backward times 10, e.g., 1 will cycle 10
  200.     colors, 2 will cycle 20 colors, 0 will cycle 100 colors
  201.   + or gray + specifies forward color cycling for 1 thru 0
  202.   - or gray - specifies backward color cycling for 1 thru 0
  203.   Any other key returns you to the previous screen
  204.  
  205. The +/- do not color cycle; they only determine which direction to color cyle
  206. if 1 thru 0 is hit. > and < will also set the direction for 1 thru 0.
  207.  
  208. While a map is on the screen you can hit F5 to display the picture specified
  209. by View GIF filename.  However, unlike pressing F5 on the Main Screen, if this
  210. file doesn't exist, a list of files in the current directory will not appear.
  211. You will be returned to the Main Screen where you have to press F5 again if you
  212. want to bring up a list of files.
  213.  
  214. When you have a color map that you like you must return to the Main Screen in
  215. order to save it to a file. FIMAPS does not have the ability to read .MAP files
  216. from disk or to save .GIF images to disk.
  217.  
  218.                                ┌───────────────┐
  219.                                │ Configuration │
  220.                                └───────────────┘
  221. When you run FIMAPS, it looks for a file called FIMAPS.CFG in the current
  222. directory.  If it's not there, it looks in the directory that FIMAPS.EXE is in.
  223. This configuration file tells FIMAPS what program to run when F5 or F7 is hit.
  224. The FIMAPS.CFG that comes with FIMAPS specifies TPICEM as the F5 program and
  225. FRACTINT as the F7 program. You can change these to whatever you want - see the
  226. FIMAPS.CFG file itself for its format.
  227. Also, these can be changed by hitting F2 on the Main Screen to bring up the
  228. Configuration Screen.  However, the configuration file saves you from doing this
  229. every time you run FIMAPS.  The fields on the Configuration Screen are:
  230.  
  231. View GIF command: this is the program (including any command line parameters)
  232.   that will display the image specified on the 'View GIF filename' field on the
  233.   main screen (See Displaying GIFs).  Specify the \directory if this program
  234.   isn't on your path.
  235.  
  236. Run in existing memory: enter N or Y - see Running External Programs below.
  237.  
  238. DOS command for F7: this is the program to run when F7 is hit.  This can be any
  239.   valid DOS command, program, or batch file - see Running External Programs.
  240.  
  241. Run in existing memory: enter N or Y - see Running External Programs below.
  242.  
  243. Screen text for F7: this is simply the text that will appear on the Main Screen
  244.   to remind you what will happen when you hit F7.
  245.  
  246.                          ┌───────────────────────────┐
  247.                          │ Running External Programs │
  248.                          └───────────────────────────┘
  249. When FIMAPS runs an external program or command via the F5, F7, or F8 key, it
  250. can do so in two ways.  It either runs the program in existing memory or it
  251. downloads most of itself to disk, runs the program, then reloads itself.
  252. Running in existing memory is faster but you are limited to the memory left
  253. after FIMAPS has hogged most of it.  The amount of memory left while FIMAPS is
  254. running is displayed in the upper left of the Main Screen.  This number is
  255. updated at various times but should not change too much.  Unless you are running
  256. DOS commands or small programs you should tell FIMAPS to NOT run in existing
  257. memory.
  258.  
  259. However, when not running in existing memory, you can set an environment
  260. variable CLATMP to tell FIMAPS where to put its memory image file. You can
  261. specify a RAM drive if you have one, e.g., type SET CLATMP=D:\ at the DOS prompt
  262. before running FIMAPS if you have a RAM drive called D: If you don't specify
  263. CLATMP it defaults to the current directory.  The memory image file will be
  264. about 300K.  If you get a message saying Couldn't Create .TMP Memory Image File,
  265. then you probably don't have 300K available on the disk. Be careful when running
  266. external programs in existing memory as it is possible to crash your PC.
  267.  
  268. As noted above, VPIC is the only picture viewer I know of that can run in
  269. existing memory, at least on my machine.  You can speed up displaying GIFs even
  270. more by copying your GIF view program to your RAM drive before running FIMAPS.
  271.  
  272.                               ┌───────────────┐
  273.                               │ Miscellaneous │
  274.                               └───────────────┘
  275. You will no doubt notice that FIMAPS is considerably slower than Fractint when
  276. displaying color palettes and color cycling.  This program ain't written in
  277. assembly language!  FIMAPS runs much faster under OS/2 2.1 because of OS/2's
  278. 32 bit graphics system. I have included an icon for OS/2.
  279.  
  280. I plan on adding more special effects for future releases, for example, uneven
  281. spacing of colors, non-smooth transitions, and more user control over the colors
  282. selected. If you have an interesting algorithm for creating color maps, please
  283. let me know and I will try to program it into the next version.
  284. Any comments, criticisms, or bug reports are greatly appreciated.
  285. See the Introduction for my address.
  286.  
  287. --Nick--
  288.