Log in or register to post comments

Accessing TextureBufferCamera on Android device

April 7, 2014 - 7:57am #1

I have a vuforia Unity project building for Android and I wanted to add a feature where you could zoom the cameras view as seen on the device. I did this by getting the runtime generated TextureBufferCamera object (with a text based find) and then modifying its Size param. All worked well in the editor but when I built it for Android it failed to find the object. Further, a search for any camera failed to find any differently named object enabled or disabled.

Is this available in the Android build, and if not, how would I adjust the camera textures size? How is it rendered into the scene?

 

Thanks

Accessing TextureBufferCamera on Android device

April 7, 2014 - 9:23am #3

Thanks for that, yes I see what you mean by a starting point! In the demo I try to scale the camera view texture and then the model tracking doesn't match up. I added a child camera to the AR camera and gave it a narrower FOV but it only scales the kettle. I put them both together and it has similar tracking matching problems. It is looking to be much harder than I can handle for this test app that I'm trying.

 

If anyone would care to take on this challenge I'd be really appreciative as otherwise I will have to give up on the plan. Shame really as it looked really good in the editor!

Accessing TextureBufferCamera on Android device

April 7, 2014 - 8:03am #2

Hi, akaik,  the TextureBufferCamera should just be a Play Mode-specific object; you should not rely on that for mobile deployment. 

A better approach to perform some sort of zooming effects could be the one used in the Background Texture Access sample (as a starting point)

Log in or register to post comments