Topic locked

white screen when found target on some android devices

May 13, 2015 - 7:25am #1

Vuforia SDK Version: 4.2 -
Description with steps to reproduce:

1. Create new scene.

2. Add prefabs ImageTarget and ARCamera

3. Add sphere as child of imageTarget

(All like in tutorial)

4. Build android apk

 

Run on device (Reproduces on Prestigio Multipad PMT577_3G with 4.2.2, Samsung Galaxy S4 mini with 4.4.2, not reproduces on sony xperia sola with 4.0.4)

Result: white screen when I point my camera on marker. Camera return to normal when I lose marker (it even possible to extended tracking after, but pointing back to marker puts my app to white screen again).

-
Development OS (Mac OS X, Windows, Linux): Mac OS, Windows -
Mobile OS and Version: Android 4.2.2, Android 4.4.2 -
Mobile Device Manufacturer and Model name: Prestigio Multipad PMT577_3G, Samsung Galaxy S4 mini -
Do the Vuforia Sample Applications show the same behavior?: Not tested, but use only vuforia prefabs.

white screen when found target on some android devices

June 10, 2015 - 3:14am #23

UPDATE on Unity 5.0.x:

Unity 5.0.3 has been released and it includes the fix to the Unity 5 UI + rendering issues with Vuforia 4.2.3.

 

You can download Unity 5.0.3 from:

 https://unity3d.com/get-unity/download/archive

white screen when found target on some android devices

May 22, 2015 - 1:07am #22

white screen when found target on some android devices

May 21, 2015 - 11:58pm #21

OK, thanks for confirming.

Note that you can also achieve the same effect of the "Unlit'/Texture" shader by editing the VideoBackground shader of the VideoMaterial and replacing this line:

"Queue"="geometry-11"

with this:

"Queue"="Geometry"

In addition, the VideoBackground shader is also disabling ZWrite and Culling (while the Unlit/Texture does not).

 

white screen when found target on some android devices

May 21, 2015 - 11:47pm #20

As you said before, I looked for the EmulatorVideoBackground and

VideoMaterial that I found under Assets->Qualcomm Augmented Reality->Materias and change the Shader to Unlit/Textured inside the Inspector.

white screen when found target on some android devices

May 21, 2015 - 11:42pm #19

What change in particular did solve your issue ?

The "queue"="Geometry" change in the VideoBackground shader ? or replacing the Shaders of your 3D models with other Mobile/Diffuse or Legacy/Diffuse shaders ?

white screen when found target on some android devices

May 21, 2015 - 1:25pm #18

Thanks I followed your advice and changed the shaders the way you said before. And it is working now. Thanks

white screen when found target on some android devices

May 21, 2015 - 1:01pm #17

Hi,

it seems this issue (white screen) may be related to the one discussed here:

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/vuforia-42-unity-501-ui-issue

From that thread:

- a possible "workaround" has been identified and successfully tested by some of the developers in this thread, which consists of editing the VideoBackground shader (located in the "Assets/Qualcomm Augemnted Reality/Shaders" folder) which is applied to the BackgroundPlane object and replacing this line:

"queue"="geometry-11"

  with this:

"queue"="Geometry"

Note that this "workaround" might have potential side effects and you are encouraged to test your application extensively before committing to using it.

 

- a second "workaround" (for those who are not strictly required to use the "Standard Shader" of Unity 5 in their project) is to replace the Standard Shader with a Legacy shader (such as the Mobile/Diffuse or other Unity 4.x legacy shaders)

white screen when found target on some android devices

May 21, 2015 - 12:48pm #16

