Any matlab user interested in testing a new screen 2 converter able to place sprites automatically ?

Página 2/2
1 |

Por geijoenr

Champion (273)

Imagen del geijoenr

20-06-2020, 15:09

It doesn't work in octave; the rgb2ind function has the same name in Octave but the interface is different than in MATLAB.

Por Sepulep

Resident (36)

Imagen del Sepulep

20-06-2020, 15:39

nice - there is a thread (well probably more) on rgb to screen 2 conversion (here ), and this nicely complements that..though I think if you convert it to python it will be easier to use (and maybe also be gimp plugin - see the python version of the rgb->screen 2 converter, this tool)

Por ARTRAG

Enlighted (6550)

Imagen del ARTRAG

20-06-2020, 20:15

I can only add an executable version in Github
You will need matlab runtime library to execute it (it is free but huge)
EXE added
https://github.com/artrag/Screen-2-converter-with-sprite-ove...

Por geijoenr

Champion (273)

Imagen del geijoenr

21-06-2020, 22:24

oh, there is also a runtime for Linux. I am going to give it a try.

Por geijoenr

Champion (273)

Imagen del geijoenr

21-06-2020, 23:58

In the meantime I sort-of got the octave version working by converting the input image to the right palette using gimp.

The result is quite impressive!
Really good tool ARTRAG!

Por geijoenr

Champion (273)

Imagen del geijoenr

22-06-2020, 00:08

That image was quite challenging to convert to sc2 due to the bad alignment of the tiles in the body of the church; using an sprite overlay looks almost perfect.

original image for reference:

Por Grauw

Ascended (10074)

Imagen del Grauw

22-06-2020, 01:38

Looks nice. Can you not remove a few pixels from the trees to the right to avoid the bleed on the building? Assuming you’re all out of sprites… Nobody’s going to notice Smile.

Por ARTRAG

Enlighted (6550)

Imagen del ARTRAG

22-06-2020, 10:08

geijoenr wrote:

In the meantime I sort-of got the octave version working by converting the input image to the right palette using gimp.

The result is quite impressive!
Really good tool ARTRAG!

Hi Enric, thanks!
You should also show the error map and the sprite overlay. They are generated during the optimization and show as images.
The algorithm is a full search for the position of the current sprite able to maximise the number of errors covered at each step. All keeping into account the limit of 4 sprites per line.

I cannot say if it leads always to the best solution in terms of minimum number of wrong pixels, but manually I haven't ever found better solutions than those from this algorithm.
Any suggestion to improve in the optimization is welcome.
:)

Página 2/2
1 |