Log in or register to post comments

zoom in and zoom out on object

November 17, 2011 - 6:44am #1

Hi,

We are working on AR project. We are trying to zoom in and zoom out object displayed on detected marker. Any suggestions/hints?

Thanks in advance
Atik

Re: zoom in and zoom out on object

November 19, 2011 - 9:43am #2

Try playing around with the scale of the model. In the ImageTargets sample you'll find the code in the renderFrame method of ImageTargets.cpp:

        SampleUtils::scalePoseMatrix(kObjectScale, kObjectScale, kObjectScale,
                                     &modelViewMatrix.data[0]);

- Kim

Log in or register to post comments