- Home /
Unity 5.2 camera not recognised
I just upgraded to Unity 5.2 and now an Augmented Reality project (built with ARToolkit, http://artoolkit.org/) that relies on the camera (either laptop camera for testing in the editor or phone camera) does not work anymore. Instead I get a texture that indicates that the camera does not get any input.
Hope someone can tell me what goes wrong.
Thanks.
Answer by sonic220 · Oct 17, 2015 at 04:18 PM
Got around this problem myself the other day, it's a shader problem that it's written inside the C# script ARController. (line 1283 if I remember correctly )
Use this shader instead:
Shader "VideoPlaneNoLight"
{
Properties
{
_Color ("Main Color", Color) = (1,1,1,1)
_MainTex ("Base (RGB)", 2D) = "white" { }
}
SubShader
{
Pass
{
Material
{
Diffuse [_Color]
}
Lighting Off
ZWrite Off
Blend SrcAlpha OneMinusSrcAlpha
SeparateSpecular Off
SetTexture [_MainTex]
{
constantColor [_Color]
Combine texture * constant, texture * constant
}
}
}
}
Thanks. I'm currently pretty busy with another project, but I'll give it a try soon.
@sonic220 you were right about the line number :-) but the code you posted is the same as what is in the script as I downloaded it. I'll dig a little further to see if I can find a solution. I guess I'll contact he developers and see if they have a solution.
Your answer
Follow this Question
Related Questions
Color detection in Camera 0 Answers
Passing Underneath Section of a Mesh 0 Answers
Does Unity3D support ODG R-7 smartglass? 2 Answers
The "Windows Holographic" option is missing under Virtual Reality SDK's 3 Answers