Model Recognition

Introduction to Model Targets in Unity (Source: Vuforia Library)
Model Targets utilise 3D model data of an object (for example a 3D Scan or Digital Model).
Model Targets enable applications to track physical objects by using this digital data as reference information. Model targets can include rigid and opaque objects of different scales, from Architectual Landmarks to Small Figurines.
In order to create a Model Target, 3D model data must first be created. 3D CAD models and 3D Scans are suitable data sources.
Students at MSD can learn more about Digital Reproduction on the Knowledge Base and can access training and equipment loans using SimplyBookMe.
The Model Target itself must be a rigid object which does not contain transparent or shiny surfaces. The object must also remain in a fixed location.
Model Targets are created using the Model Target Generator. This software converts a 3D model in to a Vuforia Engine dataset. This software is only available on Windows.

Figure 1.0 - Vuforia Model Target Generator
The Model Target Generator software will grade quality or suitability of the mesh, and allow a user to add "Guide Views" . This Guide View is an outline of a 3D model from a particular perspective.
From the Model Target Generator, you can export your Model Target dataset as a
.unitypackage
.Import the
.unitypackage
in to your Unity Project.Model Targets can be added in to a Unity Scene as
GameObjects
. GameObject > Vuforia Engine > Model Targets > Model Target
Select the
ModelTarget
from the Hierarchy Window, and designate it a child
of the ARCamera
.Ensure that the Model Target Behaviour scripts are correct:
Inspector Window > Model Target Behaviour (Script)
- The
Database
andModel Target
fields should match that of the recently imported database - The
Physical Length
,Physical Width
andPhysical Height
fields should match the physical dimensions of the real-world object that the project references. - The
Guide View Mode
field should be set toGuide View 2D
Debug the application, and verify that when the Guide View aligns with the physical object, the guide view lines disappear.
When this occurs, the application is tracking the physical object.
Content, such as a rendered 3d model or annotations can be rendered upon the application tracking the object.
Add any asset or GameObject to the hierarchy window and designate it a child of the ModelTarget.
Last modified 3yr ago