top of page
ChatGPT Image Oct 23, 2025, 11_43_49 PM_edited_edited_edited.jpg
ChatGPT Image Oct 23, 2025, 11_43_49 PM_edited_edited_edited.jpg
ChatGPT Image Oct 23, 2025, 11_43_49 PM_edited_edited_edited.jpg

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.

Screenshot 2025-11-11 214349.png

Green Screen Compositing with OpenGL

Screenshot 2025-11-11 214349.png
Screenshot 2025-11-11 214349.png
Screenshot 2025-11-11 214349.png
bottom of page