Forum Discussion
lhunker
10 years agoHonored Guest
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 s...
kojack
10 years agoMVP
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.
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.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 20 days ago
- 1 year ago