| Important Note: PPM2BBC has now been rendered obsolete by IMAGE2BBC by Dreamland Studios |
40 * 31 * 3 different colours = 3720 potential definitions in the "Toy Story 2" style opener to EUG #50 |
I stumbled across PPM2BBC whilst looking for something else entirely and did not appreciate how it could be exploited to bring Electron owners a myriad of new screen designs until I had become fully versed in using ELECTREM, BBC EXPLORER and FDC. Not until one fateful afternoon did all the pieces of the puzzle fall into place and, immediately they did, there was an urge to set out just how the transfers could be achieved. Sadly, you've all had to wait until now for the article. This was because, without introducing all the utilities associated with ELECTREM emulation one by one, my previous attempts to explain PPM2BBC from scratch floundered - all the extrinsic information on each particular utility's idiosyncracies distracted the reader from the 'thread' of the narrative.
By now though, assuming you've been following this series on emulation, you will have experimented with FDC, ELECTREM and BBC Explorer and should find PPM2BBC only a little more difficult to use. OK? Get it here (from The BBC Lives) or here (from The Acorn Electron Haven) then and unzip it to a folder called 'ppm2bbc' on your hard drive then!
As is the norm, the best place to start with the utility itself is its name.
![]() IRFANVIEW is a free picture conversion tool! |
![]() A sample .jpg image found on the internet |
|
Firstly, design your masterpiece on your trusty Amiga. The Amiga screen size is identical to a Mode 1 or Mode 4 screen size on a BBC/Electron so you can see exactly how the screen will appear 'full-size' as you design it. If you have additional hardware such as a Digitiser or Screen Thief, you can poach and play around with still images from video tapes or Amiga games as well. Bear in mind that you will be limited in the number of colours. Finally, save the screen to an Amiga disk with a short filename plus the .iff suffix, for example 'PIC1.IFF'
Now, wouldn't it be nice if there was an Amiga equivalent of the FDC program? Sadly for us Amiga owners, there isn't and my limited research into the Amiga emulation scene has revealed that creating 'images' of Amiga disks is a long, expensive and tortious process. But searching 'www.google.com' for any answers on getting that .iff file on the Amiga disk into a format whereby it could be recognised by IRFANVIEW revealed it was possible by means of an Amiga utility known as MESSYDOS. A quick search of my library of Amiga disks and an equivalent utility (DOS2DOS) was unearthed.
Apparently, although Amigados (DOS = Disk Operating System) and Msdos (MS = Microsoft) are very different operating systems, both have the capability to write a file to the other. So it is perfectly possible, if you have a suitable DOS utility on the Amiga to transfer an Amiga file to a PC disk. On the DOS utility I found on MARTY'S UTILITY DISK, you are simply asked "Device to output to?" to which the answer is df1 (disk drive 1) and then "Command?" to which, after inserting a formatted PC disk in drive 1 and the Amiga disk containing 'PIC1.IFF' in drive 0, the input 'copy pic1.iff' results in a whirr of activity from both drives and hey presto you have 'PIC1.IFF' on a disk you can load into IRFANVIEW - all in a matter of seconds!
![]() One of EUG #47's "Face Off"s screens, designed in four colours on an Amiga 500 |
Fortunately there is a solution: just write to EUG with your postal address and I will send you a copy on Amiga disk. A word of warning though: Amigas cannot write to HD disks, only MD ones. So you need one of the 'older' 720k PC disks (or if you like, a disk without the "HD" symbol in the corner or "another Amiga disk") to transfer the .iff file to. You need to pre-format such a disk differently on your PC - if operating through Windows, click the notch altering the disk size from 1.44Mb to 720k. I have designated one disk in my collection THE PPM2BBC SHUTTLE DISK for this purpose to avoid difficulty.
Phew. That all got a little bit complicated, didn't it? So let me recap on all of this preparation before actually going on to use PPM2BBC (Yes,we haven't even used it yet!) in steps: Firstly, What To Do On Your Amiga:
The next step is a bit odd but is 100% necessaary for PPM2BBC to correctly recognise the 'true colours' of a picture you have designed. You must return to the "Edit" menu and select "Edit palette".
A window will show the colours that are present in your picture (typically red, green, white and black). Each of these colours must be rendered a 'true' colour. As you will appreciate, there are different shades of red, green, etc. PPM2BBC, when it operates, looks at the individual shade of each pixel in the Pixel Map it is converting and 'maps' it to an approximate "dithering" of BBC colours. Now while this is fine for photographs, what you do not want if you have designed a picture with basic filled in areas of, say, green and white (e.g. the "Toy Story 2" opener) is for the 'green' and 'white' to be "dithered" with say 'black' and 'red' pixels. If the 'green' and 'white' colours are not 'true' colours this is what PPM2BBC will attempt to do to replicate the "shade" of the original picture. The designs can then appear with a 'striped' effect.
Click on each colour in turn and ensure it has one or more of its RGB values at full (Number 255) and the others at 0. Black will be 0, 0, 0; White 255, 255, 255; Red 255, 0, 0; etc. If one of the colours forming your picture is not 'true' then select one of the other colours in the window to replace it. Don't worry if this means that, for example, you have to map bright yellow over dark green. Once the picture is correctly converted to a BBC/Elk screen, you can restore the colours you originally worked by the use of VDU 19 commands!
Nothing more is necessary now except to select 'Save file as' and select 'Portable Pixel Map (.PPM)' in the 'type' box. Always save to the same folder as you unzipped the PPM2BBC utility to. This saves a lot of time in the long run.
PPM2BBC runs in DOS mode so you need to be aware of the following commands (which I wasn't!) before being able to use it: cd .. (moves you 'up' in the directory 'tree'), ch <directory name> (moves you to a sub-directory of the one you are currently in). If calling the Msdos prompt from Windows, you usually begin in the 'Windows' directory and so will need to type 'cd ..' (ENTER), 'cd ppm2bbc' (ENTER). The commands in the PPM2BBC USER GUIDE will now be available to you.
The documentation for PPM2BBC is, ahem, as you might expect but is in fact reasonably clear. The command ppm2bbc -1pic1.ppm (ENTER) will convert the .ppm file to a Mode 1 screen; the command ppm2bbc -2pic1.ppm (ENTER) to a Mode 2 screen and so on. Nothing too complex about that then and a quick 'exit' command will take you back to Windows.
![]() Drag and drop the .bbc.inf file into BBC EXPLORER |
![]() The girl on an BBC or Electron. The dithering effect makes it clear this has been converted from a PC |
![]() An ad for the NAMCO GAMES SYSTEM designed on an Amiga with the BBC/Electron colour limitations in mind. Stunning! |
Open BBC EXPLORER, create a new disc image then "drag and drop" these files into it. Now load up ELECTREM, load this new disc image into it and *LOAD the file you have created in the usual way (e.g. *LOAD P.PIC1 3000 if Mode 1) and, if you've followed the steps correctly, you'll see that masterpiece originally designed using a professional Art Package on your Amiga or PC now gracing the screen of your Electron emulator. If it's worked then close all the utilities you've used so far and open up FDC, insert a blank Electron disc and type: 'fd0' (ENTER) 'write0 <disk image name>' (ENTER). Hey presto - your screen have been transported through the miracle of emulation from (Amiga to) PC to Electron!
One thing I have to point out now to all of you itching to get designing on your Amigas and carrying out the above procedure. When you read on a PC from a 720k disk (as you of course will do when you load the .iff file into IRFANVIEW), one of the internal options of the disk drive is altered and FDC then starts with a different default to reflect this. It is absolutely nothing to worry about and, in truth, I don't really understand why it happens. All I do know is that an extra command is required by FDC to correct it. So if you have loaded a file from an MD disc sometime in the session preceding loading FDC, type: 'fd0' (ENTER), 'cylinders80' (ENTER) before you 'write' the disk image. Otherwise only half of the disk image is written and you'll probably end up with a picture with no bottom section.
Although the above procedure is rather longwinded, and the chain of conversion is broken if one of the utilities is missing from your collection, once you've gone through it a few times it becomes as easy as 1-2-3. The Electron has very few discs full of pictures available for it and, used correctly, PPM2BBC can bring us a lot more.
To finish with a plug, I would suggest those sceptical of the results of PPM2BBC take a look at the EUG ANIMEWORLD collection at http://www.acornelectron.com/ - all of these images were converted from Amiga pictures in just an hour. 'Drawing' them on the Electron using my previous method would undoubtedly have taken over a week and, for these sort of time-savings alone, I simply cannot fault it!