TASEmulators / BizHawk

BizHawk is a multi-system emulator written in C#. BizHawk provides nice features for casual gamers such as full screen, and joypad support in addition to full rerecording and debugging tools for all system cores.
http://tasvideos.org/BizHawk.html
Other
2.2k stars 384 forks source link

SNES change background color #1642

Open llamaizing opened 5 years ago

llamaizing commented 5 years ago

When disabling various layers it is difficult to tell the difference between a black sprite pixel and the black background. It would be nice to be able to change the color of the background.

I tried to implement a workaround in lua, but there doesn't seem to be any way to draw behind the game sprites using a lua script.

vadosnaprimer commented 5 years ago

SNES - Graphics Debugger - User Backdrop.

llamaizing commented 5 years ago

Hmm... unless I'm doing it wrong, User Backdrop in the Graphics Debugger only seems to apply to the Graphics Debugger window and not the main game window.

I'm trying to use this in conjunction with a lua script that takes screenshots of the game window.

vadosnaprimer commented 5 years ago

I think it should be easy to expose this to lua in the future just like switching layers is exposed.

WDude commented 5 years ago

Bsnes core let's you access CGRAM memory domain. Since BG color is typically at address location zero, you can change it to magenta color with value 0x1F7C. The game may update the CGRAM every cycle or at every scene change, so you may have to poke and freeze the values in CGRAM.

llamaizing commented 5 years ago

Oh wow, that works (but still is black on skipped frames). I think I can work with it, though, so thanks!

shicohage commented 4 years ago

I think you are talking about using the bsnes memory editor. Where do I need to enter a value? Is it the same position in all games?

ReyVGM commented 2 years ago

If you really need to disable a layer, regardless of the emulator, there's a rogue snes9x branch that implemented this much needed feature. Just press Shift+1 to cycle between background colors.

https://archive.org/details/snes-9-x-1.51-rr