Game Boy background images

Hello everyone, not sure if this was the proper place my question is about the sample background .png files which apply a texture to the image. I notice theres 3 files: dmg-bg.png, grainy-bg.png and paper-bg.png

I’m using Gambatte (android) and the default background appears to be dmg-bg.png which someone described as having an angled hatching pattern. Is there any way to switch to the other 2 backgrounds? Is it possible to disable the background? Tried renaming and replacing the files and deleting them which doesn’t change anything

Renaming and replacing should work, but I think you’re looking in the wrong place. It’s the background.png one directory level up that you need to replace. To get rid of it entirely, you can replace it with a fully transparent png (even a 1x1 transparent texture should be fine). I think the ‘background smooth’ parameter should be able to hide it, too.

Thanks for the fast response, renaming/replacing the background.png looks to work from in the handheld/dmg-shader/resources folder. Where is the ‘background smooth’ parameter located? As far as the fully transparent png I was not able to successfully create one (used a free program called paint.net) is there a file online somewhere I could be directed to?

Try this one:

Hey thank you for the upload! Unfortunately it results in a mostly black screen (barely make out the on-screen graphics, can hear game audio) same thing seems to happen with other transparent files I’ve found online

Try to copy dmg-background.png from handheld\console-border\resources\ and replace yours with it.

Ah, too bad. I made another flat gray one that you can try. I uploaded it to the same link as before, so just re-download.

EDIT: ah, yeah, Tatsuya79’s suggestion is just as good, since that one just uses a flat gray, too.

hunterk, for some reason your new png was giving that angled hatch pattern even though the file looked to be what you call flat gray. Maybe for some reason it defaulted to one of the other backgrounds?

Tatsuya79, replacing that dmg-background.png so far looks good, think I’ll stick with this. Thanks!

I really love using the dmg-shader but those backgrounds feel like more of a watermark than an enhancement. So I take it theres no easy way then to disable/remove them? Surely I can’t be the only one who doesn’t care for these, well, aside from the current one I’m using now which looks alright

Go into shader-files/gb-pass4.cg and replace line 119: fixed4 background = tex2D(BACKGROUND, texCoord); with this: fixed4 background = fixed4(0.5);

Hmm no luck… Is it possible to load the .cgp shader files? Whenever I attempt this retroarch will crash so I use .glslp files

To be more specific, with your ‘gb-pass4.cg’ edit should I be loading the .cgp file or can a .glslp file be used?

ah, yeah, that was for the cgp version. For the glsl one (the one in the shaders_glsl/hunterk/handheld/gameboy folder), go into shader-files/gb-pass4.glsl and change line 129 from: _TMP1 = COMPAT_TEXTURE(BACKGROUND, TEX0.xy); to _TMP1 = vec4(0.5);

I didn’t see any difference but it sounded like something that should’ve worked. Maybe I’ve been looking at this somewhat the wrong way. It appears that the shader’s upper right hand corner uses a glare imprint that I didn’t quite notice before its easier to see with busier/dark ingame backgrounds. Most of my testing was with super mario land so I guess some games its not too noticeable. not the best screen capture:

I’ll keep a look out if theres any other options in the future thanks for all your help. Happy Holidays!

Btw hunterk, did you happen to try out the gb-pass4.glsl edit that you suggested yourself? If not thats fine I was just curious if it was just something wrong on my end

Oh, I see what you’re talking about. That’s just in the border image. If you find the gameboy image and open it in Photoshop/GIMP/whatever, you can just do a bounding box there around the viewport and delete the shadow/glare.

Ahh so it is the border image which contains the mark I should’ve realized this when experimenting with the different screen options. Removing it sounds easy enough

And thats the end of that chapter :smiley: