Table of Contents

Class GLTwirlVideoEffect

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

Represents a twirl/twist geometric distortion effect that creates spiral warping around the center point.

public class GLTwirlVideoEffect : 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 twirl/twist distortion that spirals pixels around the center of the frame, creating a whirlpool or tornado-like effect. The distortion is strongest at the center and gradually diminishes toward the edges, creating a smooth radial twist pattern.

The twirl effect is commonly used for:

  • Transitions: Spiral wipe and spin transitions between scenes
  • Artistic Effects: Surreal, psychedelic visual styling
  • Music Videos: Dynamic, rotating visual effects synced to beat
  • Dream Sequences: Disorienting, kaleidoscopic effects
  • VJ Performances: Real-time spiral distortions for live mixing

This is an OpenGL-accelerated geometric distortion effect using GPU-based texture sampling and coordinate transformation. The effect performs radial distortion calculations on the GPU for real-time performance.

Performance: Real-time capable with GPU acceleration. Extremely efficient due to per-pixel shader operations. Suitable for high-resolution video (1080p, 4K) on modern GPUs.

Technical Details: Uses polar coordinate transformation to create spiral distortion. The effect applies angle rotation based on distance from center, creating the characteristic twirl pattern.

Related Effects: See also VisioForge.Core.Types.X.OpenGL.GLBulgeVideoEffect for outward bulging, VisioForge.Core.Types.X.OpenGL.GLSqueezeVideoEffect for inward pinching, and VisioForge.Core.Types.X.OpenGL.GLFishEyeVideoEffect for fisheye lens distortion.

Constructors

GLTwirlVideoEffect()

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

public GLTwirlVideoEffect()

Remarks

Creates a twirl effect using the OpenGL "twirl" shader. The effect parameters are typically controlled through the underlying GStreamer element properties.