I am a newbie to this world (vuforia and Unity). I downloaded the vuforia extension for Unity from qualcomm site. It contains different examples and essential scripts. I would like to know following things -
a) How to run examples in Unity. Currently what I do, is that I double click the package and find that there is nothing to play. So I have to basically drag drop camera, image target, virtual button etc...
Is this correct approach? or am I missing something?
b) If I have to do all that drag drop thing manually, where can I find instructions, how to link all those things. The documentation under unity extension, does not talk about that.
c) I tried to follow the instructions in this video, http://www.youtube.com/watch?v=EkIMyBQtLOw. It seems to work with funny results. The structure of the program is as follows -
Following are the problems observed --
i) When I point my device to the image on my laptop, the steam seems to come out by itself without the need for me to press virtual button.
ii) If I point my device to image on paper, the steam never comes out, which seems like virtual button press is never captured.
Here is the VirtualButtonEventHandler attached to the ImageTarget.
public class VirtualButtonEventHandler : MonoBehaviour,
private ParticleEmitter mSteamEmitter = null;
// Register with the virtual buttons TrackableBehaviour
VirtualButtonBehaviour vbs = GetComponentsInChildren<VirtualButtonBehaviour>();
for (int i = 0; i < vbs.Length; ++i)
// Get handle to the teapot object
mSteamEmitter = GetComponentInChildren<ParticleEmitter>();
mSteamEmitter.emit = false;
// Called when the virtual button has just been pressed:
public void OnButtonPressed(VirtualButtonBehaviour vb)
mSteamEmitter.emit = true;
// Called when the virtual button has just been released:
public void OnButtonReleased(VirtualButtonBehaviour vb)
d) I was trying to emulate Interaction with Multiple Targets example given in this link http://www.youtube.com/watch?v=sBTFm14Eoz4. I was able to follow most of the part, but was stuck at two places -
- Where do I place the virtual Button, for starting steam when pot is placed on fire. (My guess was on fire itself).
- How to create mesh collider mentioned in the video. Is there some link which can help me understand what is mesh collider and how to create one myself.