Skip to content
This repository was archived by the owner on Nov 8, 2019. It is now read-only.

gvr_compute_distorted_point does not apply chromatic aberration #645

Open
Consti10 opened this issue Nov 7, 2019 · 1 comment
Open

gvr_compute_distorted_point does not apply chromatic aberration #645

Consti10 opened this issue Nov 7, 2019 · 1 comment

Comments

@Consti10
Copy link

Consti10 commented Nov 7, 2019

Hello, in contrast to the documentation, it looks to me as if
gvr_compute_distorted_point does not apply chromatic aberration to the (x,y) output values.

Here is the code snippet I tested it with:

for(float x=0;x<1.0f;x+=0.01f){
        for(float y=0;y<1.0f;y+=0.01f){
            gvr_vec2f out[3];
            gvr_compute_distorted_point(gvr_api_->GetContext(),GVR_LEFT_EYE,{x,y},out);
            float diffX=out[2].x-out[0].x;
            float diffY=out[2].y-out[0].y;
            LOGD("Diff x y: %f %f %f",diffX,diffY,out[0].x);
        }
    }

It will always print '0' for the difference between red and blue channel

@Consti10
Copy link
Author

Consti10 commented Nov 7, 2019

Selected headset: Daydream view 2017
Developer options & skip vr entries enabled.
gvr version 1.180.0

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

No branches or pull requests

1 participant