Home▸Game Development▸VR Lens Pre-Warp: Distorted Grids, Colour Fringes and Radial Profile (2D)

VR Lens Pre-Warp: Distorted Grids, Colour Fringes and Radial Profile (2D)

The same lens model on Canvas: the render-target grid, the pre-warped panel grid and the grid perceived through the lens in red, green and blue, plus the radial profile r(s) with a moving test dot and live pixel budget readouts.

Game Development2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
VR Lens Pre-Warp: Distorted Grids, Colour Fringes and Radial Profile (2D) ↗ Open standalone

See how a headset lens bends the picture and how the renderer cancels it. A straight grid is pre-warped with the inverse of the lens polynomial r = s(1 + k1 s^2 + k2 s^4), shown on the panel and then seen through the lens, per colour channel. Change k1, k2, chromatic spread, panel width and refresh rate to read the render target size, pixel count, shading rate and colour fringe. Blender-built headset and lens with numerical checks built in.

⚙ Under the hood

The same lens model on Canvas: the render-target grid, the pre-warped panel grid and the grid perceived through the lens in red, green and blue, plus the radial profile r(s) with a moving test dot and live pixel budget readouts.

Virtual RealityLens DistortionChromatic AberrationRender TargetHeadset Optics

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)