Class BarrelDistortionGenerator

All Implemented Interfaces:
processing.core.PConstants

public class BarrelDistortionGenerator extends StereoscopicGenerator
Optimized implementation of the barrel distortion algorithm. Builds a lookup table to map pixels in sketch to the distorted view that will be countered by the lenses. Defaults to settings for an Oculus Rift's lenses. Much thanks to this guy for explaining barrel distortion: https://www.youtube.com/watch?v=B7qrgrrHry0 And to this guy for pointing out that the radius (r) must be normalized: http://stackoverflow.com/questions/28130618/what-ist-the-correct-oculus-rift- barrel-distortion-radius-function