> For the complete documentation index, see [llms.txt](https://ms-kb.msd.unimelb.edu.au/next-lab/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ms-kb.msd.unimelb.edu.au/next-lab/augmented-reality/guides/unity-and-vuforia-1/3d-targets.md).

# 3D Targets (Object Targets)

## Object Targets

Vuforia is able to recognise and process 3d objects as targets for AR content creation. At present, the main limitation to this AR content creation is the need to use Vuforia's proprietary scanning software, [Vuforia Object Scanner](https://library.vuforia.com/content/vuforia-library/en/articles/Training/Vuforia-Object-Scanner-Users-Guide.html), to create an Object Target.

An object target works in a similar way to image-based (2D) targets but utilises a feature scan as its target source.  Objects should be rigid and opaque.&#x20;

### Workflow

The basic workflow for working with Object Targets is as follows:

1. **Scan physical object** using Vuforia Object Scanner
2. Upload the file to the **Vuforia Target Manage**r online
3. Download the updated **Target Manager Database**.
4. **Add the object target** to your project in **Unity**
   1. **Add the Device Database**
   2. **Add and Configure the Object Target** as a GameObject

## Vuforia Object Scanner

### Supported Devices

At present, the **Vuforia Object Scanner** is only available as an **Android Application**. The only supported phones are **Samsung Galaxy Devices** as shown below:

| App            | Supported Devices                                                                                                                                   | OS Version                        |
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- |
| Object Scanner | <p></p><ul><li>Samsung Galaxy S9</li><li>Samsung Galaxy S8+</li><li>Samsung Galaxy S8</li><li>Samsung Galaxy S7</li><li>Samsung Galaxy S6</li></ul> | Latest supported OS on the device |

> Source: Vuforia Library

### Working around Supported Devices using an Android Emulator

By using an Android Emulator such as **Genymotion**, on your PC you can download and install the **Vuforia Object Scanner** from the Google Play store. By using your PC webcam, rigid and opaque objects can be scanned with reasonable success.

## Object Recognition in Unity

The basic workflow within Unity is **extremely similar** to that of [2D (Image) Targets](/next-lab/augmented-reality/guides/unity-and-vuforia-1/2d-targets.md).&#x20;

### Add a Device Database

If you haven't already, download the device database from your Vuforia Target Manager.&#x20;

Import the `.unitypackage` file by heading to `Asset > Import Package`

### Add and Configure the GameObject

1. Add an `ARCamera` instance to your scene. \
   `GameObject > Vuforia > ARCamera`
2. Add an `ObjectTarget` instance to your scene.\
   `GameObject > Vuforia > 3D Scan`
3. **Change the Object Target Behaviour**. With the `ObjectTarget` selected, change the `Database` and `Object Target` fields in the **Inspector Window**

![Figure 2.2 - Object Target Behaviour - Vuforia Library](/files/-LYV14XRwLcjt3skNK7D)

### Add Content to the GameObject

1. Add any **content** you desire to augment the object. This can be **2d content** such as text or **3d assets** such as `.FBX` files.
2. Make the **content** a **child** of the `ObjectTarget`. This way the **content** will **only be displayed** once the `ObjectTarget` is **recongnised**.

![Figure 2.3 - Project Hierarchy - Vuforia Library](/files/-LYV2ISxcoOJtPi4cnBM)
