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

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

Por LeandroCorreia

Paladin (944)

Imagen del LeandroCorreia

13-04-2019, 03:23

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

Por LeandroCorreia

Paladin (944)

Imagen del LeandroCorreia

13-04-2019, 03:33

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

Por LeandroCorreia

Paladin (944)

Imagen del LeandroCorreia

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?

Por alexito

Hero (555)

Imagen del alexito

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.

Por LeandroCorreia

Paladin (944)

Imagen del LeandroCorreia

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

Por alexito

Hero (555)

Imagen del alexito

14-04-2019, 08:01

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

Por LeandroCorreia

Paladin (944)

Imagen del LeandroCorreia

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

Por ARTRAG

Enlighted (6275)

Imagen del ARTRAG

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

Por ericb59

Paladin (875)

Imagen del ericb59

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 " ?

Por Grauw

Ascended (8507)

Imagen del Grauw

15-04-2019, 18:42

Shift right ( >> ).

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

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