I want to create a simple AR application using unity3d, vuforia package and opencv. Normally in unity AR app, selected 2d target is found and virtual 3d object is projected.
I want to change these scenario.
To do this task, I did below steps :
unity
vuforia package
main camera
The AR camera has 3 c#
files, I open and look them. But I don't see any code open camera and get frame. The screenshot is below :
EDIT
Accepted answer helps load user defined marker.
This is the basic workflow of Vuforia using Unity.
Start from License Manager
On the License Manager
page go to Add License Key
bPut in your details and if you don't plan to use a paid version in the Select Plan
option click None
Now go to Target Manager
First Add a Database
(if you don't have one already) and give it a Name
, add License Key
and click Create
Now inside your Database click Add Target
and again put in all the details and upload your image.
Now Download Database
and make sure you've set it's usage to Unity Editor
Now within Unity
Add your ARCamera
Import the Database you downlaoded into Unity through Assets
- Import Package
- Custom Package
Now in your Inspector Panel of ARCamera, you'll see Data Set Load Behaviour
has your unity package name. Check it, and check Active
as well
Now in Assets
, Go to Qualcomm
- Prefabs
- ImageTarget
and drag Image Target onto the scene.
In the ImageTarget
Inspector
you'll find ImageTarget
behaviour and you can set the values to your Image.
From here on, what you do is completely up to you. You can add a Model or animate over is as you would on normal Unity applicatoins.
User Defined Targets can be found at: https://developer.vuforia.com/library/articles/Solution/Unity-Load-DataSet-from-SD-Card
Hope this helps.