home *** CD-ROM | disk | FTP | other *** search
/ World of Graphics / WOGRAPH.BIN / 548.RMORF.DOC < prev    next >
Text File  |  1993-05-08  |  12KB  |  309 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.                             Documentation for Rmorf
  19.  
  20.                                   Version 0.3
  21.  
  22.                                   May 8, 1993
  23.  
  24.                      Copyright (c) 1993 by Richard Goedeken
  25.  
  26.  
  27.                      A product of Fascinations Software Co.
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. Legal Stuff:
  59.  
  60.      This software (Rmorf Version 0.3 unregistered) is shareware.  You are
  61. allowed to copy it, distribute it, upload it to BBSs, and use it.  You may
  62. not, however change or alter the files in any way.  The archive should
  63. contain the following files:
  64.  
  65.           RMORF.EXE
  66.           EGAVGA.BGI
  67.           TRIP.CHR
  68.           SANS.CHR
  69.           GIRL.TGA
  70.           CHEETA.TGA
  71.           GIRLCHTA.MTX
  72.           RMORF.DOC
  73.           REGISTER.DOC
  74.           AAPLAY.EXE
  75.  
  76.      If any of these files are missing, then you have an incomplete copy of
  77. Rmorf and should contact Fascinations Software to receieve a full copy.
  78.  
  79.      Despite the unlikelyhood of your computer blowing up when you run this
  80. program: Fascinations Software, and Richard Goedeken, are not in any way
  81. liable for any damages incurred by the use of this software.  The user
  82. assumes full responsibility for the use of this software.
  83.  
  84.  
  85.  
  86. ***************************************************************************
  87.  
  88. History of the program:
  89.  
  90.      I was flipping through a magazine a couple weeks ago, and saw a small
  91. little box on morphing, which looked like an interesting topic to me, so I
  92. logged on to a large computer system and downloaded some files on morphing.
  93.  
  94. The software that I got was very interesting, but it was slow and it
  95. crashed frequently.  So I started programming, and 11 days later Rmorf is
  96. done!
  97.  
  98. Version 0.1 was the first release, distributed 4/19/93
  99.  
  100. Version 0.2 fixed compatibility bug with Dos 5.00 not allowing the user to
  101.             load and save matrices.  Distributed 4/20/93
  102.  
  103. Version 0.3 Displays each morphed frame for a very brief time after         
  104.             morph is completed to show the the program was actually         
  105.             working.  Now outputs Targa files, Gif files, and FLI animation
  106.             files.  Also allows user to specify full morph or just a warp.
  107.             New matrix Flip button which swaps the matrices.  Allows        
  108.             user to press Escape while specifying a filename to load/save. 
  109.             Also fixes matrix bug which locked up computer occasionally    
  110.             while morphing matrices with points very close together.
  111.             Distributed 5/8/93
  112.  
  113. ***************************************************************************
  114.  
  115. History of Fascinations Software and Upcoming Software:
  116.  
  117.      Fascinations software is a privately owned company formed about 6
  118. months ago by Richard Goedeken.  We do all kinds of programming, and our
  119. favourite language is assembly language.  I have written two programs in my
  120. business series. The first is a product inventory system, and the second
  121. program in this series, an extremely advanced checkbook program, is due for
  122. release in a couple of weeks.  The Midnight Hacker division of Fascinations
  123. software company, my video game subsidiary, is also going to release a
  124. ground-breaking Super-VGA action game by November first or so.  Rmorf is
  125. my first try at image processing software.
  126.  
  127. ***************************************************************************
  128.  
  129. How to reach the author:
  130.  
  131.      Since Fascinations software is very new, I would like to hear any
  132. comments or suggestions from the users of my software.  I appreciate your
  133. feedback very much.
  134.  
  135.      The author (Richard Goedeken) may be reached several ways.  The best
  136. way to contact me is through Compuserve [70304,1065].  Another good way is
  137. to call my support BBS, The Digital Phantom, at 319-396-4492 and leave a
  138. message to the Sysop or Richard Goedeken.  You may also write to me at the
  139. following address:
  140.  
  141.           Richard Goedeken
  142.           6400 North Glen Drive
  143.           Palo, IA 52324-9720
  144.  
  145.      It is also possible but unlikely that you could reach me by phone.  My
  146. home phone number is 319-396-4798.  You can try to call after 4:00pm (CST)
  147. on weekdays or all day weekends, but you don't have a very good chance of
  148. contacting me (I tend to be very busy.)
  149.  
  150.  
  151. ***************************************************************************
  152.  
  153. Registration benefits:
  154.  
  155.      This is the unregistered version of Rmorf.  You are free to use it
  156. and distribute it, but it only supports 320x200 images.  If you register
  157. this program, you will be able to morph images with higher resolutions
  158. (up to 1024x768 with enough XMS), you will have your own registered copy,
  159. and you will receive master disks.
  160.  
  161. To register, simply print out the REGISTER.DOC file, fill it out, and send
  162. it to me with $20 in U.S. currency.
  163.  
  164. (The registered version should be availabe around May 21st, 1993, but you
  165. can send in registrations any time.)
  166.  
  167. ***************************************************************************
  168.  
  169.  
  170. Overview of program:
  171.  
  172.      Basically, this program takes two images and smoothly blends them into
  173. each other.  There are several limitations to this program, however:
  174.  
  175.    1. Only 320x200 images are supported in the unregistered version.
  176.    2. Input files MUST be 320x200x24bit uncompressed targa images
  177.       (If you wonder why I chose uncompressed targas, the reason is because
  178.  
  179.       the uncompressed targas are usually smaller than the compressed      
  180.  
  181.       ones!)
  182.    3. You must have 938k of XMS.
  183.       (If you wonder why I chose XMS rather than EMS, it is because XMS is 
  184.  
  185.       faster, easier to program, and much better than EMS)
  186.    4. Output files are 320x200x24 bit Targa files, Gif files, or FLI        
  187.       animation files.
  188.  
  189.      Despite these small limitations, the program does have a BIG
  190. advantage: speed.  This software was written in C with all of the crucial
  191. parts in assembly language.  Consequently, I can morph a frame every 7.2
  192. seconds on my 386 33mhz computer WITHOUT a math coprocessor. (A math
  193. coprocessor wont speed things up, because I used integer math rather than
  194. floating point.) The only other morphing program that I know about for the
  195. PC takes about 10-50 minutes per frame.
  196.  
  197.  
  198. How to use the software:
  199.  
  200.      The format for running Rmorf is:
  201.  
  202. RMORF filename.TGA filename.TGA
  203.  
  204.      As stated earlier, the targa files must be 320x200x24 bits
  205. uncompressed, or otherwise you will get an error. I have included two targa
  206. files, GIRL.TGA and CHEETA.TGA, if you don't have access to a targa
  207. convertor.
  208.      Once you have run the program, you should get a 640x350x16 screen with
  209. your pictures in gray at the top.  There should be red borders around the
  210. images.  There will also be a menu at the bottom.
  211.      Now that you have loaded your two graphic files, you will want to
  212. start putting up a grid.  The process of morphing two images together is
  213. not difficult.  You need to first get some lines on your grid.  To do this,
  214. just put the mouse cursor close to the border of one of the images (it has
  215. to be withing several pixels), and hit the right mouse button.  This will
  216. put a line on the image. If you clicked on the vertical edge of the
  217. picutre, a horizontal line will appear.  If you clicked on the horizontal
  218. edge of the picture, a vertical line will appear.  (You can have a maximum
  219. of 32 horizontal lines and 32 vertical lines.)  You will need to put
  220. several (10-20 depending on the complexity of the image) horizontal lines
  221. and vertical lines on the grids.  Note that when you put a new line on one
  222. image, a new line will also appear on the other image.
  223.      Once you have the grid lines done, you need to move the points around.
  224.  
  225. To move a point, just place the mouse cursor close to it (within 10
  226. pixels), press the left mouse button, drag it to where you want it, and
  227. release the mouse button.  You need to place the points so they correspond
  228. between the two grids.  For example, if you were doing a morph between the
  229. included girl and cheeta, you would put several points outlining the eyes
  230. of the girl, and you place the corresponding points on the other image
  231. around the eyes of the cheeta.
  232.      If the above made no sense to you, just run the program with the
  233. following command:
  234.  
  235.    RMORF GIRL.TGA CHEETA.TGA
  236.  
  237.      Then, load the 'GIRLCHTA' matrix.  When this matrix pops up, you
  238. should understand what I mean.
  239.  
  240.  
  241.      So that is the basic concept behind morphing.  Once you have placed
  242. all of your grid points, you should probably save the grid (just click on
  243. the save matrix box and enter a filename).
  244.      After you have saved the matrix, you will probably want to set the
  245. number of frames.  Note that each frame takes up 192,018 bytes, and there
  246. must also be an extra 100,000 bytes or so on your hard drive to hold the
  247. transfer matrices.  To change the number of frames, the starting frame, or
  248. the ending frame, just click on the appropriate box (the box that says
  249. 'ENDING FRAME' or whatever, NOT the box with the number in it).  After you
  250. have selected the number of frames, just click on the box that says 'GO',
  251. and you're off!  As the program does the actual morphing, several pixels in
  252. the very upper-left hand corner should switch colors.  So if your computer
  253. has been sitting for several minutes, the hard drive light isn't on, and
  254. those pixels aren't moving, then it probably crashed.  (This shouldn't
  255. happen, though.)
  256.  
  257.      If, for some reason, you decide that you don't want to do a morph
  258. while the program is morphing, you can press the <Esc> key and wait
  259. patiently for the program to finish the current frame, then it will
  260. relinquish control to you.
  261.  
  262.  
  263. Notes on new features for Version 0.3:
  264.  
  265.      FLI support is now available!!  I have included a public domain FLI
  266. viewing utility called AAPLAY so you can view the resulting FLI animation
  267. files.  There is a small button below the message box on the main screen of
  268. rmorf which will say 'TGA' on it.  At this point Rmorf outputs 24bit Targa
  269. files.  If you click it once, it will say Gif, and the output files will be
  270. Gifs.  If you click it again, the button will say FLI, and Rmorf will
  271. output FLI files
  272.      Generating Gif and Fli files takes longer than just TGA files because
  273. Rmorf has to remap the colors in the images and compress them.  If you are
  274. generating a Fli file, after the morphing is completed, the program will
  275. remap the colors, then it will convert all of the separate images into a
  276. Fli.  This takes a lot of hard drive space.  You should leave at least 200-
  277. 260k free per frame for the Fli file.  The resulting Fli will (obvoiusly)
  278. be smaller than this though, generally around 20-60k per frame.
  279.      If you are generating Gif files, after each frame is morphed, the
  280. computer will remap the image and save it as a Gif.  It may look as if the
  281. computer has locked up, but it probably hasn't.  It takes about 5-10
  282. seconds on my 386-33DX to do a color remap, so it takes a while.  Note that
  283. it must remap each frame individually, unlike the Fli, which only needs to
  284. remap once.
  285.      There is another new button underneath the message box which will say
  286. 'Morph' on it when you first run the program.  If you click this button, it
  287. will toggle to say 'Warp'.  In the warp mode, Rmorf only warps one matrix,
  288. and it doesn't mix the colors.  So now you can have fun by just morphing. 
  289. There are lots of possibilities for this option:  animations of pop cans
  290. crushing, re-arranging somebody's face, etc.
  291.      The last new button says 'Flip' on it.  This just swaps the two
  292. matrices when you click on it.
  293.  
  294.  
  295. Closing comments:
  296.  
  297.      Well, that's it.  You've made it through the manual and should (if
  298. you've read it all) understand basically how this program works.  Have fun!
  299.  
  300.  
  301.      Please register.
  302.  
  303.      Be watching for upcoming Fascinations Software releases.
  304.  
  305.  
  306.                                    Sincerely,
  307.                                    Richard Goedeken
  308.                                    (President, Fascinations Software)
  309.