Log in or register to post comments

how to create button zoom

February 2, 2013 - 2:22am #1

 

I want to create a button to zoom in and zoom out. I use vuforia + unity3d. for example I use ImageTarget.unitypackage.
how to create buttons to zoom in and zoom out?
 
thank's
 
achrid

how to create button zoom

February 2, 2013 - 8:34am #2

To zoom the device camera, or to create a zoom effect with the augmentation?

The ImageTargetsMenu script in the ImageTargets sample shows how to activate camera focus modes, but you can't set the magnification - this would throw off the camera callibration in any case.

To zoom the augmentation, I'd recommend scaling it rather than moving the ARCamera - http://docs.unity3d.com/Documentation/ScriptReference/Transform.html

Also see: http://docs.unity3d.com/Documentation/Components/comp-ImageEffects.html

 

Log in or register to post comments