home *** CD-ROM | disk | FTP | other *** search
/ Computerspiele Selbermachen / computerspieleselbermachen.iso / dta / dta2.txt < prev    next >
Text File  |  1994-10-09  |  7KB  |  219 lines

  1. Miscellaneous examples:
  2.  
  3. DTA ROCKET*.TGA /FC /OROCKET
  4.  
  5. Make a palette for all .TGA files starting with "ROCKET".
  6. Output the palette to an Animator palette file called "ROCKET.COL".
  7.  
  8. DTA SKY.GIF /L BEFORE.TGA MORF*.TGA AFTER.TGA
  9.  
  10. Build a multilayer flic.  SKY.GIF gets put in the background, and
  11. the pictures FIRST.TGA, a bunch of TGAs beginning with the string
  12. MORF, and LAST.TGA get superimposed over it.  SKY.GIF shows through
  13. any parts of the other pictures which are transparent.
  14.  
  15. This example assumes that the pictures BEFORE.TGA and AFTER.TGA
  16. had transparency added to them with my other program, DMorf
  17. (Rel. 1.1 or higher), and that the MORF*.TGA files are morphed
  18. pictures built with DMorf.
  19.  
  20. DTA PIC1 PIC2 PIC3 /FM /OXYZ
  21.  
  22. Make a palette for .TGA files "PIC1.TGA", "PIC2.TGA", and "PIC3.TGA"
  23. Output the palette to a PICLAB palette file called "XYZ.MAP".
  24.  
  25. DTA ROCKET* /OROCKET /DF
  26.  
  27. Make input from all .TGA files beginning with "ROCKET".
  28. Output to an animation file called "ROCKET.FLI".
  29. Dither the frames.
  30.  
  31. DTA ROCKET* /G /DO2 /P
  32.  
  33. Make input from all .TGA files beginning with "ROCKET".
  34. Map colors to grayscale.
  35. Dither, using ordered dither strength 2.
  36. Ping-pong it.
  37. Output to an animation with the default name of "ANIM.FLI"
  38.  
  39. DTA ROCKET
  40.  
  41. Make input from ROCKET.TGA.
  42. Output to an animation with the default name of "ANIM.FLI".
  43.  
  44. DTA @WING2.LST /S10 /OWING2.FLI
  45.  
  46. Make input from files listed in a text file called "WING2.LST".
  47. Set playback speed to "10".
  48. Output to an animation with the name of "WING2.FLI".
  49.  
  50. DTA BBB*.TGA AAA*.TGA /UPAL1.COL /UPAL2.MAP /OFRED
  51.  
  52. Make input from all .TGA files whose name begins with "BBB", and "AAA".
  53. NOTE:
  54.     The "BBB" files will appear in the animation before the "AAA" files.
  55.     The "BBB" files will be sorted alphabetically, and so will the
  56.     "AAA" files, but separately.
  57. Read in an Animator palette file called "PAL1.COL", and merge it with
  58.     a Piclab palette file called "PAL2.MAP".
  59.     Use this combined palette for the animation.
  60. Output to an animation with the name of "FRED.FLI".
  61.  
  62. DTA *.TGA /FG
  63.  
  64. Make .GIFs from all .TGAs in the current directory.
  65.  
  66. DTA SOMBRERO /FG /DR2 /G
  67.  
  68. Make a dithered grayscale .GIF from a file called SOMBRERO.TGA.
  69.  
  70. DTA LEFT*.TGA RGHT*.TGA /3D
  71.  
  72. Make a red/blue 3D .FLI file .
  73. Use the .TGA files beginning with "LEFT" as the red component
  74. And the ones beginning with "RGHT" as the blue component.
  75. NOTE: For this to work right, there must be an equal number of
  76.    "LEFT" and "RGHT" .TGAs.
  77. Output to an animation with the default filename of "ANIM.FLI"
  78.  
  79. DTA XXX* /FTYY /AA
  80.  
  81. Make input from .TGAs beginning with "XXX".
  82. Average all files.
  83. Output to a new Targa file called "YY.TGA".
  84. NOTE: averaging will work with up to 10 files, but no more.
  85.  
  86. DTA XXX*.TGA /T3 /DO3 /OZZZ
  87.  
  88. Make input from all .TGA files beginning with "XXX"
  89. Trail 3 frames.
  90. Use ordered dithering, strength 3.
  91. Output an animation called "ZZZ.FLI"
  92.  
  93. DTA XXX*.TGA /X3
  94.  
  95. Make input from all .TGA files beginning with "XXX"
  96. Expand 3.  Assuming 5 .TGA input files, this would create a 15 frame
  97. animation.
  98. Output an animation called "ANIM.FLI"
  99.  
  100. DTA *.GIF
  101.  
  102. Creates a file called ANIM.FLI from all .GIF files in the current
  103. directory.
  104.  
  105. DTA *.TGA /K2 /C2
  106.  
  107. Assuming 60 .TGA files, create a flic containing only 30 frames.
  108. Generate the palette from only 15 frames.
  109.  
  110. DTA *.GIF /SC
  111.  
  112. Create a flic from a bunch of GIF files, and rescale all the
  113. images to the screen size (320x200).
  114.  
  115. DTA *.TGA /R6 /SD240
  116.  
  117. Create a 640x480 FLC file from a bunch of TGA files.  Rescale each
  118. picture so that the depth is 240, but leave the width alone.
  119. This one is useful when you want to turn a bunch of 320x200
  120. pictures into a 640x480 flic... because 320x200 screens use a
  121. different aspect ratio than 640x480.  320x200 pictures look a
  122. bit squat when you display them in 640x480 mode, but 320x240 looks
  123. correct.
  124.  
  125. DTA FLIC1.FLI FLIC2.FLI /OFLIC3
  126.  
  127. Create a new flic by appending two existing flics.  Unlike my old
  128. FLAP program, DTA will create a new palette.
  129.  
  130. DTA FLIC.FLI /FG /NM
  131.  
  132. Create GIF files from the frames in FLIC.FLI.  The /NM is required
  133. to tell DTA *not* to generate an optimized palette.  That would be
  134. a waste of time, since a FLIC file already contains an optimized
  135. palette.
  136.  
  137. ----------------------------------------------------------------------
  138. Speed concerns:
  139.  
  140.   DTA is fastest when you use grayscale instead of a palette.
  141.  
  142.   If you let DTA generate its own palette, DTA is still
  143.   relatively speedy.  It gets (lots) slower if you dither.
  144.  
  145.   If you create an animation from .TGA files stored in an
  146.   archive file (.LZH, .ZIP, .ARJ), then DTA is REAL slow, because
  147.   it takes time to shell out to the de-archiving program.
  148.   ZIP files compress the least, but PKUNZIP is the fastest
  149.   dearchiver.  ARJ files compress really well, but the dearchiver
  150.   is the slowest.  LZH files compress well, but not as well as
  151.   ARJ, and LHA's speed is somewhere between ARJ and PKUNZIP.
  152.  
  153.   If you average multiple files or rescale pictures, that is going
  154.   to slow things down.
  155.  
  156. ----------------------------------------------------------------------
  157. Credits:
  158.  
  159.   To create palettes and select colors from palettes, this
  160.   program uses an algorithm that I found in an article called "A
  161.   Simple Method for Color Quantization:  Octree Quantization," by
  162.   Michael Gervautz and Werner Purgathofer, which can be found in
  163.   a book called "Graphics Gems," edited by Andrew S. Glassner.  I
  164.   recommend this book highly.
  165.  
  166.   The .FLI file format was explained in a document called
  167.   FLIDOC.TXT from Jim Kent's FLILIB.  I wasn't able to use this C
  168.   library in DTA, since I do my coding in Pascal, but the
  169.   document contained all the info I needed.  (Jim Kent is also
  170.   the guy who, with Tom Hudson, wrote TGAFLI, and who developed
  171.   Animator and Animator Pro.)
  172.  
  173.   More thanks to Jim Kent for his info about 640x480 .FLIs on
  174.   BIX.
  175.  
  176.   Thanks to Dan Farmer, Alexander Enzmann, Jeff Bowermaster,
  177.   and others for their excellent suggestions.
  178.  
  179.   Thanks to Dan Farmer for sprucing up this documentation
  180.   file.
  181.  
  182.   Thanks to Tim Wegner for talking me into finally adding GIF89a
  183.   input.
  184.  
  185.   Thanks to the Cafe Pamplona in Harvard Square for being such
  186.   a cool place to swill coffee and discuss ray-tracing and animation.
  187.  
  188. ----------------------------------------------------------------------
  189. Disclaimer:
  190.  
  191.   If you use DTA, you do so at your own risk.  I won't be held
  192.   responsible if it screws anything up.
  193.  
  194. ----------------------------------------------------------------------
  195. Support:
  196.  
  197.   If you've got any requests/bug reports/suggestions, send a message
  198.   to:
  199.     "David Mason" on the "You Can Call Me Ray" BBS, (708) 358-5611,
  200.     and on "The Graphics Alternative", (510) 524-2780,
  201.     and on "Channel 1" BBS, (617) 354-8873.
  202.     "76546,1321" on Compuserve.
  203.  
  204.   You'll probably get some kind of a response (maybe sooner, maybe
  205.   later)
  206.  
  207. ----------------------------------------------------------------------
  208. Money matters:
  209.  
  210.   DTA is a shareware program.  If you think this program is worth
  211.   it, send some money or some computer hardware or something to:
  212.  
  213.     David K. Mason
  214.     P.O. Box 181015
  215.     Boston, MA 02118
  216.  
  217.   I think $35 is an appropriate amount, but feel free to send more
  218.   or less.
  219.