Log in or register to post comments

Image target and object scale

November 30, 2017 - 10:31pm #1

I am new to Unity & Vuforia and was running some experiments on my own.

I am working on Windows, Android, and Unity & Vuforia.

 

I noticed that bringing 3d model generation with marker works using 1 image to 1 model match-up.

Here is what I want to do.

My 3D model is a building and I want to use two image targets to adjust the scale of the 3D model.

So, the closer two image targets get 3D model will be smaller and wider between two image targets is the 3D model gets larger.

I tried to look for 3D model scaling using multiple image targets online, but there were only tutorials on how to make multiple 3D models to multiple image targets.

Any comments or replies are welcomed.

Please be as specific as possible with the code explanations, I do not have much experience with codes.

Thank you so much and good luck to you all.

Image target and object scale

January 12, 2018 - 3:07pm #2

My suggestion is: 

-Create a script that calculates the distance between two imagetargets and sets the position of your gameobject to the midpoint of those two targets. The imagetargets each have transforms, so this should be pretty simple. 

-Set the scale of your gameobject according to the distance between the markers.  

Hope that helps! 

Log in or register to post comments