home *** CD-ROM | disk | FTP | other *** search
/ Shareware Universe - The Gold Collection / Shareware Universe The Gold Collection.iso / graphics / rmorph / rmorph.go < prev    next >
Encoding:
Text File  |  1996-04-19  |  11.9 KB  |  292 lines

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