Table of Contents

Class GLGlowLightingVideoEffect

Namespace
VisioForge.Core.Types.X.OpenGL
Assembly
VisioForge.Core.dll

Applies hardware-accelerated glow lighting effect to video frames using OpenGL/OpenGL ES shaders. This effect enhances bright areas of the video by adding a soft, luminous halo around light sources and highlights, creating an ethereal, dreamlike quality or simulating light bloom and lens effects.

public class GLGlowLightingVideoEffect : GLBaseVideoEffect

Inheritance

Inherited Members

Remarks

SDK Availability: Available in: VideoCaptureCoreX, MediaPlayerCoreX, Media Blocks SDK (Cross-platform)

Platform Support: Windows, Linux, macOS, Android, iOS (OpenGL ES)

OpenGL Acceleration: This effect is fully GPU-accelerated using OpenGL 3.0+ on desktop platforms and OpenGL ES 2.0+ on mobile devices. The glow effect is implemented using fragment shaders that extract bright regions, apply Gaussian blur to create the glow halo, and composite the result with the original image. The implementation uses optimized separable blur kernels for maximum performance. All processing, including brightness threshold extraction and multi-pass blur operations, occurs entirely on the GPU using render-to-texture techniques.

Effect Description: The glow lighting effect simulates the optical phenomenon of light bloom, where bright light sources appear to spread beyond their physical boundaries, creating a soft, luminous halo. The effect works by identifying bright areas in the video (above a certain luminance threshold), extracting them, applying a Gaussian blur to create a soft glow, and then blending this glow back with the original image. This creates the appearance of light scattering through the atmosphere or camera lens, adding atmosphere and depth to the scene. Bright highlights become softer and more prominent, light sources gain halos, and the overall image takes on a more luminous, magical quality. The effect is particularly noticeable around lights, reflections, and other bright elements, enhancing the sense of luminosity and atmosphere.

Use Cases:

  • Romantic and dreamlike scenes in films and music videos
  • Fantasy and magical content requiring ethereal, otherworldly lighting
  • Night scenes and low-light cinematography with enhanced light sources
  • Beauty and fashion videos with soft, flattering lighting effects
  • Video game cutscenes and cinematics with cinematic lighting bloom
  • Wedding and event videos with soft, romantic atmosphere enhancement

Performance Characteristics: This effect has moderate performance impact as it requires multi-pass rendering on the GPU. Typical overhead is 2-3ms per frame on modern hardware due to the Gaussian blur operations. The effect uses optimized separable blur kernels (horizontal and vertical passes) to minimize computational cost. Performance scales with resolution and blur radius but remains real-time capable at 1080p and 4K on modern GPUs. The effect uses render-to-texture for intermediate processing, requiring additional GPU memory proportional to frame resolution. On mobile devices with OpenGL ES, performance is good for resolutions up to 1080p, though frame rate may be impacted on older devices.

Constructors

GLGlowLightingVideoEffect()

Initializes a new instance of the VisioForge.Core.Types.X.OpenGL.GLGlowLightingVideoEffect class.

public GLGlowLightingVideoEffect()