For use only on NTSC Genesis Systems.
Avatar image by CyanSorcery!


Tumblr (inactive)
tumblokami.tumblr.com/
Twitter (inactive)
twitter.com/Techokami

lifning
@lifning
(gdb) print gb->memory.cam
$3 = (struct mImageSource *) 0xffffffffdab0

lifning
@lifning

using libmgba and SDL3's newly landed unstable camera support. (had to port my gbwebcam project from rust to c because i wasn't about to wait for that to land in the sdl3 rust bindings)


lifning
@lifning

https://cybre.tech/lifning/cgbwebcam1,2, licensed under the CCLv2
(and with no expectation of support)

this is a simple C + SDL3 program that emulates three gameboys camera simultaneously, decomposes your webcam's feed into separate red/green/blue channels, feeds one to each emulator, and then reconstitutes a 64-color output image from their grayscale screens. useful as a mirror for euphoria purposes if you've got a sufficiently glitchy gender, and for re-capturing with OBS and feeding into a virtual webcam so you can get mildly frustrated at understatements of "oh that's cool, uh, is that a filter" when video calling family members, telemedicine appointments, work calls, et al.

compile as described in the git repo, and run as follows:3
cgbwebcam "/path/to/Game Boy Camera.gb"

[click here to show control mappings]
keyboardgameboy
arrow keysdpad
za
xb
enterstart
backspaceselect

in gbcamera, you can use select (backspace) to open the settings for dither/flip/palette.

(you can technically back out of the camera mode and access the rest of the gbcamera minigame stuff, but it'll be running unplayably fast since we try to run the emulated gb's much faster than realtime to keep up a decent framerate)

i will likely revisit the rust version of this project in the future (when sdl3 bindings for the camera subsystem have formed up and matured) to add UI polish, some fun additional effects, etc., but for now i wanted to share this more broadly in case anyone else is infected with the same sense of aesthetic sensibilities as me. thanks to @viv and @flurry for helping me make a windows build, @DotMaetrix for battle-testing this for me on her very own twitch dot television channel, and of course @endrift for mGBA and @icculus (et al.) for SDL and its shiny new camera support!


  1. windows users may find a pre-built exe on the releases page, taking care to read the note about how to provide the required ROM dump. it currently requires Vista or newer, at least until SDL3 has a DirectShow driver.

  2. that's "C gbwebcam", not "CGB webcam" -- these are emulated DMG's, not a gameboy color! (contrast with "rgbwebcam", short for "Rust gbwebcam" and "RGB webcam")

  3. you'll have to provide your own ROM dump, which you can obtain from a physical GB Camera using an appropriate cartridge reader. (there exist other, more unhinged options to try, whose explanations are beyond the scope of this release post)


You must log in to comment.