Topic locked

Unable to put target height

May 4, 2021 - 11:50am #1

Hello everyone

I want to make a simple app where I detect an image target and then an object appears in its correct size!

The printed image size is 10x15cm. I made the model in blender so I know that its dimensions are correct. 

When I uploaded the image I put the width of the paper (0.1). But the size of the object that appears is not correct! I checked the image target tab -> advanced and there is the width I put and then a height of 0.3. When try to change it to 0.15, the width also changes.

Any idea on how I can solve this would be very much appreciated! 

 

 

AttachmentSize
Image icon Capture.JPG24.4 KB

Unable to put target height

May 10, 2021 - 7:14am #4

Thanks for the feedback!

to be sure that I understand the issue correctly.

Is you model scaled in all x,y,z incorrectly. -> but always the same scale factor is used . Example your model is cuboid with x,y,z (1,2,3) and the shown display is scaled by factor x ... e.g. x=0.5 - and displayed is the cuboid with x,y,z (0.5,1,1.5). What is the applied wrong scale factor then in your case?

or your model e.g. here the cuboid is shown in one direction correct but incorrectly in other direction  e.g. x,y,z (1,1,3) - here incorrect scaling in y direction. What is the wrong scale factor in this case?

Thanks!

Unable to put target height

May 10, 2021 - 2:42am #3

Hello Ronald!

 

Thank you so much for taking the time to answer! Yes, my problem is exactly the fixed ratio. But isn't there a way to fix it? 

 

The dimension of my model are correct in Unity as well. I checked it ;-)

Unable to put target height

May 6, 2021 - 7:05am #2

Hi ,

so far, I remember when you create the image in the database you have to specify the width example: (pic 2021-05-06_15-25-28.jpg)

Later when you import the database in unity as you already mentioned you could also specify the width. My understanding here is that the ratio between the width and length is already calculated in the database of the image target and it is fixed. So that when you set the one value now in unity and unity I will automatically adapt the second value. (picture 2021-05-06_15-31-57.jpg)

 

Therefore , I believe this lead here in your case to the fixed ratio.

Another point is that the scale / dimension of the model are not correctly displayed – so at least unity does not use  the correct blender dimensions. So when we import e.g. an simple model form blender mostly I have some difference between the shown scale (in Unity transform component)  and the model dimensions. (show in the next picture)

 

 

So seems that the transformation scale is different from the blender dimension scale (the reals model outline) . So when I check the model then in blender I see this difference.

 

Topic locked