Log in or register to post comments

Background rendering is black when another camera with rendertexture is present in the scene

December 9, 2014 - 6:54am #1

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.

Background rendering is black when another camera with rendertex

March 1, 2015 - 11:07pm #4

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

 

Background rendering is black when another camera with rendertex

March 1, 2015 - 7:30pm #3

I'm having the same problem. Did you ever find a proper solution to this or is the background rendering workaround necessary?

Background rendering is black when another camera with rendertex

December 10, 2014 - 1:29am #2

Seems that rendering background image with the VideoTexture method as in the Backgroundtextureaccess sample works in that case. That will do the trick for now but I'm curious about what cause this problem when using the default background rendering.

Log in or register to post comments