VDPENC

Pagina 7/13
1 | 2 | 3 | 4 | 5 | 6 | | 8 | 9 | 10 | 11 | 12

Van Manuel

Ascended (19308)

afbeelding van Manuel

19-05-2007, 23:39

OK, but how do I use the results exactly? (I didn't follow the thread too accurately...)

Van ARTRAG

Enlighted (6933)

afbeelding van ARTRAG

20-05-2007, 10:30

the results are
1) a *_tms.tga preview
2) characters and colors for screen 2

Van Manuel

Ascended (19308)

afbeelding van Manuel

20-05-2007, 14:58

yes, but how do I display them? (That was part of the 'exactly'...)

Van ARTRAG

Enlighted (6933)

afbeelding van ARTRAG

21-05-2007, 01:19

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...

Van Huey

Prophet (2694)

afbeelding van Huey

21-05-2007, 17:04

@ARTRAG: Try using a black background. The quality will improve Wink

Van Hecatonchire

Supporter (11)

afbeelding van Hecatonchire

21-05-2007, 18:15

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.

Van ARTRAG

Enlighted (6933)

afbeelding van ARTRAG

21-05-2007, 19:07

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

Van ARTRAG

Enlighted (6933)

afbeelding van ARTRAG

21-05-2007, 19:16

@Huey
Sadly, the problem is in the code, not in wich images I dither!

Van Hecatonchire

Supporter (11)

afbeelding van Hecatonchire

21-05-2007, 19:49

sorry ARTRAG, but it seems that nothing else than the image earth.tga is in your package.

Van Hecatonchire

Supporter (11)

afbeelding van Hecatonchire

21-05-2007, 20:47

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.

Pagina 7/13
1 | 2 | 3 | 4 | 5 | 6 | | 8 | 9 | 10 | 11 | 12