Previous Thread
Next Thread
Print Thread
Page 1 of 4 1 2 3 4
LCD Handhelds invisible graphics (OSX) #116055 09/30/19 06:27 PM
Joined: Jan 2007
Posts: 206
M
MacBox360 Offline OP
Senior Member
OP Offline
Senior Member
M
Joined: Jan 2007
Posts: 206
I don't know if this issue has been reported before but seems that all the handheld games using LCD technology (with the exception of the Chess simulators and maybe some few others) fail to show the game graphics, this happens with and without the artworks, the screen remains blank (white background with no shapes on it) but I can clearly hear the sound of the game running. The LED games instead runs well and the graphics is correctly shown and animated.
This is verified on OSX 10.14.6 and latest SDLmame build compiled declaring the options target=mame subtarget=mess with latest Xcode and MacPorts environment.

Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116056 09/30/19 06:49 PM
Joined: Mar 2001
Posts: 16,394
R
R. Belmont Offline
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,394
Might be a BGFX issue, have you tried -video soft or -video opengl?

Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116057 09/30/19 07:29 PM
Joined: Jan 2007
Posts: 206
M
MacBox360 Offline OP
Senior Member
OP Offline
Senior Member
M
Joined: Jan 2007
Posts: 206
Same issue, and when I declare "-video soft" the OSD menu does not appear at all then on the exit console (terminal window) I read the following message:

2019-09-30 21:26:08.386 mess64[1065:37888] WARN:

Assertion failure at SDL_DestroyTexture_REAL (/Users/valve/release/SDL/SDL2-2.0.10-source/src/render/SDL_render.c:3144), triggered 1 time:
'texture && texture->magic == &texture_magic'

Last edited by MacBox360; 09/30/19 07:29 PM.
Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116058 09/30/19 07:46 PM
Joined: Mar 2002
Posts: 1,116
H
hap Offline
Very Senior Member
Offline
Very Senior Member
H
Joined: Mar 2002
Posts: 1,116
I can't help (Windows user), but could give some pointers.
Do VFD games work? try edracula or astrocmd.

If not, since you compile your own version, try decreasing the screen size in the driver. It tries to create a 2048*2048 texture, maybe it's too large for your system. For example, driver has:
screen.set_size(1421, 1080);
try:
screen.set_size(1421/4, 1080/4);

Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116059 09/30/19 08:09 PM
Joined: Jan 2007
Posts: 206
M
MacBox360 Offline OP
Senior Member
OP Offline
Senior Member
M
Joined: Jan 2007
Posts: 206
Just tried, the VFD games works fine, I can see the animated coloured graphics on top of black background.
My system is equipped with a Radeon RX580 with 8 Gb VRAM, it is a 2010 MacPro with dual 3.20 GHz Xeon quad core CPUs and 48 Gb of DRAM total, I can try a new compile (of course) but shouldn't those specs big enough for any demanding task including graphics?

Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116060 09/30/19 08:14 PM
Joined: Mar 2002
Posts: 1,116
H
hap Offline
Very Senior Member
Offline
Very Senior Member
H
Joined: Mar 2002
Posts: 1,116
Yeah, it doesn't look like a texture size problem.
The VFD games use the same implementation as the LCD games(SVG screen), the only difference is the background color on most of the Game & Watch. Do gnw_dkjrp and gnw_mbaway work? These have black background.

Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116061 09/30/19 08:25 PM
Joined: Jan 2007
Posts: 206
M
MacBox360 Offline OP
Senior Member
OP Offline
Senior Member
M
Joined: Jan 2007
Posts: 206
This is fun, here are the results:

gnw_dkjr : Same behaviour as above, white screen and nothing but in game sounds
gnw_dkjrp : The graphics works well but in negative (black background and white shapes)
gnw_mbaway : Same as gnw_dkjrp, graphics OK, white characters on black background

Last edited by MacBox360; 09/30/19 08:26 PM.
Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116062 09/30/19 08:37 PM
Joined: Mar 2002
Posts: 1,116
H
hap Offline
Very Senior Member
Offline
Very Senior Member
H
Joined: Mar 2002
Posts: 1,116
Yup, the graphics are supposed to be inverted for these 2 games.

You're certain it's not caused by the MAME artwork system? eg. temporary rename the artwork package for gnw_dkjr to gnw_dkjr2. If it works ok then the problem is the way artwork is rendered on MacOS. If not, it's caused by the SVG white background somehow.

