Sie sind auf Seite 1von 36

RVAPMA

Dr. ing. Florin Gîrbacia


garbacia@unitbv.ro

Development of AR based on Unity and Vuforia


Content

• create AR applications using Unity and Vuforia

2
Unity – setup

• Go to: https://unity3d.com/get-unity/download
• Create a free account or student account

3
Unity – setup

• Go to: https://unity3d.com/get-unity/download
• Use Unity hub– choose components you need

4
Unity – setup for Android and Windows
• Use Unity hub– choose components you need
• For Windows you will also need Microsoft Visual Studio
• For Android select all the available options

5
Vuforia overview

6
Vuforia provides

7
Vuforia features

8
Vuforia features

9
Vuforia tracking targets

https://blogs.unity3d.com/es/2019/02/01/automotive-advantage-vuforia-model-targets/

10
Vuforia targets manager

• Create and manage target database for use on device or cloud

11
Vuforia targets manager

12
Vuforia Engine in Unity

• Create an free acount on Vuforia developer portal and log in


https://developer.vuforia.com/vui/auth/register

13
Vuforia Engine in Unity

• Go to developer portal: https://developer.vuforia.com/downloads/sdk


• Download the latest Unity Vuforia Engine by selecting the Add Vuforia
Engine to a Unity Project or upgrade to the latest version

14
Installing Vuforia Engine in Unity

• Create new Unity 3D project: File -> New Project

15
Installing Vuforia Engine in Unity (I)

• Import Vuforia Engine Unity Extension:


• Double click the *.unitypackage file downloaded (for example: add-
vuforia-package-9-0-12.unitypackage) and select Import button

16
Installing Vuforia Engine in Unity(I)

• The Vuforia Engine Unity Extension will self install: folders, plugins etc

17
Manual Installing Vuforia Engine in Unity(II)

• Download Vuforia Engine package and import manually


• Go to: https://packages.developer.vuforia.com/
• Download the latest Vuforia Engine

18
Manual Installing Vuforia Engine in Unity(II)

• Copy it to the Packages folder of your Unity project

19
Imported Vuforia Engine in Unity
• Vuforia Engine will be visible in the Unity Game Object menu and also in
Build Settings and Player Settings.

20
Create Vuforia Engine license key

• You must activate Vuforia Engine in your project before building a Vuforia
Engine app or use Vuforia Engine in Play Mode
• Go to: https://developer.vuforia.com/vui/auth/login

21
Create Vuforia Engine license key

• Select “GetDevelopementKey” and provide a LicenseName , Agree and


Confirm

22
Create Vuforia Engine license key

• The license is generated. Copy the license key to computer memory

23
Add Vuforia Engine license key to your project

• Add an ARCamera. Delete Main Camera from your project.

24
Add Vuforia Engine license key to your project

• Select ARCamera. In the Inspector (object features in the right) click on


Open Vuforia Engine Configuration

25
Add Vuforia Engine license key to your project

• Paste the license key in the field App License Key

26
Add tracking targets
• Create a target on the Target Manager on Developer Portal
• Or use existing target from other projects

27
Add tracking targets
• Create a database by click on Add Database button

28
Add tracking targets
• Select database and Add target by click on Add Target button. Select target type.

29
Add tracking targets
• Select Single Imahe and upload the image file

30
Load image target
• Rating indicates how good is the target
• Press Download Database -> Select Unity Editor

31
Import tracking dataset asset
• Asset -> Import package -> Custom Package
• Select the .unitypackage (for example: Curs1.unitypackage) and press Import

32
Add targets to your scene
• Add an Image Target. A target Game Object will be added in your scene
hierarchy, which will be visible in your scene

33
Add targets to your scene
• Select Image Target Game Object. In the Inspector select the database and
target name for the target you want to use

34
Adding digital assets
• Add your 3D model ( or assets) as children of the target in the scene hierarchy.
Parenting content with a target object automatically sets up the necessary
rendering and physics behaviors. Set the scale corresponding to your target.

35
Playing the scene
• Vuforia Engine provides a simulator mode in the Game view that you can
activate by pressing the Play button. Play Mode is configured in the Vuforia
Configuration section and you may use webcam and simulation mode to test
your Vuforia targets.

36

Das könnte Ihnen auch gefallen