Log in or register to post comments

Flickering GUI in unity on android

September 23, 2015 - 9:30pm #1

Hi

1. Everytime I import Vuforia into a clean project I get 

Assets/Vuforia/Scripts/WireframeBehaviour.cs(41,24): warning CS0618: `UnityEngine.Material.Material(string)' is obsolete: `Creating materials from shader source string will be removed in the future. Use Shader assets instead.'

2. Much larger issue

Building for android 5.1 in unity 5.1.3 (unsure if issue exists in iOS as I havent tried) i get flickering rgb tinted buttons when I have Vuforia enabled. It goes away when I delete the asset. The only way to get rid of them is to enable development mode, which obviously isnt realistic for production versions. I have the asset https://www.assetstore.unity3d.com/en/#!/content/14656 which when enabled, I assume also creates a form of debugging, becaue it also removes the issue, but again, i dont want fps counter on my production app, just to fix the issue your software is creating.

On some occasions after restarting unity the issue goes away unless I turn on MultiThreaded Rendering. On my Samsung Tab2 the opposite works and requires the MultiThreaded to be on, otherwise the same issue occurs. So unless I enable dev mode, I cant get it working on both devices properly.

Issue exists in your sample scenes as well

I have attached a screenshot that illustrates the issue

AttachmentSize
Image icon _DSC5195.jpg75.02 KB
Image icon _DSC5194.jpg75.3 KB

Flickering GUI in unity on android

December 28, 2015 - 12:08am #10

I just finish testing the ARVR sample in unity 5.1.0f3 linux version, using vuforia 5.10

I am able to run the example but i have to change the script to time all the screens and simulate the presses.

because on android 6.0 i cant see any UI element, not the ones from the game sample or the ones i added.

 

if you switch to World Space the canvas and rotate the buttons or UI text that you created and they will show but once you detect anything with AR it goes away also the UI from the sample still missing with this fix, its only for the canvas.

 

On the computer everything shows normally,so i build for Windows 32 bit and run it on my win tablet, the game opened but no camera feed and this device has front/back cameras.

on android works but UI fails

Flickering GUI in unity on android

December 4, 2015 - 12:26am #9

I've just attached a picture in order to show the bug.  Also, white square is just our client's logo removed. 

Thanks. 

 

 

srednuht wrote:

This needs a BUMP

Same error here..

Using Unity 5, and vuforia 5, GUI starts to flick from "normal mode " to "green-red gradient mode" as the OP describes and show in his attached picture.

Devices : One plus One and Galax Tab 2

AttachmentSize
Image icon Screenshot_20151203-213455.png48.08 KB

Flickering GUI in unity on android

December 3, 2015 - 12:24pm #8

This needs a BUMP

Same error here..

Using Unity 5, and vuforia 5, GUI starts to flick from "normal mode " to "green-red gradient mode" as the OP describes and show in his attached picture.

Devices : One plus One and Galax Tab 2

Flickering GUI in unity on android

September 30, 2015 - 1:38am #7

We tried Unity 5.1.3 (and other Unity 5.x versions as well) on many devices, including a few samsung devices on Android 5.1, with scenes that include Vuforia and simple as well as more complex UI canvas setups, e.g.:

- 1 canvas + 1 panel (with a default background sprite with some transparency) + 1 button with default graphics and some text on it,

- 1 canvas + 1 panel (with a default background sprite with some transparency) and with vertical layout group +  multiple buttons aligned vertically within the panel

When doing our tests wioth Unity 5.1.3, we have used the Unity Player settings recommended here:

https://developer.vuforia.com/forum/faq/unity-player-settings

and the Canvas Render Mode was set to the default "Screen Space - Overlay" mode.
 
But we did not observe any UI rendering issue in these tests.
 

- What Render Mode have you used for the Canvas (Screen Space - Overlay, Camera Space or World ) ? 

- What is the exact device model of your Samsung Tab 2 ? (in your first post you mention a device on Android 5.1; then a few sentences after, you mention a Samsung Tab 2, but it's not clear if the Samsung Tab 2 is also running on Android 5.1)

 

Flickering GUI in unity on android

September 29, 2015 - 9:26pm #6

This is now the third time I am telling you I am USING STANDARD CANVAS and one button with default graphics.

Again as I said in the last reply. I AM USING YOUR STANDARD DEMO SCENES. If you actually read what I told you, maybe we would be closer to a solution by now. 

You clearly haven’t done a thing to reproduce the error on your side and are now just goggling around sending me to posts that are NOT related to the issue. Did I say it DISSAPERAS? No  I didn’t. I CLEARLY said and attached IMAGES AS REFERENCE to the issue that there are strange graphical issue on the buttons. Please do your job properly, this is going nowhere because you aren’t. So please GO BACK and actually read what I sent you so that I can ACTUALLY make proper use of your software and NOT have to run it in begug mode bcasue you cant grasp the issue at hand

Flickering GUI in unity on android

September 29, 2015 - 4:05pm #5

Which Unity UI Canvas elements are you using for your buttons? Can you provide some simple steps for us to reproduce in the ImageTargets sample app?

Also, there's another long-running thread related to UI elements in Unity 5 that might be related to your issue:

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

 

Flickering GUI in unity on android

September 28, 2015 - 11:58pm #4

Needing an update to fix this issue please

Flickering GUI in unity on android

September 24, 2015 - 9:55pm #3

AS is aid your default scenes dont work, so no standard unity gui

Flickering GUI in unity on android

September 24, 2015 - 5:41pm #2

Madea wrote:

Hi

1. Everytime I import Vuforia into a clean project I get 

Assets/Vuforia/Scripts/WireframeBehaviour.cs(41,24): warning CS0618: `UnityEngine.Material.Material(string)' is obsolete: `Creating materials from shader source string will be removed in the future. Use Shader assets instead.'

See this post:

https://developer.vuforia.com/forum/issues-and-bugs/got-warning-after-import-vuforia-4-2-3-unity-511f1#comment-2051433

Madea wrote:

2. Much larger issue

Building for android 5.1 in unity 5.1.3 (unsure if issue exists in iOS as I havent tried) i get flickering rgb tinted buttons when I have Vuforia enabled. It goes away when I delete the asset.

Are you using a 3rd party plug-in for your UI buttons?

 

Log in or register to post comments