And you were saying the chess simulators are fine? Not many SVGs used there, off the top of my head: ssystem3, mchess, savant, ccmk5. These are all with a white background.

Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116063 09/30/19 08:50 PM
Joined: Jan 2007
Posts: 206
M
MacBox360 Offline OP
Senior Member
OP Offline
Senior Member
M
Joined: Jan 2007
Posts: 206
I have tried to rename the artwork above as you suggested with the same result: white background and no visible characters.

About the chess games I was referring to Mephisto machines, the group you mentioned suffer from the same issue of Game & Watch, the LCD part of the screen remains blank.

Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116064 09/30/19 08:51 PM
Joined: May 2004
Posts: 1,601
H
Haze Offline
Very Senior Member
Offline
Very Senior Member
H
Joined: May 2004
Posts: 1,601
the ddraw and gdi fallbacks on Windows used to exhibit similar broken behavior with certain layouts, maybe some other output modes (used on OSX) are doing the same?

Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116065 09/30/19 09:14 PM
Joined: Mar 2002
Posts: 1,116
H
hap Offline
Very Senior Member
Offline
Very Senior Member
H
Joined: Mar 2002
Posts: 1,116
Something's going wrong with the SVG rendering on your computer then. Maybe it renders the opaque white layer on top of the LCD segments (even though the SVG defines the white as background).

Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116066 09/30/19 09:23 PM
Joined: Jan 2007
Posts: 206
M
MacBox360 Offline OP
Senior Member
OP Offline
Senior Member
M
Joined: Jan 2007
Posts: 206
It would be nice to have many more SDLmame (MESS) feedback from other Mac users around, it could help developers to better discover the cause of the issue.
In the next days I can try to run this build also on pre-Metal Mac configurations (using also other graphic cards, I have many of different generations around) and report here my discoveries.

Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116319 11/04/19 01:36 PM
Joined: Oct 2019
Posts: 3
G
Game&Watch Lover Offline
Member
Offline
Member
G
Joined: Oct 2019
Posts: 3
I have the same problem. As I'm only interested in Game & Watch I can't test with other games.

Unfortunately the version of gnw_dkjrp and gnw_mbaway I have do not run. The mame64 -verifycdroms returns that the music-files are not ok and need a re-dump. So I can't verify if they work.

Back to the problem with invisible characters. Thats what I did so far with no success:

I tried it with sdlmame 2.08, 2.14 and the newest 2.15. SLD is version 2.10 but with older versions (tried 2.09 and 2.08) it didn't work also.

If I put backgrounds in the artwork-folder I can see the background, hear the sounds, the keys respond, but I can't see the sprites.

I've tried with MacOS 10.14.6.

