Vuforia Background Plane renders red texture on Android
Hi , I have a simple coloring application using Vuforia and RegionCapture. The problem is that on Android device BackgroundPlane main texture becomes red.
This doesn’t occur on Unity Editor. Problem occurs only on Android device.We have tested it on many Android devices.
Vuforia version: 8.3.8 (Problem also occurs for version 8.1.7)
Unity version: 2018.4.0f1 (Problem also occurs for Unity 2019.2.3f1)
Steps to reproduce the problem:
Create new simple Unity scene with Vuforia Augmented Reality Support
Add AR Camera and imageTarget
Create simple cube to test BackgroundPlane texture.
Add script on cube to copy texture from BackgroundPlane
Build on Android (Build system: Gradle or Internal. Scripting backend: Mono, or IL2CPP)
Background Plane texture on the cube renders red. (see attachment 01)alt text
This causes serious problem with coloring on the final Android app. Region Capture uses BackgoundPlane texture, so in the final app it makes all textures red. (see attachment 02) I made sure that the script doesn’t change color of the texture. It is simple script just to copy texture from Background Plane. It means it is internal Vuforia problem.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BackgroundPlanetest : MonoBehaviour
{
public GameObject BackgroundPlane;
void Start()
{
StartCoroutine(CheckBackgroundPlane());
}
IEnumerator CheckBackgroundPlane()
{
if (!BackgroundPlane)
{
BackgroundPlane = GameObject.Find("BackgroundPlane");
}
else
{
GetComponent<MeshRenderer>().material.mainTexture = BackgroundPlane.GetComponent<Renderer>().material.mainTexture;
}
yield return new WaitForSeconds(1);
StartCoroutine(CheckBackgroundPlane());
}
}
Vuforia Sample Applications show the same behavior.
Thank You for your help.
Michał Dąbrowski
Answer by nandawan911 · Sep 13, 2019 at 01:59 AM
your script not wrong problem in RegionCapture plugin because compatible with vuforia 7.x not 8x
Your answer
Follow this Question
Related Questions
Google Cardboard + Vuforia - Camera size is small 3 Answers
Vuforia on HoloLens 2 1 Answer
Image Target Recognizer 0 Answers