Introduction
Cubic Lens Distortion (or undistortion as well) is well known in compositing or any VFX package. Basic Lens Distortion would usually solve the distord plate a the center, but closer you would get to the border of the picture, more the distortion will still there. The Cubic parameter let you control that.
It could also be used to give a “Chromatic Aberration” effect
This shader is based on the Algorithm shared by ssonTech website. This algorithm is used in SynthEyes (matchmove software) and is pretty simple.
Examples

Chromatic Aberration example : k = -0.15 ; kcube = 0.15 || using red distord channel with green and blue undistord channel


![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=2e3c34d6-233a-48ee-828b-e9058c92d145)











Pingback: PixelBender Cubic Lens Distortion for After Effects | François Tarlier's Blog > CG Artist, Matchmover, VFX, Open Source topics, Computer Vision, and geek stuff !
“La Maison” My dream company ^^
Nice tip, I’ll take a look into it
(vous cherchez pas un matchmover par hasard ? )
At “la maison” (vfx company in Paris/Saint-Cloud) a Softimage XSI/Mental Ray shader has been developed to apply lens distortion from 3D Equalizer’s data. The name’s lmWarpDistort.
It’s open source (GNU LGPL license), so it may interest you: http://bitbucket.org/lamaison/lmwarpdistort/wiki/Home