Log in or register to post comments

pinch zoom?

April 14, 2014 - 7:32am #1

Hi all,


I have a script that supposed to allow pinch/zoom functionality when applied to the AR camera in Unity 4, but when I test on my android tab it doesn't work. I wonder if anybody out there knows if  there's a kind of 'override' value in the vuforia extension that doesn't allow pinch/zoom, or should this be possible?





pinch zoom?

April 15, 2014 - 5:17am #6

Thanks for the reply.

This is pretty much as I expected. So maybe the solution is to 'fake' the zoom by resizing the image target/child objects as refered to in my previous post.

pinch zoom?

April 15, 2014 - 4:51am #5

I guess the script tries to change the camera filed of view and/or the positioning of the camera;

either way, Vuforia overrides the position and projection matrix of the ARCamera at every frame and this is the intended behaviour, so to make sure that the Augmented Reality visualization is consistent with the tracking data and with the device camera view.

You may try to overrride the Vuforia camera behaviour by adding some custom scripts to the ARCamera itself, but this is a customization which is up to you, as strictly speaking this is not a supported use case.


pinch zoom?

April 15, 2014 - 4:02am #4

Further to this topic, if it's not possible to pinch zoom with a camera script, is it possible to scale the image target by the same method? Presumably any child objects would scale accordingly?


Would really appreciate some help on this.

pinch zoom?

April 15, 2014 - 3:45am #3

The script is a generic Unity script, so possibly not intended for use with an AR camera, although I see no reason why that would be the case.

When I apply it to the AR camera it doesn't throw any errors - just doesn't work.



pinch zoom?

April 14, 2014 - 3:55pm #2

Is this pinch-zoom script specific to the Vuforia AR camera or was it designed for general Unity camera objects? Are you able to make the script work on a regular non-AR camera?

Log in or register to post comments