Log in or register to post comments

Sizing and Depth

May 3, 2012 - 10:22pm #1

I'm trying to get a few image trackables to play "nice" with each other, even though their sizes are vastly different.

I'm having some difficulty getting the depth(?) to work properly.

For example, I'd like the gameobject that is the child of the smaller marker to collide with the gameobject that is the child of the larger marker. But, no matter how I try, I can't seem to get the two to "collide" ... One marker is about the size of half a business card and the other is the size of an 8x11. Both markers are tracked, as objects show up.

This works well if both markers are comparable in size though.

I've tried ticking "preserve child size" as well as setting the larger marker to a smaller scale in unity.

Still doesn't seem to work and perhaps I am missing a core technique in getting multiple markers of vastly different sizes to be able to interact with each other.

Re: Sizing and Depth

May 5, 2012 - 6:09pm #4

The resulting scene dimensions will derive from the units you define for the TMS. But these units are arbitrary. They are established by whatever value you provide. You are defining the unit scale for the scene.

What Kim is advising is that you maintain the relative real proportions of the targets. So if the small target is 1/8th the area of the larger one, then scale this target to 1/8th size of the larger target in this scene.

Re: Sizing and Depth

May 5, 2012 - 12:44am #3

Does this depend on trackable scene size in the Create Trackable web panel?

Re: Sizing and Depth

May 4, 2012 - 12:36pm #2

You need to scale the markers in the Unity editor so that their relative sizes match the real world relative sizes. So if one physical marker is half the size of the other, make sure its transform.scale is half the size of the other one in the editor.

- Kim

Log in or register to post comments