Home▸Game Development▸VR Lens Pre-Warp: Radial Distortion Polynomial, Chromatic Fringe and Render Target Size

VR Lens Pre-Warp: Radial Distortion Polynomial, Chromatic Fringe and Render Target Size

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.

Game Development3DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 2D version
VR Lens Pre-Warp: Radial Distortion Polynomial, Chromatic Fringe and Render Target Size ↗ 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

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.

Virtual Reality SimulationVirtual RealityLens DistortionChromatic AberrationRender TargetHeadset Optics

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)