Graphic conversion for any 256x192 into MSX1 graphics (Source code in Blitz Basic).

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

By LeandroCorreia

Paladin (944)

LeandroCorreia's picture

13-04-2019, 03:23

@alexito... Does the program freeze or does it run normally without saving any images?

By LeandroCorreia

Paladin (944)

LeandroCorreia's picture

13-04-2019, 03:33

I was at office. I copied from Pastebin into Blitz at home and it also ran fine.

By LeandroCorreia

Paladin (944)

LeandroCorreia's picture

13-04-2019, 10:31

What can I tell so far: the new parameter variable, detaillevel# should be a value from 1 to 255. If it's 0, the program will just generate a black screen on conversion (I did not include any commands to control variable range). But I can clearly see the variable value is 32.0, so it's OK.

@Alexito, can you send both your .bb file and the image you used to convert to my e-mail?

By alexito

Hero (534)

alexito's picture

13-04-2019, 20:33

@Leandro: run normally without saving any images that what happen.

email sent with the bb file and zx game over PNG.

By LeandroCorreia

Paladin (944)

LeandroCorreia's picture

13-04-2019, 23:23

alexito wrote:

@Leandro: run normally without saving any images that what happen.

email sent with the bb file and zx game over PNG.

The only change I did was in the paths between the " "... Worked like a charm (screenshot was taken during the conversion, so it's not complete on screen).

VERY STUPID question: The program waits for a keypress before starting conversion (it should not be ESC). Did you press any key after running the program that was different from ESC? Big smile

By alexito

Hero (534)

alexito's picture

14-04-2019, 08:01

Yes, that was the problem Cool the added WaitKey(). Thanks very much.

By LeandroCorreia

Paladin (944)

LeandroCorreia's picture

14-04-2019, 11:08

alexito wrote:

Yes, that was the problem Cool the added WaitKey(). Thanks very much.

I added a waitkey() because during debugging I displayed the luminosity detail map before converting. I removed this display but I forgot to remove that line. Big smile

Don't forget to show me your results later. Smile

This one I did by manually changing original colors to the colors that were in the MSX-GCR and then running it. :)

By ARTRAG

Enlighted (6234)

ARTRAG's picture

14-04-2019, 12:06

For images with low level of dithering you could include my two steps encoding that includes sprites to fix the major errors
Have you seen the code on mrc?
https://www.msx.org/forum/msx-talk/development/any-matlab-us...

By ericb59

Paladin (859)

ericb59's picture

15-04-2019, 18:10

@LeandroCorreia : Someshere in your last Blitz basic version you have this line :
corfinal=(corfinal+corfinal2) Shr 1

What is the "Shr 1 " ?

By Grauw

Ascended (8379)

Grauw's picture

15-04-2019, 18:42

Shift right ( >> ).

In this case, calculating the average, effectively the same as integer division by 2.

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