It´s the same thing with my project. :( Please HELP! 

 

white screen when found target on some android devices

May 21, 2015 - 10:17am #15

Andro010 wrote:

You replaced those files with what? I have the same problem as AndreiBlack but I cant seem to find a way to make it work. Not sure how to "replace it".

Please help

Hi! I changed the shaders on this two materials: EmulatorVideoBackground and VideoMaterial. Just locate them on the Project tab, select them, and change de shader on Inspector tab to Unlit/Texture. Got it?

Sorry for the late response.

white screen when found target on some android devices

May 20, 2015 - 4:18am #14

I just frame debugged the app with the adreno profiler on a moto g2. All geometry is drawn. It looks to me if the buffers are "flushed" (also depth and stencil) and then the next drawcall is only showing white. As I wrote before, this only happens since I updated to 4.2.3 from the version before. It's not happening on IOS and in editor.

It would be nice if any develop might say a word on this.

white screen when found target on some android devices

May 19, 2015 - 5:52pm #13

What do I replace it with? Sorry I am new to vuforia and I am making my Graduation Thesis on Augmented Reality. I need help as soon as possible. Thanks.

white screen when found target on some android devices

May 19, 2015 - 5:43pm #12

You replaced those files with what? I have the same problem as AndreiBlack but I cant seem to find a way to make it work. Not sure how to "replace it".

 

Please help

white screen when found target on some android devices

May 19, 2015 - 9:00am #11

Same problem here with Unity 5.0.2f1 and Vuforia 4.2.3. Problem only occurs on android. As soon as a image target is tracked, the screen renders white. If the target is lost, the video background stream is restored. App is working on IOS and in editor.

Described workaround in this thread is not working.

white screen when found target on some android devices

May 18, 2015 - 1:08pm #10

Ok, I did the same thing maximrouf did here: https://developer.vuforia.com/forum/issues-and-bugs/unity5-vuforia4-everything-flashing-around-my-object-when-ta

and now it works :D

maximrouf wrote:
OK.. I solved my problem.
I replaced RenderVideoBackground and VideoBackgroung shaders on Unlit-Texture shader (in EmulatorVideobackground and VideoMaterial - materials)

white screen when found target on some android devices

May 18, 2015 - 12:40pm #9

This solution worked for our app that we have working on and hence a thumbs up :). But I'm curious about AdreiBackB's problem. I'm new to this. Somebody please respond. 

white screen when found target on some android devices

May 18, 2015 - 12:10pm #8

Well, that's exactly what I don't want. I want to use Forward Rendering path.

I updated Unity to version 5.0.2f1 just now, and when the target is found on the running App, some of the normal maps I used on the object appears on the smartphone screen as if it were a 2D texture. Really weird. Instead of the white screen I got this normal maps now. And the map changes depending on the angle the camera is facing the target.

When the target is lost, everything is normal, I'm seeing the real world.

white screen when found target on some android devices

May 18, 2015 - 9:45am #7

The problem is with the Rendering Path in PlayerSettings>Settings for Android>Other Settings>Rendering. The problem occurs when it is set to Forward or Legacy Deferred (light prepass). Setting it to the other two options worked for me on my one plus one.

white screen when found target on some android devices

May 17, 2015 - 5:55pm #6

Can someone explain this issue? Is this a bug with the new SDK update?

white screen when found target on some android devices

May 15, 2015 - 12:51pm #5

I'm having the same problem: the screen becomes white when ARCamera tries to render some object, be it inside or outside ImageTarget. It does not happen with normal Unity Camera. It also does not happen when I set ARCamera Rendering Path to Legacy Vertex Lit.

Changing object shader just made the color of the screen changes to blue instead of white.

I'm using Unity 5.0.1f1, Samsung Galaxy S3 (Android 4.3) and Vuforia 4.2.3

white screen when found target on some android devices

May 14, 2015 - 4:11am #4

Also ran same project on iPad Air. There are no white screen, but flashing background (like at this post: https://developer.vuforia.com/forum/issues-and-bugs/unity5-vuforia4-everything-flashing-around-my-object-when-ta) and disappearing UI. Flashed background fixed as told in pos mentionerd before, but UI still disappearing.

 

UPD: looks like UI not disappearing comletly, but becomes transparent (it drop shadow on rect contours of sprites).

white screen when found target on some android devices

May 14, 2015 - 12:50am #3

It's an issue of the shading mode of Unity. I can't find the post -in the forum- where this was discussed but they've solved with setting a legacy custom shader, applied to the model (the sphere in this case).
I've tried this solution getting the same trouble... just with blue or black colors with Mobile or Legacy shaders.

Is there a recommended shading option (for Android)?

white screen when found target on some android devices

May 13, 2015 - 1:47pm #2

Hi there...
Have you found a solution? 

same error here 

Topic locked