Class GLXRayVideoEffect
- Namespace
- VisioForge.Core.Types.X.OpenGL
- Assembly
- VisioForge.Core.dll
Applies hardware-accelerated X-ray visualization effect to video frames using OpenGL/OpenGL ES shaders. This effect simulates X-ray imaging by inverting luminance values and applying a monochromatic blue-green color scheme characteristic of radiographic images.
public class GLXRayVideoEffect : GLBaseVideoEffectInheritance
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 X-ray transformation is implemented as a fragment shader that inverts luminance, desaturates colors, and applies a characteristic blue-green tint. All color space transformations occur on the GPU in a single pass, ensuring real-time performance with zero CPU involvement.
Effect Description: The X-ray effect creates a visual appearance similar to medical radiographic imaging by inverting the brightness values of the video and applying a characteristic blue-green monochromatic color scheme. Dark areas become bright and vice versa, simulating how X-rays pass through less dense materials (appearing darker on film) while being absorbed by denser materials (appearing brighter). The effect desaturates the image and applies a cold blue-green tint typical of X-ray films and radiographic displays. This creates a haunting, ethereal visual that reveals internal structures and creates an otherworldly appearance. The result is reminiscent of medical imaging, security scanners, or sci-fi visualization effects.
Use Cases:
- Science fiction films and games requiring futuristic scanning or analysis visuals
- Music videos and artistic projects with surreal or otherworldly aesthetics
- Horror and thriller productions creating eerie, unsettling atmospheres
- Educational content simulating or demonstrating X-ray imaging concepts
- Medical or scientific visualization projects requiring radiographic-style effects
- Security and scanning simulation effects in games and interactive media
Performance Characteristics: This effect has minimal performance impact as it runs entirely on the GPU. Typical overhead is less than 0.5ms per frame on modern hardware. The X-ray transformation involves simple per-pixel operations (inversion, desaturation, and color tinting), making it extremely efficient. Performance is consistent across all resolutions and remains real-time capable even at 8K on modern GPUs. The effect requires no texture lookups or multi-pass rendering, adding virtually no latency to the video pipeline. On mobile devices with OpenGL ES, performance is excellent across all supported resolutions.
Constructors
GLXRayVideoEffect()
Initializes a new instance of the VisioForge.Core.Types.X.OpenGL.GLXRayVideoEffect class.
public GLXRayVideoEffect()