JONATAS SILVA
JONATAS SILVA

Reputation: 1

Pin model to world after tracking marker

I am developing an app with mixed reality glasses. In this application I have an animated 3D model and need to track the marker, the model is fixed (locked) where the marker was tracked, because after tracking, I need to remove the marker but the model has to remain where it was fixed.

I was only able to do the normal tracking with ImageTarget, where the 3D model is fixed on the marker and not on the world, and when removing the marker the 3d model disappears.

Another thing is that I need the animation of the 3D model to start only after it is fixed at the marker location.

Upvotes: 0

Views: 140

Answers (1)

sh code
sh code

Reputation: 333

"I need to remove the marker but the model has to remain where it was fixed."

vuforia should have an event that's something like "on marker lost tracking" or "on marker disappeared".

add a handler to that event, which will unparent your model from the marker, position it to the last known position of that marker, and starts the animation.

Upvotes: 0

Related Questions