Hi, I'm having a problem using unity's Render Textures.I have a working scene with an AR Camera (camera1), all works fine here, both in unity player and android devices.
but then I add a second Camera (camera2) which outputs to a Render Texture.. it works just fine in unity player, but when I try it on android device, the background (smartphone's video-feed) is all black, augmentation still works fine .... BUT.... here comes the maddness:
I add a cube to which I applied the Render Texture... what I see there in the cube, instead of viewing camera2's output, I see a crop of the android camera's video feed .. now, I add a third camera (camera3) that also outputs to a new Render Texture, and also apply that new render texture to a new cube... and that texture and cube does work fine, showing the output of camera3.... but why is the first Render Texture intercepting the background video feed instead?can someone give a detailed insight on this issue?as a workaround, I suppose I could use the Vuforia's Background Texture Access sample to restablish the background video feed, but... what should I do with the first render texture that allways fails? create more than one, and don't use the firts one at all? but why does that happen???to be clear:1) the first bug is that video feed on background gets lost..2) the second bug is that the first unity camera to outputs to a render texture, captures a crop of the video feed instead of unity camera's output.
any hints on why it happens, and how to work around it?
How to use Unity Render Textures with Vuforia?
I've tried to use the Background Tetxure Access as a starter, but I still can't get any render texture to show up correctly, the new cameras I add do output to render textures, but all those textures looks all messed up, as when you open a broken jpg/gif image that you see lots of color n
How to use Unity Render Textures with Vuforia?
See this thread:
https://developer.vuforia.com/forum/android/unity-render-texture
How to use Unity Render Textures with Vuforia?
Thanks Allesandro,
I was having a bunch of different issues, I've finally solved them all, but there's still one that occurs and is not described in the article you refered:
let me explain it:
1) Take Background Texture Access sample as a start
How to use Unity Render Textures with Vuforia?
Is the camera that you use for the "render to texture" an AR Camera, or a normal Unity camera ?
How to use Unity Render Textures with Vuforia?
[quote=AlessandroB]
Is the camera that you use for the "render to texture" an AR Camera, or a normal Unity camera ?
[/quote]
it's just a normal Unity camera.
How to use Unity Render Textures with Vuforia?
Ok. So, could it be that this is an issue with Unity (and not with Vuforia), or am I missing something ?
How to use Unity Render Textures with Vuforia?
[quote=AlessandroB]
Ok. So, could it be that this is an issue with Unity (and not with Vuforia), or am I missing something ?
[/quote]
How to use Unity Render Textures with Vuforia?
Ok, could you explain exact setup of your project (possibly step-by-step or in sufficient detail) so that I can try to reproduce this and take a look ?
How to use Unity Render Textures with Vuforia?
[quote=AlessandroB]
Ok, could you explain exact setup of your project (possibly step-by-step or in sufficient detail) so that I can try to reproduce this and take a look ?
[/quote]
my Mistake!
How to use Unity Render Textures with Vuforia?
No problem, thanks for your confirmation.