Hello,
In my application I'd like to use another camera that will render something in a rendertexture, but as soon as I add this camera to the scene the Background goes all black. It affects only the background and I can see the 3d models if I look at the marker.
I was only able to test on Android but I have the same behaviour with 2 different phones (LG G2 and Samsung Galaxy S2), and Unity 4.6f3 (current Unity version).
Steps to repro this behaviour :
- Create a new Unity project, switch platform to Android
- Remove the main camera
- Import Vuforia package
- Create an AR camera
- Create a new unity Camera
- Create a Render texture
- Affect this render texture to the camera
- Build and run on an Android device -> no camera background is displayed.
Did I missed something or is this a big with current implementation ? I'm stuck on this problem for 2 days, my next step is to try rendering the background "myself" like in the image access sample.
To render the Camera background to a texture, you could also use the SetVideoBackgroundTexture() method of the the QCARRenderer class
See also API reference:
https://developer.vuforia.com/resources/api/unity/class_vuforia_1_1_q_c_a_r_renderer