Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
lhunker's avatar
lhunker
Honored Guest
10 years ago

Oculus DK2 Distortion Algorithm

Hi,

Does anyone know where I could find a description of the distortion algorithm used for the DK2. I am trying to implement the algorithm in hardware (on an fpga) therefore I cannot just use the sdk. So far I have been able to find a discription of the DK1 algorithm, but nothing about the DK2 algorithm.

Thanks

3 Replies

  • The distortion uses a catmull rom spline with around 10 coefficients. (DK1 used a simple formula with 4 coefficients).
    You can find the algorithm in the LensConfig::DistortionFnInverseApprox method in the OVR_Stereo.cpp file in the 0.4 sdk. I believe it was hidden after that (either 0.5 or 0.6 removed the source for it). You'll need to run the 0.4 sdk to find the coefficients for the DK2.