OK, but how do I use the results exactly? (I didn't follow the thread too accurately...)
the results are
1) a *_tms.tga preview
2) characters and colors for screen 2
yes, but how do I display them? (That was part of the 'exactly'...)
They are just binary data to be set in vram.
You need to write a small asm program to do that.
Testing I've found that my dithering isn't that good...
It tends to produce too much horizontal lines, where
Jannone's converter seems far better.
I need to better investigate...
@ARTRAG: Try using a black background. The quality will improve
ARTRAG, about your dithering problem, can you post an image before and an image after conversion, so that i can compare with my own algorithm.
Hecatonchre
With one or two of your hundreds of hands, you can dowload the pakage at
http://ragozini.googlepages.com/sc2conv.rar
run my program on the test image (in the package)
run your program on the same image, et voilà
BTW
I'll try to post some results soon
@Huey
Sadly, the problem is in the code, not in wich images I dither!
sorry ARTRAG, but it seems that nothing else than the image earth.tga is in your package.
I suggest 2 faster methods to convert a block of 8 pixels into 2 colors: (rather than to test all the possible combinations as it is currently made)
method 1: selection of the 2 most used colors (among the 8 pixels), the other colors are converted into one of the 2 colors according to the minimum variation (score)
method 2: Selection of the most used color + the color which has a variation (score) maximum with the first.
The Method 2 makes it possible to better underline outlines but gives an image less smoothed than the first.