Home » Archimedes archive » Acorn User » AU 1993-08.adf » !Morphing_Morphing » Convert
Convert
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Acorn User » AU 1993-08.adf » !Morphing_Morphing |
Filename: | Convert |
Read OK: | ✔ |
File size: | 0760 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
Convert By Robin Barnes and Mark Moxon Convert takes a sequence of sprite files (such as those produced by Morph) and creates a special Movie file for use with Animator. Movie files consist of sprites stored in a specially compressed format. The algorithm balances the need for a fast frame rate and a high compression ratio. To use Convert, double-click on it to load it onto the iconbar. Click on the icon to bring up the Convert dialogue box. The 'Movie file' icon should contain the pathname of the Movie file to be created. Either type in a full pathname into the writable icon, or click on the right arrow, type in a filename and drag the icon to a directory. The 'Last frame' icon should contain the number of the last sprite file to be loaded, so if you have sprite files Sprite0 through to Sprite23, then this icon should contain 23. Clicking on the arrows increases or decreases the number, and clicking on the icon allows you to type in a number directly. 'Loop' means the animation jumps straight back to the start when it ends; 'Cycle' means the animation plays from start to end, and then plays backwards from end to start. If 'Scroll bars' is switched on, then the resultant animation window will have scroll bars. The 'Sprite file' icon contains the pathname of the sprite files to convert. Either type in a full pathname into the writable icon (missing off the numbers from the filenames), or drag one of the sprite files to the window; the number will be stripped off, and the filename entered in the writable icon. To create the Movie file, click on 'OK'. Note: When the Convert application is run, it grabs all the memory from the Next slot. This amount must be enough to load all the sprites in the animation, so if you get a memory related error (such as 'No room for this DIM'), quit Convert, increase the amount of memory in the Next slot, and try again.
00000000 43 6f 6e 76 65 72 74 0a 42 79 20 52 6f 62 69 6e |Convert.By Robin| 00000010 20 42 61 72 6e 65 73 20 61 6e 64 20 4d 61 72 6b | Barnes and Mark| 00000020 20 4d 6f 78 6f 6e 0a 0a 43 6f 6e 76 65 72 74 20 | Moxon..Convert | 00000030 74 61 6b 65 73 20 61 20 73 65 71 75 65 6e 63 65 |takes a sequence| 00000040 20 6f 66 20 73 70 72 69 74 65 20 66 69 6c 65 73 | of sprite files| 00000050 20 28 73 75 63 68 20 61 73 20 74 68 6f 73 65 20 | (such as those | 00000060 70 72 6f 64 75 63 65 64 20 62 79 0a 4d 6f 72 70 |produced by.Morp| 00000070 68 29 20 61 6e 64 20 63 72 65 61 74 65 73 20 61 |h) and creates a| 00000080 20 73 70 65 63 69 61 6c 20 4d 6f 76 69 65 20 66 | special Movie f| 00000090 69 6c 65 20 66 6f 72 20 75 73 65 20 77 69 74 68 |ile for use with| 000000a0 20 41 6e 69 6d 61 74 6f 72 2e 20 4d 6f 76 69 65 | Animator. Movie| 000000b0 0a 66 69 6c 65 73 20 63 6f 6e 73 69 73 74 20 6f |.files consist o| 000000c0 66 20 73 70 72 69 74 65 73 20 73 74 6f 72 65 64 |f sprites stored| 000000d0 20 69 6e 20 61 20 73 70 65 63 69 61 6c 6c 79 20 | in a specially | 000000e0 63 6f 6d 70 72 65 73 73 65 64 20 66 6f 72 6d 61 |compressed forma| 000000f0 74 2e 20 54 68 65 0a 61 6c 67 6f 72 69 74 68 6d |t. The.algorithm| 00000100 20 62 61 6c 61 6e 63 65 73 20 74 68 65 20 6e 65 | balances the ne| 00000110 65 64 20 66 6f 72 20 61 20 66 61 73 74 20 66 72 |ed for a fast fr| 00000120 61 6d 65 20 72 61 74 65 20 61 6e 64 20 61 20 68 |ame rate and a h| 00000130 69 67 68 0a 63 6f 6d 70 72 65 73 73 69 6f 6e 20 |igh.compression | 00000140 72 61 74 69 6f 2e 0a 0a 54 6f 20 75 73 65 20 43 |ratio...To use C| 00000150 6f 6e 76 65 72 74 2c 20 64 6f 75 62 6c 65 2d 63 |onvert, double-c| 00000160 6c 69 63 6b 20 6f 6e 20 69 74 20 74 6f 20 6c 6f |lick on it to lo| 00000170 61 64 20 69 74 20 6f 6e 74 6f 20 74 68 65 20 69 |ad it onto the i| 00000180 63 6f 6e 62 61 72 2e 20 43 6c 69 63 6b 0a 6f 6e |conbar. Click.on| 00000190 20 74 68 65 20 69 63 6f 6e 20 74 6f 20 62 72 69 | the icon to bri| 000001a0 6e 67 20 75 70 20 74 68 65 20 43 6f 6e 76 65 72 |ng up the Conver| 000001b0 74 20 64 69 61 6c 6f 67 75 65 20 62 6f 78 2e 0a |t dialogue box..| 000001c0 0a 54 68 65 20 27 4d 6f 76 69 65 20 66 69 6c 65 |.The 'Movie file| 000001d0 27 20 69 63 6f 6e 20 73 68 6f 75 6c 64 20 63 6f |' icon should co| 000001e0 6e 74 61 69 6e 20 74 68 65 20 70 61 74 68 6e 61 |ntain the pathna| 000001f0 6d 65 20 6f 66 20 74 68 65 20 4d 6f 76 69 65 20 |me of the Movie | 00000200 66 69 6c 65 20 74 6f 0a 62 65 20 63 72 65 61 74 |file to.be creat| 00000210 65 64 2e 20 45 69 74 68 65 72 20 74 79 70 65 20 |ed. Either type | 00000220 69 6e 20 61 20 66 75 6c 6c 20 70 61 74 68 6e 61 |in a full pathna| 00000230 6d 65 20 69 6e 74 6f 20 74 68 65 20 77 72 69 74 |me into the writ| 00000240 61 62 6c 65 20 69 63 6f 6e 2c 20 6f 72 0a 63 6c |able icon, or.cl| 00000250 69 63 6b 20 6f 6e 20 74 68 65 20 72 69 67 68 74 |ick on the right| 00000260 20 61 72 72 6f 77 2c 20 74 79 70 65 20 69 6e 20 | arrow, type in | 00000270 61 20 66 69 6c 65 6e 61 6d 65 20 61 6e 64 20 64 |a filename and d| 00000280 72 61 67 20 74 68 65 20 69 63 6f 6e 20 74 6f 20 |rag the icon to | 00000290 61 0a 64 69 72 65 63 74 6f 72 79 2e 0a 0a 54 68 |a.directory...Th| 000002a0 65 20 27 4c 61 73 74 20 66 72 61 6d 65 27 20 69 |e 'Last frame' i| 000002b0 63 6f 6e 20 73 68 6f 75 6c 64 20 63 6f 6e 74 61 |con should conta| 000002c0 69 6e 20 74 68 65 20 6e 75 6d 62 65 72 20 6f 66 |in the number of| 000002d0 20 74 68 65 20 6c 61 73 74 20 73 70 72 69 74 65 | the last sprite| 000002e0 0a 66 69 6c 65 20 74 6f 20 62 65 20 6c 6f 61 64 |.file to be load| 000002f0 65 64 2c 20 73 6f 20 69 66 20 79 6f 75 20 68 61 |ed, so if you ha| 00000300 76 65 20 73 70 72 69 74 65 20 66 69 6c 65 73 20 |ve sprite files | 00000310 53 70 72 69 74 65 30 20 74 68 72 6f 75 67 68 20 |Sprite0 through | 00000320 74 6f 0a 53 70 72 69 74 65 32 33 2c 20 74 68 65 |to.Sprite23, the| 00000330 6e 20 74 68 69 73 20 69 63 6f 6e 20 73 68 6f 75 |n this icon shou| 00000340 6c 64 20 63 6f 6e 74 61 69 6e 20 32 33 2e 20 43 |ld contain 23. C| 00000350 6c 69 63 6b 69 6e 67 20 6f 6e 20 74 68 65 20 61 |licking on the a| 00000360 72 72 6f 77 73 0a 69 6e 63 72 65 61 73 65 73 20 |rrows.increases | 00000370 6f 72 20 64 65 63 72 65 61 73 65 73 20 74 68 65 |or decreases the| 00000380 20 6e 75 6d 62 65 72 2c 20 61 6e 64 20 63 6c 69 | number, and cli| 00000390 63 6b 69 6e 67 20 6f 6e 20 74 68 65 20 69 63 6f |cking on the ico| 000003a0 6e 20 61 6c 6c 6f 77 73 20 79 6f 75 0a 74 6f 20 |n allows you.to | 000003b0 74 79 70 65 20 69 6e 20 61 20 6e 75 6d 62 65 72 |type in a number| 000003c0 20 64 69 72 65 63 74 6c 79 2e 0a 0a 27 4c 6f 6f | directly...'Loo| 000003d0 70 27 20 6d 65 61 6e 73 20 74 68 65 20 61 6e 69 |p' means the ani| 000003e0 6d 61 74 69 6f 6e 20 6a 75 6d 70 73 20 73 74 72 |mation jumps str| 000003f0 61 69 67 68 74 20 62 61 63 6b 20 74 6f 20 74 68 |aight back to th| 00000400 65 20 73 74 61 72 74 20 77 68 65 6e 20 69 74 0a |e start when it.| 00000410 65 6e 64 73 3b 20 27 43 79 63 6c 65 27 20 6d 65 |ends; 'Cycle' me| 00000420 61 6e 73 20 74 68 65 20 61 6e 69 6d 61 74 69 6f |ans the animatio| 00000430 6e 20 70 6c 61 79 73 20 66 72 6f 6d 20 73 74 61 |n plays from sta| 00000440 72 74 20 74 6f 20 65 6e 64 2c 20 61 6e 64 20 74 |rt to end, and t| 00000450 68 65 6e 0a 70 6c 61 79 73 20 62 61 63 6b 77 61 |hen.plays backwa| 00000460 72 64 73 20 66 72 6f 6d 20 65 6e 64 20 74 6f 20 |rds from end to | 00000470 73 74 61 72 74 2e 0a 0a 49 66 20 27 53 63 72 6f |start...If 'Scro| 00000480 6c 6c 20 62 61 72 73 27 20 69 73 20 73 77 69 74 |ll bars' is swit| 00000490 63 68 65 64 20 6f 6e 2c 20 74 68 65 6e 20 74 68 |ched on, then th| 000004a0 65 20 72 65 73 75 6c 74 61 6e 74 20 61 6e 69 6d |e resultant anim| 000004b0 61 74 69 6f 6e 20 77 69 6e 64 6f 77 0a 77 69 6c |ation window.wil| 000004c0 6c 20 68 61 76 65 20 73 63 72 6f 6c 6c 20 62 61 |l have scroll ba| 000004d0 72 73 2e 0a 0a 54 68 65 20 27 53 70 72 69 74 65 |rs...The 'Sprite| 000004e0 20 66 69 6c 65 27 20 69 63 6f 6e 20 63 6f 6e 74 | file' icon cont| 000004f0 61 69 6e 73 20 74 68 65 20 70 61 74 68 6e 61 6d |ains the pathnam| 00000500 65 20 6f 66 20 74 68 65 20 73 70 72 69 74 65 20 |e of the sprite | 00000510 66 69 6c 65 73 20 74 6f 0a 63 6f 6e 76 65 72 74 |files to.convert| 00000520 2e 20 45 69 74 68 65 72 20 74 79 70 65 20 69 6e |. Either type in| 00000530 20 61 20 66 75 6c 6c 20 70 61 74 68 6e 61 6d 65 | a full pathname| 00000540 20 69 6e 74 6f 20 74 68 65 20 77 72 69 74 61 62 | into the writab| 00000550 6c 65 20 69 63 6f 6e 0a 28 6d 69 73 73 69 6e 67 |le icon.(missing| 00000560 20 6f 66 66 20 74 68 65 20 6e 75 6d 62 65 72 73 | off the numbers| 00000570 20 66 72 6f 6d 20 74 68 65 20 66 69 6c 65 6e 61 | from the filena| 00000580 6d 65 73 29 2c 20 6f 72 20 64 72 61 67 20 6f 6e |mes), or drag on| 00000590 65 20 6f 66 20 74 68 65 0a 73 70 72 69 74 65 20 |e of the.sprite | 000005a0 66 69 6c 65 73 20 74 6f 20 74 68 65 20 77 69 6e |files to the win| 000005b0 64 6f 77 3b 20 74 68 65 20 6e 75 6d 62 65 72 20 |dow; the number | 000005c0 77 69 6c 6c 20 62 65 20 73 74 72 69 70 70 65 64 |will be stripped| 000005d0 20 6f 66 66 2c 20 61 6e 64 20 74 68 65 0a 66 69 | off, and the.fi| 000005e0 6c 65 6e 61 6d 65 20 65 6e 74 65 72 65 64 20 69 |lename entered i| 000005f0 6e 20 74 68 65 20 77 72 69 74 61 62 6c 65 20 69 |n the writable i| 00000600 63 6f 6e 2e 0a 0a 54 6f 20 63 72 65 61 74 65 20 |con...To create | 00000610 74 68 65 20 4d 6f 76 69 65 20 66 69 6c 65 2c 20 |the Movie file, | 00000620 63 6c 69 63 6b 20 6f 6e 20 27 4f 4b 27 2e 0a 0a |click on 'OK'...| 00000630 4e 6f 74 65 3a 20 57 68 65 6e 20 74 68 65 20 43 |Note: When the C| 00000640 6f 6e 76 65 72 74 20 61 70 70 6c 69 63 61 74 69 |onvert applicati| 00000650 6f 6e 20 69 73 20 72 75 6e 2c 20 69 74 20 67 72 |on is run, it gr| 00000660 61 62 73 20 61 6c 6c 20 74 68 65 20 6d 65 6d 6f |abs all the memo| 00000670 72 79 0a 66 72 6f 6d 20 74 68 65 20 4e 65 78 74 |ry.from the Next| 00000680 20 73 6c 6f 74 2e 20 54 68 69 73 20 61 6d 6f 75 | slot. This amou| 00000690 6e 74 20 6d 75 73 74 20 62 65 20 65 6e 6f 75 67 |nt must be enoug| 000006a0 68 20 74 6f 20 6c 6f 61 64 20 61 6c 6c 20 74 68 |h to load all th| 000006b0 65 20 73 70 72 69 74 65 73 0a 69 6e 20 74 68 65 |e sprites.in the| 000006c0 20 61 6e 69 6d 61 74 69 6f 6e 2c 20 73 6f 20 69 | animation, so i| 000006d0 66 20 79 6f 75 20 67 65 74 20 61 20 6d 65 6d 6f |f you get a memo| 000006e0 72 79 20 72 65 6c 61 74 65 64 20 65 72 72 6f 72 |ry related error| 000006f0 20 28 73 75 63 68 20 61 73 20 27 4e 6f 0a 72 6f | (such as 'No.ro| 00000700 6f 6d 20 66 6f 72 20 74 68 69 73 20 44 49 4d 27 |om for this DIM'| 00000710 29 2c 20 71 75 69 74 20 43 6f 6e 76 65 72 74 2c |), quit Convert,| 00000720 20 69 6e 63 72 65 61 73 65 20 74 68 65 20 61 6d | increase the am| 00000730 6f 75 6e 74 20 6f 66 20 6d 65 6d 6f 72 79 20 69 |ount of memory i| 00000740 6e 0a 74 68 65 20 4e 65 78 74 20 73 6c 6f 74 2c |n.the Next slot,| 00000750 20 61 6e 64 20 74 72 79 20 61 67 61 69 6e 2e 0a | and try again..| 00000760