Log in or register to post comments

modifying model target scaling in unity doesn't work

October 11, 2019 - 3:06am #1

Hi,

 

 I am really puzzled by this one.

If I change the scaling on here ( putting width at 8.5 meter as it should be), the AR camera doesn't acknowledge it and will still moving around as if it's still that scale making the model totally scaled up in the final composition...

 

I realize I should probably reshoot the target using the generator, but it now fails to load that model (made a thread for that one: https://developer.vuforia.com/forum/model-targets/model-target-generator-fails-load-cad), but still... if you expose the scaling here, it's because you should be able to adjust it, so I am maybe missing something...

Thanks for your help.

Bye,

 Jean

 

modifying model target scaling in unity doesn't work

October 17, 2019 - 2:06am #5

Hi,

 

 yes, your explanation is also what I think it should do, however it doesn't and I made some progress on this.

it turns out that it seems like below a certain scaling factor, it works fine and above it starts to behave wrong. in the case of this model target, below 5 in width it's fine, above it starts failing to properly adjust the camera

I have uploaded a screencast showing the issue:

https://www.dropbox.com/s/r14of2g63b3q5kp/vuforiaModelTargetScaleBug.mov?dl=0

Bye,

 Jean

modifying model target scaling in unity doesn't work

October 16, 2019 - 2:04am #4

Hi,

I want to be sure that I understand your use-case. You have a small replica of the plane; uploaded the 3d cad model of the plane in MTG. As per the current dimension: 0.041m x 0.017mxx 0.05m. You create the database and use the Model Targets on the plane replica. It works as expected and you see the augmentation on top.

Moving forward, you want to use the model targets feature on the real plane which is considerable larger than the replica. You can do this by adjusting the scale in Unity: Physical Length/Width/Height without recreating the db in MTG with the proper dimensions.

For example you adjust the values for the real plane in unity and use Model Targets on the smaller replica plane, the recognition will still work and augment the 3d model on the top the replica 1:1. However if you move around the plane replica you will see that the tracking will perform suboptimal.

Coming back to your question, adjusting the scale in unity will not have any impact on the rendering of the augmentation, it will always fit the real object.

Thank you.

Vuforia Engine Support

 

modifying model target scaling in unity doesn't work

October 16, 2019 - 12:52am #3

Hi,

Your explanation doesn't seem to indicate that it works then

If I adjust the size in the model target component, shouldn't it be enough for Vuforia to render it properly? what would be the additional setup or thing to do to make it work?

Thanks,

 

 Jean

modifying model target scaling in unity doesn't work

October 14, 2019 - 5:44am #2

Hi,

Good questions, we expose the scaling in Unity to facilitate easy iterations. For example: If you use Model Targets on a small replica which is 50cm wide and afterwards want to use it on the real thing with a width of 5m, you can adjust the width in Unity. Not having this possibility means that you would need to go to adjust the scale in the Model Target Generator. Basically you adjust the "real"/Physical scale of the real life model and not scale of the Augmentation. 

In regards to your finding of modifying the scale and looking the same. Although it looks the same the Vuforia system believes the model to be further away from the camera to facilitate the 5m width( taking from the above example). So if you move the device around the 3d model you would see the tracker behaving odd at it tries to render it initially further away and recovers based on the recognition.

Please let me know if you have any additional questions.

Thank you.

Vuforia Engine Support

 

Log in or register to post comments