Interesting: If I try the same games (not nw_dkjrp and gnw_mbaway, they didn't run) on a windows machine with windows 10 1903 everything works as expected.

I'm new to mame, but the same steps worked under windows:
1.Install the mame-Package (and for macos the sdl-framework)
2. Copy the games in the rom-folder
3. Copy the backgrounds in the artwork folder
4. start mame64.exe (Windows) or ./mame64 (MacOS).

Hopefuly, somebody can help so I can play the games from my childhood on the Mac (my primary computer).

Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116320 11/04/19 02:11 PM
Joined: Feb 2004
Posts: 2,095
Vas Crabb Online Content
Very Senior Member
Online Content
Very Senior Member
Joined: Feb 2004
Posts: 2,095
What are your region/sort order/number format set to? This could be another issue with something in MAME being affected by global locale settings.

Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116328 11/04/19 07:42 PM
Joined: Jan 2007
Posts: 206
M
MacBox360 Offline OP
Senior Member
OP Offline
Senior Member
M
Joined: Jan 2007
Posts: 206
I have also noticed another issue: all the VFD games have malformed graphics, look for example at Alien Chase (alnchase) and you will see the mothership at the top of screen is almost a green blob while the sprites seems to have a thickness so tiny to loose many details. This happens with or without the artwork graphics overlay. I also confirm the issue of the invisible LCD sprites on the latest 0.215 build (OSX 10.14.6, latest MacPorts, latest SDL2 library).

Last edited by MacBox360; 11/04/19 07:48 PM.
Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116329 11/04/19 10:16 PM
Joined: Mar 2002
Posts: 1,116
H
hap Offline
Very Senior Member
Offline
Very Senior Member
H
Joined: Mar 2002
Posts: 1,116
Originally Posted by MacBox360
Just tried, the VFD games works fine, I can see the animated coloured graphics on top of black background.

But you said they were fine before, did something change?

As I said before, something's probably wrong with how MAME renders SVGs on your system, but I don't know the cause. Everything looks fine on MS Windows here.
Got a screenshot?

Re: LCD Handhelds invisible graphics (OSX) [Re: Vas Crabb] #116330 11/04/19 10:21 PM
Joined: Oct 2019
Posts: 3
G
Game&Watch Lover Offline
Member
Offline
Member
G
Joined: Oct 2019
Posts: 3
Originally Posted by Vas Crabb
What are your region/sort order/number format set to? This could be another issue with something in MAME being affected by global locale settings.

Where can I check this? Its factory default, I did not change anything because I don't know where to change.

With MacOS 10.15.1, sldmame 0.215 and sdl2.10 I have the same problem.
And as hap said: In Windows everything is all right with the same (default) settings.

Re: LCD Handhelds invisible graphics (OSX) [Re: hap] #116332 11/04/19 10:43 PM
Joined: Jan 2007
Posts: 206
M
MacBox360 Offline OP
Senior Member
OP Offline
Senior Member
M
Joined: Jan 2007
Posts: 206
Originally Posted by hap
Originally Posted by MacBox360
Just tried, the VFD games works fine, I can see the animated coloured graphics on top of black background.

But you said they were fine before, did something change?

As I said before, something's probably wrong with how MAME renders SVGs on your system, but I don't know the cause. Everything looks fine on MS Windows here.
Got a screenshot?


Before (on my previous report) I did not compare the SVG graphics against the official screenshots so I thought it was a bit strange but maybe a work-in-progress, therefore I did not report this issue but now I have made some comparison with other VFD games and I can say this affect most of them, if not all.
Attached is a screenshot of Alien Chase, Burgertime and Dig Dug running in a window, the malformed graphics can be clearly seen.
Alien Chase
Burgertime
Dig Dug

Other VFD games does not look so bad, the impression is that some intermediate points of the vector figures are skipped during the rendering so the simple shapes remain almost recognizable while the more complex lost detail and false shapes are rendered istead.

Last edited by MacBox360; 11/04/19 11:06 PM.
Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116333 11/04/19 10:48 PM
Joined: Mar 2002
Posts: 1,116
H
hap Offline
Very Senior Member
Offline
Very Senior Member
H
Joined: Mar 2002
Posts: 1,116
Yeah, the game sprites look completely wrong there.
@Game&Watch Lover: does alnchase look like that on your Mac as well?

Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116334 11/05/19 12:39 AM
Joined: Mar 2001
Posts: 16,394
R
R. Belmont Offline
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,394
Why does the window say "MESS"? Is this actually up-to-date MAME?

Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116335 11/05/19 12:42 AM
Joined: Mar 2001
Posts: 16,394
R
R. Belmont Offline
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,394
This is what it looks like on my Mac, which I believe is correct. (macOS 10.15.1 beta, latest MAME, -video bgfx -bgfx_backend metal).

[Linked Image from rbelmont.mameworld.info]

Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116337 11/05/19 02:35 AM
Joined: Feb 2004
Posts: 2,095
Vas Crabb Online Content
Very Senior Member
Online Content
Very Senior Member
Joined: Feb 2004
Posts: 2,095
Yes, there's definitely more to it than just running on Mac. ArBee, if you change your number format settings to comma decimal separator (e.g. select French number format) does it cause the breakage these guys are describing?

Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116338 11/05/19 04:48 AM
Joined: Mar 2001
Posts: 16,394
R
R. Belmont Offline
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,394
Setting LANG to "fr_FR.UTF-8" resulted in the broken display the users are describing. Putting it back to "en_US.UTF-8" restored the correct display.

Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116339 11/05/19 07:37 AM
Joined: Feb 2004
Posts: 2,095
Vas Crabb Online Content
Very Senior Member
Online Content
Very Senior Member
Joined: Feb 2004
Posts: 2,095
Fixed. But once again, this demonstrates that we need information on your environment to be able to solve issues like this. Just saying it doesn't work isn't helpful, as it clearly works for plenty of other people, otherwise it would've been noticed and fixed a lot sooner.

Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116340 11/05/19 10:43 AM
Joined: Mar 2002
Posts: 1,116
H
hap Offline
Very Senior Member
Offline
Very Senior Member
H
Joined: Mar 2002
Posts: 1,116
That's great =)

Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116341 11/05/19 11:15 AM
Joined: Oct 2019
Posts: 3
G
Game&Watch Lover Offline
Member
Offline
Member
G
Joined: Oct 2019
Posts: 3
@Vas Crabb and R Belmont: Great, if I change LANG to en_US.UTF-8 everything works. And on the mainscreen there are a lot more information :-)
Because I'm new, I did not know, that a lot more should be visible on the right side.

