Log in or register to post comments

Cloud Image target size

February 24, 2021 - 1:58am #1

Hello guys. 

 

i am using unity 2019.4.20f. and try to play video on Vuforia Cloud database. 

I am getting Image target size using "ImageTarget.GetSize().x && ImageTarget.GetSize().y" and set Video Quad scale on base of this. 

 

but issue is still little missmatch on Quad size and image target size. some time little bigger , some time little smaller or some time position little down !! 

 

is there any way to create pixal perfect plane on vuforia cloud target ?? 

 

 

Cloud Image target size

March 4, 2021 - 5:03am #2

Hi,

GetSIze() returns the size of the the target in scene units. as per: https://library.vuforia.com/sites/default/files/references/unity/classVuforia_1_1ImageTargetBehaviour.html#a84343e9d384d8b7e87d836a4684c69dd

I believe the differences appear due to how the quad scale is calculated, mainly how the GetSize info is stored. Do you store the GetSize information in a float? If yes, try using double it has more precision and the differences should be even smaller. Also please makse sure to store the Quad value in the same type as the GetSize information.

Thank you.

Vuforia Engine Support

 

Log in or register to post comments