
In the Inspector window of the Model Target, verify that the Physical Length, Physical Width, and Physical Height fields match the dimensions of your real-world object, in meters. Size differences between the physical object and the Model Target is known to affect tracking quality. The purpose of this model is to aid you in placing an augmentation relative to specific parts of the physical object itself - it is only visible in the scene view of the Unity Editor and it will not appear at runtime. The preview in the scene can be hidden by disabling the enable Visualization in Model Target Preview component. A preview model representing the Model Target will be shown in the Scene. TIP: Disable the model extraction from databases if you only need to track the targets.Ī Model Target GameObject needs a Database and Model Target assigned to it from the Inspector panel. TIP: You can verify that a database was added from the overview in the Vuforia Configuration (Cmd+Shift+V/Ctrl+Shift+V). If you have your own Model Target generated, import the database by selecting Assets -> Import Package -> Custom Package… and select the. Select GameObject -> Vuforia Engine -> Model Target. A default Model Target database comprised of the NASA Viking Lander with two Guide Views (front and back) can then be added if no Model Target database was detected. Alternatively, a default Model Target database with the Viking Lander can be imported by creating a ModelTarget GameObject before importing a database. unitypackage file generated from the MTG tool. If you haven't already done so, generate a Model Target database using the Model Target Generator.
NOTE: Device tracking is enabled by default. It is recommended to use Device Tracking with Model Targets. Please refer to the Vuforia License Manager guide on how to obtain a Vuforia Engine license key. Obtain a License Key for your project.Replace the default Main Camera with an ARCamera from GameObject -> Vuforia Engine -> AR Camera.Add the Vuforia Engine package to your Unity project as explained in this article.For supported Unity Editor versions, see Supported Versions. We recommend having the physical object present to test the tracking quality and digital content with a webcam or a device.
See Getting Started with Vuforia Engine in Unity if you are unfamiliar with Vuforia Engine in Unity.
Set up Unity with Vuforia Engine and Model Targets