Skip to main content
New Participant
November 16, 2015

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

    Inspiring
    November 16, 2015
    I don't believe it was ever made public.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Up and Coming
    November 17, 2015
    Is it possible to work it out from the distortion mesh?

    https://developer.oculus.com/doc/0.5.0. ... ml#details
    kojack
    Honored Contributor
    November 17, 2015
    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.
    Author: Oculus Monitor , Auto Oculus Touch , Forum Dark Mode , Phantom Touch Remover , X-Plane Fixer Hardware: Threadripper 1950x, MSI Gaming Trio 2080TI, Asrock X399 Taich Headsets: Wrap 1200VR, DK1, DK2, CV1, Rift-S, GearVR, Go, Quest, Quest 2, Reverb G2, Quest 3