Log in or register to post comments

Trackable width

February 15, 2012 - 4:40am #1

Hi,
I am confused with the width parameter which we have to input while making a new trackable object. Is it in relation to the actual dimension of the image? Or is there a way to find out what should be the width parameter?

Also, what is to be done in order to increase the size of the object ( cube in the simple example project documentation )

Thanks

Re: Trackable width

February 15, 2012 - 8:16pm #2

That width defines the size of the trackable in scene units. It's somewhat arbitrary, but needs to work with the near and far parameters you use for the projection matrix. The samples use a target width of around 200.

If your app can track multiple trackables at once it is important that the relative size of the trackables match the relative size of the real-world objects.

To increase the size of the virtual object you need to apply a scale. The samples show how to do this, see the renderFrame method in ImageTargets.cpp for instance.

- Kim

Log in or register to post comments