# 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](https://ms-kb.msd.unimelb.edu.au/next-lab/augmented-reality/guides/unity-and-vuforia-1/2d-targets).&#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](https://1820679795-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LXautSvCbUco5Lv7YrH%2F-LYUgGVg7HeJFmizovOL%2F-LYV14XRwLcjt3skNK7D%2Fimage.png?alt=media\&token=e608cd8a-3ff1-45b2-8507-eadc4c36a505)

### 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](https://1820679795-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LXautSvCbUco5Lv7YrH%2F-LYUgGVg7HeJFmizovOL%2F-LYV2ISxcoOJtPi4cnBM%2Fimage.png?alt=media\&token=4c8d7219-5b0e-4371-bd74-9819f3cf3a10)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ms-kb.msd.unimelb.edu.au/next-lab/augmented-reality/guides/unity-and-vuforia-1/3d-targets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