@all:Thanks for the fast help.

Re: LCD Handhelds invisible graphics (OSX) [Re: R. Belmont] #116342 11/05/19 01:06 PM
Joined: Jan 2007
Posts: 206
M
MacBox360 Offline OP
Senior Member
OP Offline
Senior Member
M
Joined: Jan 2007
Posts: 206
Originally Posted by R. Belmont
Why does the window say "MESS"? Is this actually up-to-date MAME?


Yes, it is. I simply prefer to have two separate binaries, one for the arcade games and the other for home sysyems, since I decided to use no more external frontends but to rely only on the default OSD menus it is much more comfortable to navigate thru arcade games if I want to play them and home system if I decide otherwise instead of having a huge list of arcade/home systems with thousands entries to dodge. Ok, I could simply go straight to the game/system I intend to run thru the "Search" tab but it is also fun to discover exotic systems simply scrolling one name after the other. I have just downloaded the actual snapshot of SDLmame source code and now I am recompiling the home/system part to have the VFD graphics fixed, as far I know there are no arcade games that uses this technology for in-game action so I will wait the 0.216 release for recompile the arcade part.
Anyway thanks to all the MAME team for the active support and a prey to the other Mac users around here to be more partecipative and understand that MAME evolution is a collective effort therefore everyone interested in this project should actively support it so I was really happy to see the posts of "Game&WatchLover" in this discussion. I hope to see more and more Mac users around to show their love for this wonderful project.

In the mean time the compile task has ended and I can post the snapshot of actual SDLmame (mess) build, with perfect graphics not only on the VFD games:

Alien Chase
Burger Time
Dig Dug

but also on the LCD handheld games.

Popeye

Another excellent fix from the incredible MAMEdev team! :-)

Last edited by MacBox360; 11/05/19 01:08 PM.
Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116343 11/05/19 01:50 PM
Joined: Mar 2001
Posts: 16,394
R
R. Belmont Offline
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,394
Glad we could fix it!

Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116344 11/05/19 02:19 PM
Joined: Jan 2007
Posts: 206
M
MacBox360 Offline OP
Senior Member
OP Offline
Senior Member
M
Joined: Jan 2007
Posts: 206
Ok, comparing further snapshots with the real thing I found another issue with many chess games: the pieces are not displayed on the checkerboard, their place is taken by a tiny zebra pattern, this is what Chess 2001 (ch2001) looks like:

Chess 2001 (actual Mame build)

And this (the snapshot on the right side of screen) is what it should be:

Chess 2001 (official snapshot)

Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116345 11/05/19 02:30 PM
Joined: Mar 2002
Posts: 1,116
H
hap Offline
Very Senior Member
Offline
Very Senior Member
H
Joined: Mar 2002
Posts: 1,116
It's unrelated to the SVG problem.

Do you have a complete MAME install? It includes an "artwork" folder with a couple of pngs in it, and a "chess" folder and "bgfx" folder in it. The chessmen images are in the chess folder.
Or, did you change artpath in mame.ini to something else? It should still include the artwork path for it to load the chess images.

for example you might have:
artpath c:/my_mame/my_artwork
change to:
artpath artwork;c:/my_mame/my_artwork

Re: LCD Handhelds invisible graphics (OSX) [Re: MacBox360] #116348 11/05/19 07:18 PM
Joined: Jan 2007
Posts: 206
M
MacBox360 Offline OP
Senior Member
OP Offline
Senior Member
M
Joined: Jan 2007
Posts: 206
You are right, I previously declared the artwork directory to the giant "EXTRAs" archive only so the local directory was ignored, however as solution I have choosen to copy the few artwork files in mame source distribution to the main directory where all the complete artwork set lives. In this way a single artwork path does the job once for all.
It could also be not a bad idea to include this default artwork set also in the main EXTRAs distribution as zipped archive naming it as "default.zip" for example so a single distribution include everything is needed.

After the correction above the result is perfect, many thanks for pointing me in the right direction!

Chess 2001 with all pieces at their place

Last edited by MacBox360; 11/05/19 07:20 PM.
Page 1 of 4 1 2 3 4

Moderated by  R. Belmont 

Who's Online Now
2 registered members (Edstrom, Vas Crabb), 159 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,722
Posts114,651
Members4,873
Most Online510
Aug 26th, 2019
Powered by UBB.threads™ PHP Forum Software 7.7.3