Log in or register to post comments

Augmented Reality camera only show pink and green with black and white background. Please help me

September 11, 2019 - 8:54am #1

So, I did everything correctly, other device seems to work fine but when I trasnfer the apk to my Oppo F11 Pro, the AR camera display only pink and green with a black and white background.

What's wrong here ?

if I download application from app store, it's fine too. I think I might be missing out something during the build.

AttachmentSize
Image icon Bug mentioned photo.jpeg52.75 KB

Augmented Reality camera only show pink and green with black and white background. Please help me

July 26, 2020 - 12:25pm #15

Having the exact same problem - using a moto e6 plus. All the interactions still work and I installed it on my sisters phone (Huawei) and it worked fine so it has to be a hardware problem. Does anyone have a workaround yet??

 

AttachmentSize
Image icon Screenshot_20200726-193233.png1.57 MB

Augmented Reality camera only show pink and green with black and white background. Please help me

July 23, 2020 - 10:42am #14

I have the same issue. any one found how to fix this issues ?

there are any list for android mobile devices with this issue ?

my mobile oppo f9, used unity 2019.4 with all available vuforia SDK.

thanks in advance

Augmented Reality camera only show pink and green with black and white background. Please help me

June 24, 2020 - 10:48pm #13

Hi,

@Xpommoc can you describe the location of this file?

Augmented Reality camera only show pink and green with black and white background. Please help me

June 9, 2020 - 9:04am #12

I have the same problem on a blackview BV9500Plus phone

Augmented Reality camera only show pink and green with black and white background. Please help me

March 14, 2020 - 3:56pm #11

Well, seems like the problem is in VideoBackground shader (Packages/Vuforia Engine AR/Vuforia/Shaders). To be more particularly with YUVNV21 in VB_YUVNV12_YUVNV21.

Spend couple hours to search info about, found a way to remove image split on 4 images on the screen and used the formulas to calculate conversion from YUVNV21 to RGB, but it doesnt work properly for now(seems like it recognize green color as a blue).

Still, it looks better than pink and green.

Highlighted with green the region, corresponds for removing 4 images(Not sure, but seems like _MainTex corresponds to your AR target image, _UVTex1 - to background camera view, so multiplying it by 1/2 reduces the number of images to 1).

Highlighted with yellow region corresponds to color conversion from YUVNV21 to RGB. Playing with values at higlighted pink region you can find the values, that corresponds to proper display of all colors from camera to your screen. The main problem is 4th value of vector, coz its alpha channel and i didint find specification for conversion, that contains 4 dimensional vector.

So, if you will find proper values - feel free to share, guys)

P.S. IDK, why vuforia couldnt fix this problem for years, maybe its really device connected problem, but you always can create special file for list of problem devices, so people in future will not have such problem.

/*===============================================================================
Copyright 2019 PTC Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
===============================================================================*/

#ifndef VUFORIA_VB_YUVNV12_YUVNV21_INCLUDED
#define VUFORIA_VB_YUVNV12_YUVNV21_INCLUDED

struct v2f {
    float4  pos : SV_POSITION;
    float2  uv : TEXCOORD0;
    float2  uv2 : TEXCOORD1;
};

sampler2D _MainTex;
float4 _MainTex_ST;
sampler2D _UVTex1;
float4 _UVTex1_ST;

v2f vuforiaConvertRGBVert(appdata_base v)
{
    v2f o;
    o.pos = UnityObjectToClipPos(v.vertex);
#if VUFORIA_YUVNV12
    o.uv = TRANSFORM_TEX(v.texcoord, _MainTex);
o.uv2 = TRANSFORM_TEX(v.texcoord, _UVTex1);
#else    
o.uv = TRANSFORM_TEX(mul(v.texcoord, 1), _MainTex);
o.uv2 = TRANSFORM_TEX(mul(v.texcoord, 0.5), _UVTex1);
#endif

    return o;
}

