Log in or register to post comments

Background Video Scaling

January 3, 2014 - 4:31pm #1

I have tried a lot of different techniques and still have not found anything that works for making the background video image less than full screen in iOS.  What I want is to have the live video take up only a portion of the screen (the top half).  I'm sort of designing a virtual camera, imagine an LCD display on the back of the camera and that is where I want the live video to preview.

I have tried the Video Background example, but the issue is not as simple as just changing the size of the background plane that is rendering the video. If I do that, then as the person rotates and moves the camera, the 3D model that appears is not displayed at the proper axis point in space. It appears to be drifting and off-register.

I thought I was on to something by simply using the RenderTexture in the Camera to render the full video onto a plane of my choice. Worked fine the in Editor, but did not work on the device (iPhone 5).

What is the best approach for doing this? Basically, I don't want the ARCamera or the background video to be full screen, I want it to render into a Window.

Bryan

Background Video Scaling

January 6, 2014 - 4:26am #2

Hi Bryan

You are on the right track by trying to use the Background Texture Access method of rendering, which we recommend for more complex render setups.

Have a look at these threads:

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/multiple-cameras-scene-issue

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/latest-update-breaks-projected-shadows

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/no-live-camera-feed-ios

 

In the first thread the developer reported it was working ok in the editor but was having problems on the device.  In that case there was a missing VideoTextureBehaviour script and it had to be switched to OpenGL ES2 because OpenGL ES1 is not supported.

Let me know how you get on with this.

N

Log in or register to post comments