Table of Contents

Class GLSqueezeVideoEffect

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

Represents a squeeze/pinch geometric distortion effect that creates an inward concave compression toward the center.

public class GLSqueezeVideoEffect : GLBaseVideoEffect

Inheritance

Inherited Members

Remarks

SDK Availability: Media Blocks SDK

Platforms: Windows, Linux, macOS, Android, iOS (requires OpenGL/OpenGL ES support)

Rendering Backend: OpenGL-accelerated

This effect applies a concave spherical distortion that pulls pixels inward toward the center of the frame, creating a squeezing or pinching appearance. The distortion is strongest at the center and gradually diminishes toward the edges, simulating the appearance of viewing the video through a concave lens or as if the center is being sucked into a vortex.

The squeeze/pinch effect is commonly used for:

  • Shrinking Effects: Simulating compression, implosion, or miniaturization
  • Vortex/Portal Effects: Creating suction or portal entry animations
  • Artistic Distortion: Abstract visual effects emphasizing center contraction
  • Transitions: Scene transitions suggesting collapse or disappearance
  • Emphasis Reduction: De-emphasizing background while keeping edges visible
  • Comedic Effects: Creating exaggerated shrinking or "being sucked in" visuals

This is an OpenGL-accelerated geometric distortion effect using GPU-based radial displacement in the opposite direction of the bulge effect. The effect performs efficient per-pixel coordinate transformation to create smooth concave curvature.

Performance: Real-time capable with GPU acceleration. Extremely efficient shader implementation with minimal computational overhead. Suitable for high-resolution video and live streaming.

Technical Details: Uses inverse radial distance calculations compared to the bulge effect, applying inward coordinate displacement. The distortion follows a negative curvature function to create the pinching effect while maintaining smooth transitions to undistorted edges.

Related Effects: See also VisioForge.Core.Types.X.OpenGL.GLBulgeVideoEffect for opposite outward expansion, VisioForge.Core.Types.X.OpenGL.GLTwirlVideoEffect for spiral distortion, and VisioForge.Core.Types.X.OpenGL.GLLightTunnelVideoEffect for perspective-based center effects.

Constructors

GLSqueezeVideoEffect()

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

public GLSqueezeVideoEffect()

Remarks

Creates a squeeze/pinch effect using the OpenGL "squeeze" shader. The effect applies concave spherical distortion that pulls content toward the center point of the frame.