Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
After analyzing methodologies by writing code, I was able to realize that it is not possible in vuforia studio to anchor the 3D model in a point, possibly in the most external point of the model.
This would allow me, using the spatial target, to constrain the 3d model correctly to the ground plane.
For example a collider would be needed to be able to consider the ground as a limit that cannot be exceeded by the 3d model in the horizontal plane (tangent) of the chosen point
.
is there an integration to have this function? or is there a workaround?
Thank you.
Gabriele
Hello @GB_10079075 ,
To request this functionality, please refer to Product Ideas @ PTC Community
The basic step to place a "3D Model" automatically on the real ground is-
Hi @GB_10079075 ,
if I understand correctly your intent, you want to use the spatial target to find some coordinate on the ground plate. I do not think that this will work. So using a target and setting it there will initialize you coordinate system -World coordinate system. The point what you select with the spatial target will have Y=0 and the X= (-<spacialTargetWidgget>.X) Y= (-<spacialTargetWidgget>.Y) as world coordinate system.
Possibly your approach should be to select a thingmark on the plate and this will initlize your coordinate system correctly (so the root coordinate system is inverse transformation to the setting of the thingmark properties (x,y,z,rx,ry,rz) - the simplest case all thingmark properties are 0 and also the thingmark width is exactly the same size as the reals scanned thingmark - otherwise you will some scaling factor. In this case the thinmark will represent the world coordinate system
Then you can use the eye vector to find the intersection with the x,z plane (or shifted plane) /requires some math /intersection vector with plane/
I did a similar thing in the project there (attached) where in a HoloLens project I projected a eyevector to the plane of an image (which displays a table) and tried to decide which cell was selected (via gaze) this much more complex requirements as in your case - therefore possibly this could be helpful for you. Here as some related links (means not directly to your issue but showing how to handle coordinates)
https://community.ptc.com/t5/Vuforia-Studio/Can-i-get-the-coordinate-of-tracked-target/m-p/951695