问题
I am developing AR application with Unity3D and Vuforia. I am using Vuforia ImageTarget tracking. I want to set background behind ImageTarget and it's Object after track found. How to set background image texture after tracked found in Vuforia ImageTarget? Example : I want background here this link
回答1:
Actually, this is possible using a new feature of Vuforia called Extended Tracking. Select your ImageTarget
and in the Inspector check the Extended Tracking
box in the Image Target Behavior
script like so:
Go to 8:10 of this video to see a demonstration of Extended Tracking: https://www.youtube.com/watch?v=HTm8kkCCNO4
Edit: The spaceship is moving in the video because the video filmer put a movement script on it.
However, there are some things to be aware of when you use Extended Tracking. The first is that your literal room you are doing this in needs to look somewhat unique--you can't be surrounded by white walls and be using a white table. Also, the room you are in must be static--there should be no movement in the background. Finally, it likely won't be as smooth as that Chinese beer commercial. They definitely are using some smoothing script so you don't realize the trees are moving.
来源:https://stackoverflow.com/questions/36706706/how-to-set-background-image-texture-after-tracked-found-in-vuforia-imagetarget