half4 vuforiaConvertRGBFrag(v2f i) : COLOR
{
    half4 c;
    half y = tex2D(_MainTex, i.uv).r;
half2 uv = tex2D(_UVTex1, i.uv2).rg;

#if VUFORIA_YUVNV12 
    half4 v4yuv1 = half4(y, uv, 1.0);

    c.r = dot(half4(1.1640625,  0.000000000,  1.5957031250, -0.87060546875), v4yuv1);
    c.g = dot(half4(1.1640625, -0.390625000, -0.8134765625,  0.52929687500), v4yuv1);
    c.b = dot(half4(1.1640625,  2.017578125,  0.0000000000, -1.08154296875), v4yuv1);
    c.a = 1.0;
#else      
    half4 v4yuv1 = half4(y, uv, 1.0);

half r = dot(half4(1, 2.03211, 0.000000000, -1.08154296875), v4yuv1);
half g = dot(half4(1, 0.000000000, 1.13983, -0.67060546875), v4yuv1);
half b = dot(half4(1, -0.39465, -0.58060, 0.52929687500), v4yuv1);

if (r < 0) r = 0;
if (g < 0) g = 0;
if (b < 0) b = 0;
if (r > 255) r = 255;
if (g > 255) g = 255;
if (b > 255) b = 255;

c.r = r;
c.g = g;
c.b = b;
    c.a = 1.0;
#endif

    return c;
}

#endif //VUFORIA_VB_YUVNV12_YUVNV21_INCLUDED

Augmented Reality camera only show pink and green with black and white background. Please help me

March 5, 2020 - 8:26pm #10

I have the exact same issue with my Samsung A51.

Hopefully we can get a fix.

Augmented Reality camera only show pink and green with black and white background. Please help me

February 28, 2020 - 3:34am #9

It seems device related issue. I am facing the issue only with the realme device. oneplus device is rendering AR scene properly. What is workaround to remove this issue? 

thanks

 

Shyam

Augmented Reality camera only show pink and green with black and white background. Please help me

February 12, 2020 - 1:34pm #8

i have the same problem but i think is because i have a phone with 2 cameras and take the second camera

i dont know how select wich camera use

Augmented Reality camera only show pink and green with black and white background. Please help me

February 5, 2020 - 9:33pm #7

I'm also have the same problem here but a check on "Include ARCore Library" in VuforiaConfiuration seems to fixed it. But this lead to another problem which is the app keep crashing. Is anybody encountered anything similar? Or anyone encountered solutions for this?

Augmented Reality camera only show pink and green with black and white background. Please help me

January 23, 2020 - 2:38am #6

Hello, I am Joe

I have same problem.

My device is Oppo F11 Pro.

AttachmentSize
Image icon Recall_132227533663639560.png2.43 MB

Augmented Reality camera only show pink and green with black and white background. Please help me

November 24, 2019 - 2:09pm #5

Hello. Have same problem here. it started after i import google vr. Delete it even open new project but still this happens. In other phones no problem but my Sony Xperia XA1 ultra this happens. Itry open Google Play Stro apps but even there it happens. Anyone know solution?

Pics here.

https://ibb.co/MVskZzt

https://ibb.co/52Gdym8

https://ibb.co/pW4PVzj

unity 2019.1.9f1

vuforia 8.3.8

AttachmentSize
Image icon 3.jpeg41.3 KB
Image icon 2.jpeg55.83 KB
Image icon 1.jpeg82.26 KB

Augmented Reality camera only show pink and green with black and white background. Please help me

October 14, 2019 - 4:26am #4

Hi,

Have you tried the previously mentioned approach to change the API to open GLES2?

In addition if on other devices the same setup works, then it is highly likely to be a hw issue with your device.

Thank you.

Vuforia Engine Support

Augmented Reality camera only show pink and green with black and white background. Please help me

October 13, 2019 - 7:57pm #3

I'm having this same exact issue on my oppo f11. Works fine on other phones. Would be interested to know if there is a known fix for this.

Augmented Reality camera only show pink and green with black and white background. Please help me

September 12, 2019 - 4:45am #2

Hi,

Based on the imageTarget I assume you are using Unity to developer your application. Unity handles all the rendering based on the Graphics engine you select in the build settings.

I would advise to change it from Auto to Open GL ES 2 or 3 and try it out. However if this will not solve the issue and the same application, with the same build configuration is working on other devices , the error that you are facing would be device related.

Thank you.

Vuforia Engine Support

 

Log in or register to post comments