Improving openMSX console readability

Door sd_snatcher

Prophet (3480)

afbeelding van sd_snatcher

06-10-2012, 01:19

The current openMSX console background is not being easy on my eyes. The new syntax highlight is very hard to read against the current background (at least for me).

I'm trying to improve the readability by creating a PNG file on GIMP that will set the console background with the following characteristic: plain black with 25% transparency.

Unfortunately, the results are being very unexpected. I'm using GIMP to create the png image and loading it with the set consolebackground command.

Those are the results:

On GIMP: background = plain black, alpha channel = plain 25% transparent. Open MSX shows it as full transparent.
On GIMP: background = plain white, alpha channel = plain 25% transparent. Open MSX shows it as bright yellow (!).

Is that the expected behavior? How can I achieve the desired "plain black background with 25% transparency" then?

PS: I'm using openMSX-0.9.1 on Mac OS-X 10.6.8.

Aangemeld of registreer om reacties te plaatsen

Van wouter_

Champion (469)

afbeelding van wouter_

06-10-2012, 10:07

Of course that's not the expected behavior. Though I can't reproduce the problem. I (also in gimp) created a 10x10 pixels (size doesn't matter in this case, openMSX will scale it) fully black/white image, set the opacity to 75% and exported to PNG. When using these images in openMSX I do get the expected result.

Can you send me the images you created, so I can test with those? I assume that the other background images that are shipped with openMSX (located in openmsx/share/skins) do show the correct colors (compare by opening them in some other program). Or do simply all PNGs show wrong colors for you?

Van sd_snatcher

Prophet (3480)

afbeelding van sd_snatcher

06-10-2012, 19:30

Hi Wouter!

I'm not sure if it's a bug or if it's the fact that I have no experience on creating such images on GIMP. Because of this, I choose to wait before filling a bug report.

I published the screenshots here.

Since Flicks doesn't allow PNG images, this is the image I used for the background.

BTW, I'm using the SDL renderer. And guess what?! I just switched to the SDLGL-PP renderer and the transparency began to work as expected. It seems that the problem is a bug on the plain SDL renderer.

Van wouter_

Champion (469)

afbeelding van wouter_

06-10-2012, 21:23

Those screenshots is NOT how the console is supposed to look (I understand why you were trying to change it). It seems that some of the RGBA channels are swapped for you. Though it's strange that the LEDs in the screenshot do look normal, and those are also loaded as PNG files. I'll take a close look at the console code.
BTW even with the background PNG image you provided I can't reproduce the problem, neither in the SDL nor the SDLGL-PP renderer. Possibly it's a problem specific to mac (or specific to the native RGBA order of the gfx hardware)?

Van anonymous

incognito ergo sum (116)

afbeelding van anonymous

11-10-2012, 19:27

I can confirm that openMSX console looks different on Mac OS X 10.6.8 with SDL renderer.
An overview of how it looks:

SDL


SDLGL-FB16


SDLGL-FB32


SDLGL-PP

Though the console on the SDL renderer doesn't look nearly as bad for me as it does for you...
But maybe I'm not using the default background; I'm using skins/ConsoleBackgroundGrey.png

Van sd_snatcher

Prophet (3480)

afbeelding van sd_snatcher

13-10-2012, 06:50

Curiously enough, on my machine only the SDL and SDLGL-PP renderers are available. There's no SDLGL-FB16 or SDLGL-FB32.

Maybe this info from the System Profiler may also be useful:

Displays:
iMac:
Resolution: 1920 x 1200
Pixel Depth: 32-Bit Color (ARGB8888)
Main Display: Yes
Mirror: Off
Online: Yes
Built-In: Yes

Van Manuel

Ascended (18238)

afbeelding van Manuel

13-10-2012, 12:47

Those renderers are only available in development builds, that explains.

Wouter already found the bug and will try to fix it soon.

By the way, better use SDLGL-PP anyway Smile Saves quite some CPU cycles and can do 4x scaling, which is ideal for your display (I have the same amount of pixels).

Van FiXato

Scribe (1717)

afbeelding van FiXato

16-10-2012, 01:50

sd_snatcher: Wouter has pushed a fix to SVN and I've just compiled and published the latest build: http://openmsx.fixato.net/builds/mac/universal/openmsx-0.9.1...
Would you be so kind to test this one to see if it fixes it for you?

Van sd_snatcher

Prophet (3480)

afbeelding van sd_snatcher

16-10-2012, 13:45

Nice! I'll test it as soon as I return. Right now I'm on Rio, 852KM away from home.

Van Vampier

Prophet (2386)

afbeelding van Vampier

18-10-2012, 08:40

It's probably time that I would revisit that console background... I made that thing in a previous lifetime (feels like it!)

Van sd_snatcher

Prophet (3480)

afbeelding van sd_snatcher

19-10-2012, 03:45

Just tested it with the fixed SDL renderer. Works like a charm. Smile