Log in or register to post comments

ImageTarget size

October 30, 2016 - 4:07pm #1

I have found many posts about how to get the size of an ImageTarget, but all of these talk about getting the inputted size (on the Developer portal when you enter the size of the object).

I would like to get the bounding box of the image recognised at runtime. So the x,y,z and width,height,length of the object detected when it finds the target.

I can get a set of coordinates that is on the target by doing transform.position, but that doesn't give any specific corner, and also doesn't give me the size of the object.

Is there any way to do this?

Thanks in advance!

ImageTarget size

November 2, 2016 - 10:50am #4

*bump* Anyone have any advice?

This issue is blocking in my development so any help would be greatly appreciated!

Thanks in advance!

ImageTarget size

October 31, 2016 - 6:34am #3

I might have explained things a bit badly.

Basically, when an image target appears on the screen, I'm trying to work out how much and which part of the screen it's on (so that UI objects can be moved so they don't cover the targets). Given 3D coordinates, Unity lets you convert them to 2D screen coordinates, but I need the coordinates of the bounding box of the image target in order to be able to do that. Does that make sense?

I'm using Unity 5.4.1f1 and Vuforia 6.0.117

Thanks!

ImageTarget size

October 31, 2016 - 3:06am #2

Are you looking to change the size your ImageTarget appears in the app during runtime? Like if your phone finds the ImageTarget it should display the object X-times bigger than the trackable itself?

 

Also Which version of Unity and Vuforia are you using?

Log in or register to post comments