Implements a TextureImage that streams its image data from a shared memory RGBA source via the shm_ringbuffers library on platforms supported by the shm_ringbuffers library. This can be used to, for example, stream a scene from OBS into your running Godot project, via the obs-shmem-ringbuffer. This project only supports Godot 4.x.
This software requires the SCons build system. Additionally, you must have shm_ringbuffers installed at a location available searched by pkg-config (so you probably want it installed to /usr prefix) .
To build:
git clone --recurse-submodules https://github.com/directrix1/godot-capture-texture.git
cd godot-capture-texture
scons
To use this in your project after building. Go into the demo/ folder, and copy the "bin" subfolder into your project root. CaptureTexture should now be available after loading the project.
In the demo folder there is an example project that uses the CaptureTexture component.
This software is Copyright (c) 2025 Edward Andrew Flick, and released under the MIT license.