Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distortion coefficients for various viewers #154

Open
spidersharma03 opened this issue Jul 26, 2016 · 0 comments
Open

Distortion coefficients for various viewers #154

spidersharma03 opened this issue Jul 26, 2016 · 0 comments

Comments

@spidersharma03
Copy link

Are the distortion coefficients available for all types of devices? right now, the info is available for cardboard V1 and V2 in the device-info.js class.

Other than that, I had a technical question regarding the code ::

vec2 barrel(vec2 v, vec4 projection, vec4 unprojection) {
vec2 w = (v + unprojection.zw) / unprojection.xy;
return projection.xy * (poly(dot(w, w)) * w) - projection.zw;
}

I see that the poly function does the barrel distortion, but what I don't understand is that what exactly happens before and after that. I checked the code and the projection and unprojection vectors are derived from the projection matrices. Is there any link or reading I can refer to you?
Thanks!

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

No branches or pull requests

1 participant