DaDither image converter

handy tools that can assist in the development of new software
Post Reply
DecAns
Posts: 6
Joined: Sun Mar 10, 2024 7:17 pm
Contact:

DaDither image converter

Post by DecAns »

Hi.

I'm developing a converter of full-color images to various retro platform formats. The BBC Micro platform is also supported. You can convert images to modes 0, 1, 2, 4, 5. 2+NuLA mode is also supported (BBC file format is used).

I have a couple of questions:
1) I'm using PAR 13:12. Is this the correct PAR? Does NuLA use the same PAR?
2) Are there standards for overscan images?

Screenshots:

Image

Image

Hope it will be useful to someone.
brianmartin_2001
Posts: 419
Joined: Mon Jun 14, 2021 7:39 pm
Contact:

Re: DaDither image converter

Post by brianmartin_2001 »

Major congrats , that looks superb.

Sorry for my ignorance , but is Nula essential ( I assume for best results)
or can a regular Beeb produce similar?
Sysop of (the Night Owl BBS) nightowlbbs.ddns.net:6400
DecAns
Posts: 6
Joined: Sun Mar 10, 2024 7:17 pm
Contact:

Re: DaDither image converter

Post by DecAns »

brianmartin_2001 wrote: Wed Mar 13, 2024 1:26 pmis Nula essential?
The first screenshot is a picture for a regular BBC, the second screenshot is a picture for NuLA.
User avatar
fizgog
Posts: 618
Joined: Thu Jun 17, 2021 3:18 pm
Location: Nottinghamshire
Contact:

Re: DaDither image converter

Post by fizgog »

It's nice to see some development tools being created for the beeb, well done.

Looking forward to a release build
Pitfall, Gridrunner, Matrix: Gridrunner 2, LaserZone, AcornViewer, AcornPad
DecAns
Posts: 6
Joined: Sun Mar 10, 2024 7:17 pm
Contact:

Re: DaDither image converter

Post by DecAns »

fizgog wrote: Wed Mar 13, 2024 6:48 pmLooking forward to a release build
I forgot to give the download link :(

Windows x86 and x64 versions.
james
Posts: 330
Joined: Tue Aug 15, 2023 8:41 pm
Location: NE Hampshire
Contact:

Re: DaDither image converter

Post by james »

This seems to be the website, run through Google and translated into English
User avatar
tricky
Posts: 7695
Joined: Tue Jun 21, 2011 9:25 am
Contact:

Re: DaDither image converter

Post by tricky »

There is the dithertron web site too.
Are you planning on supporting the pictures where you can change the palette entries each scan line?
The elk can swap 4 palette entries, but the beeb can only easily do 2 with a full width image.
This is mostly for mode 1 without nula, but you could probably change 3 nula palette entries per scan line iirc h how you spec them. You could also arrange to have colours 8..15 used and swap them for their alternate flash colours pretty much for free.
There are a couple of threads around somewhere along with my code and possibly another image converter with the palette entry code.
DecAns
Posts: 6
Joined: Sun Mar 10, 2024 7:17 pm
Contact:

Re: DaDither image converter

Post by DecAns »

tricky wrote: Wed Mar 13, 2024 10:23 pmAre you planning on supporting the pictures where you can change the palette entries each scan line?
I am not a BBC Micro user and have no knowledge of the internals of the BBC Micro. So I can only do this if you provide me with more details.
tricky wrote: Wed Mar 13, 2024 10:23 pmThe elk can swap 4 palette entries, but the beeb can only easily do 2 with a full width image.
What is "elk"?
tricky wrote: Wed Mar 13, 2024 10:23 pmThis is mostly for mode 1 without nula
Does BBC allow me to change the palette in mode 1? Can I use any 4 of the 8 colors to create an image in mode 1?
tricky wrote: Wed Mar 13, 2024 10:23 pmyou could probably change 3 nula palette entries per scan line
Is there a file format specification for such files? Are there any examples of such files?
User avatar
tricky
Posts: 7695
Joined: Tue Jun 21, 2011 9:25 am
Contact:

Re: DaDither image converter

Post by tricky »

You can change part of the the palette at any time, so yes, mode 0 and 1 allow you to choose from the 8 basic colours and with appropriate code, this can be done per scan line, or even mid line with more complicated code.
The flaming colours can be stopped from flashing and there is a single register that controls which set of colours are visible, so if you had two non-flashing colours (0-7) and two flashing, the flashing ones could be swapped for their opposites very cheaply (my viewer didn't support this).
The Elk is there affectionate name for the Electron, like three beeb is for the BBC micro and then Arc or Archie for the Archimedes.
I'll try and find the thread, but from memory the file format was the screen data with two sets of 256 byes prepended where the byte encoded the palette entry to swap and the colour to swap it to. Sometimes it would swap to itself to keep the coffee simple.
User avatar
geraldholdsworth
Posts: 1401
Joined: Tue Nov 04, 2014 9:42 pm
Location: Inverness, Scotland
Contact:

Re: DaDither image converter

Post by geraldholdsworth »

DecAns wrote: Wed Mar 13, 2024 6:55 pmI forgot to give the download link :(

Windows x86 and x64 versions.
Any chance of macOS version?
Gerald Holdsworth, CTS-D
Extron Authorised Programmer
https://www.geraldholdsworth.co.uk
https://www.reptonresourcepage.co.uk
Twitter @radiogezza
User avatar
Cybershark
Posts: 736
Joined: Wed Jun 14, 2006 11:16 pm
Contact:

Re: DaDither image converter

Post by Cybershark »

tricky wrote: Thu Mar 14, 2024 7:55 am Sometimes it would swap to itself to keep the coffee simple.
Am definitely a simple coffee man, myself. Black, one sugar :P
DecAns
Posts: 6
Joined: Sun Mar 10, 2024 7:17 pm
Contact:

Re: DaDither image converter

Post by DecAns »

geraldholdsworth wrote: Thu Mar 14, 2024 9:29 amAny chance of macOS version?
No. I am Windows developer and know nothing about Mac.
tricky wrote: Wed Mar 13, 2024 10:23 pmbeeb can only easily do 2 with a full width image. This is mostly for mode 1 without nula
So, my very first trying to play around with Mode 1 and changing the palette:

Image

Image

Image

Image

For the final version, I need specifications for the format in which such files should be saved. And a couple of samples of such files.
User avatar
tricky
Posts: 7695
Joined: Tue Jun 21, 2011 9:25 am
Contact:

Re: DaDither image converter

Post by tricky »

I'll see if I can put something together this weekend as I understand that not being a beeb coder the stuff in viewtopic.php?p=122381#p122381 isn't any good to you.
It basically needs the four stating colours and the two to change on each line, encoded for the beeb.
I'll include the explanation for the encoding.
DecAns
Posts: 6
Joined: Sun Mar 10, 2024 7:17 pm
Contact:

Re: DaDither image converter

Post by DecAns »

tricky wrote: Fri Mar 15, 2024 7:56 pmI'll include the explanation for the encoding.
I hope one day you will find the time to make documentation. :)
Post Reply

Return to “development tools”