This is an old revision of the document!
Vuforia Base Startup Resource
- get unity LTS version
- get vuforia latest unitypackage: https://developer.vuforia.com/downloads/sdk
- create free vuforia account to create image target database:
- register
- go License Manager, Get Basic button to create a project license,
- then click the license name, it will show the long string license key, copy that and save to a text
- go to target manager tab on the webpage (next to license manager)
- Add Database, to store the image track references
- click the database to add the target, (normally image designed to print on A4 paper 0.29 x 0.2 in size)
- once done, click Download Database as another unitypackage.
- get vuforia base and database package into unity project
- configure project setting: (Build setting > Player setting > Player tab > other setting)
- for Graphics APIs, drag OpenGLE3 above Vulkan
- andorid api: at least api 26 (v8.0) (api 30 for google store)
- scripting backend : IL2CPP
- target architecture: check ARM64, uncheck ARMv7
- get phone to developer mode, and enable usb debug mode, connect usb to your PC;
- in build setting: Run Device > click refresh to get your phone to show up
- set allow in phone, and click Build and Run to get it build and load into your phone and run directly.
Vuforia Base Setup
- delete default scene camera, add new AR Camera from vuforia
- in camera attribute, click vuforia configuration, and paste your license code there
- in “max simultaneous tracked image”, set to 2 if you want to 2 mark to show 3d object, (2 mark in real life case)
- in scene, create ImageTarget object, and put your 3d object as child of it.
- then, build and run.
Extra ImageTarget setting:
- Observer event handler:
- tracked: once track disappear, object disappear (good for book flip, since content should go once track mark is gone)
- tracked or extended tracked: once tracked disappear, object will stay in last tracked place (good for object showcase)
- smooth transition on pose jump (if checked):
- smooth update action on object position (so it will move slowly to new updated track position)