
.png)
Alchemist. Futurist. Raegan Brown


Overview:
This project involved creating a pixel-level chroma key compositor using OpenGL and C++. The goal was to replace a green screen background in a video sequence with a static image background by analyzing and replacing each pixel based on color thresholds.
Tools and Techniques Used:
-
Visual Studio Code
-
C++
-
OpenGL
Process:
-
Used OpenGL as the rendering base and C++ for per-pixel color comparison and replacement.
-
Extracted RGB values from both the foreground (video frame) and background (image) using bitwise operations.
-
Computed pixel color differences to identify green screen areas and dynamically replaced those regions with corresponding background pixels.
-
Rendered the final composited frames to display a seamless video integration of the foreground subject into a new environment.
Result:
A functional real-time green screen replacement pipeline demonstrating the fundamentals of computer graphics, color space manipulation, and pixel-based compositing.

Green Screen Compositing with OpenGL


