googlevr / gvr-android-sdk

Google VR SDK for Android
http://developers.google.com/vr/android/
Other
3.28k stars 1.28k forks source link

gvr_compute_distorted_point does not apply chromatic aberration #645

Open Consti10 opened 5 years ago

Consti10 commented 5 years ago

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 commented 5 years ago

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