Log in or register to post comments

RenderTexture causes strange video feed behavior

June 25, 2013 - 3:35pm #1

Hello,

I've run into a strange issue that seems to happen only with Vuforia 2.5. Here is a link to a zip of a simple project demonstrating the bug (too large to attach), and I will attempt to explain it in some detail:

https://dl.dropboxusercontent.com/u/31502826/CameraTest.zip

In my scene, I have three cameras, an ARCamera and two regular camera. The first regular camera, let's call RenderCamera, is rendering to a RenderTexture, which is on a plane visible only by the other regular camera, let's call UICamera.

The scene plays as expected in the editor using the webcam - I see the video feed with the camera plane visible. However, when it is built to an iOS device, something bizarre occurs. The portion of the screen that should be the video feed goes black, and the RenderTexture plane is filled with the video feed, almost as though it is working as a mask. The cube in my scene shows up in the expected position over the black ARCamera portion.

The same project using Vuforia 2.0 appears to work as expected.

This bug also occurs if I delete the UICamera and allow the camera plane to be visible to the ARCamera.

This project was created in Unity 4.1.4.

Thanks in advance - let me know if you have any thoughts.

RenderTexture causes strange video feed behavior

July 10, 2013 - 2:30am #10

Thanks for sharing :)

RenderTexture causes strange video feed behavior

July 9, 2013 - 11:26am #9

Got it working with the added benefit of being able to apply effects to the video feed - thanks!

RenderTexture causes strange video feed behavior

July 9, 2013 - 12:59am #8

Great - please keep us updated.

RenderTexture causes strange video feed behavior

July 8, 2013 - 6:35am #7

Thanks for looking into this and providing a quick solution. I will attempt the method in Vuforia-BackgroundTextureAccess.

RenderTexture causes strange video feed behavior

July 8, 2013 - 3:02am #6

That's great to hear, and many thanks for sharing :)

N

RenderTexture causes strange video feed behavior

July 6, 2013 - 1:27am #5

I have rebuild my scene based on the Vuforia-BackgroundTextureAccess.unity sample and that seems to solve the problem. 

Thanks for swift response.

RenderTexture causes strange video feed behavior

July 5, 2013 - 8:44am #4

Ok, I checked with the development team and yes this did work on Vuforia 2.0  ...by chance.

We had to change the way that rendering happened internally and as a result this situation has occurred.

The best thing todo in this case is to use the methods described in the Video Background Texture sample as the way to go.

With this method the video background will be drawn into a Unity texture that can be used as required i.e. put it into the right layer to be visible to one camera only; or even set it up twice to create a picture-in-picture effect.

HTH, and keep me posted.

 

N

RenderTexture causes strange video feed behavior

July 5, 2013 - 8:10am #3

Hello,

Is there any update on this bug? I think I am experiencing the same issue. 

I was wondering whether it is possible to download the Vuforia 2.0 SDK somewhere so I can test whether it is an issue with Vuforia 2.5. 

Many thanks.

 

 

RenderTexture causes strange video feed behavior

July 1, 2013 - 7:08am #2

Hi,

Many thanks for reporting this issue.

I will revert back when I have more info.

thanks,

N

Log in or register to post comments