Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Distortion Correction? #11

Open
SunnyVZ777 opened this issue Apr 21, 2018 · 1 comment
Open

Distortion Correction? #11

SunnyVZ777 opened this issue Apr 21, 2018 · 1 comment

Comments

@SunnyVZ777
Copy link

Because the maths is difficult to deal with. So i decided to buy the official holokit cardboard. And i am using iphone 8 for test.

So far, i feel the depth is correct ,which is good (i bought a third party headset and depth is incorrectly closer than the real thing). However, it has a strong distortion problem in the edge area. So only the position close to the center of view is marching the real world. I see that in the code, holokit v1 model set the distortion correction to zero. And if i manually adjust the distortion, it will break the perspective.

So what should i do?

@SunnyVZ777
Copy link
Author

i modified HoloKit-BarrelDistortion.shader, change "float a = 1.0 + r2 * _BarrelDistortionFactor;" to "float a = 1.0 + (1-sqrt(r2)) * _BarrelDistortionFactor;". it seems better in my case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant