Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
I want to put a dot in the center of the camera and measure the linear distance from the model from that point, what should I do? Please help.
Solved! Go to Solution.
Hi @zZzzZ ,
currently we do not have in Vuforia Studio direct functionality for that. So far I know the development team consider to implement the userpick (means when you pick on part) so that user could received the coordinate of this point (regarding to the root coordinate of the the project view. But this functionality is not implmented yet.
What we can do currently - is to use the tracking event and received the current eye vector and device positon point and to calculated the distance to the root coordinate system. Then we have use the metadata to receive the bounding box infomation /coordinate of different components and so try to calculate the distance from device postion to a model component (approximatey). So means to the the distance between device location and root coordinate system we can add/substr the relative distance of the component to the root coordinate syste.
A posts which handle similar issue is that posts:
there are also sample projects attached e.g. testEye-Custom-HoloL.zip, estEye-Custom%20(1).zip , eyeDir-ItemDistance.zip
possibly this could be helpful also in your case. Solution is possibly one via JavaScript coding
Hi @zZzzZ ,
currently we do not have in Vuforia Studio direct functionality for that. So far I know the development team consider to implement the userpick (means when you pick on part) so that user could received the coordinate of this point (regarding to the root coordinate of the the project view. But this functionality is not implmented yet.
What we can do currently - is to use the tracking event and received the current eye vector and device positon point and to calculated the distance to the root coordinate system. Then we have use the metadata to receive the bounding box infomation /coordinate of different components and so try to calculate the distance from device postion to a model component (approximatey). So means to the the distance between device location and root coordinate system we can add/substr the relative distance of the component to the root coordinate syste.
A posts which handle similar issue is that posts:
there are also sample projects attached e.g. testEye-Custom-HoloL.zip, estEye-Custom%20(1).zip , eyeDir-ItemDistance.zip
possibly this could be helpful also in your case. Solution is possibly one via JavaScript coding