Download Unity
Make a Vuforia account-
Download the Vuforia Unity extension.
now
-----------------
Make a new project in Unity-
file/new project
Projects tab
in the assets folder
import package/ custom package
select the vuforia plugin
delete the maint unity camera- from the hierarchy tab
In the assets folder-
go to Qualcom Augmented Reality Prefab folder.
Drag the AR camera into the project sceen /herarchy
-----------
test camera
in the inspector [right] there may be a warning
if your webcam is not supported
Webcan Behavior Script
projects/ assets/ editor / QCAR / webcam profiles
open it
add our webcam
get the name form the unity inspector-
<webcam devicName= "Integrated Webcam"
you can now test the webcam by hitting the play button in unity.
----------------
add a tracking marker
projects/ assets / Qualcom Augmented Reality / prefabs/
choose "image target"
drag it into the heighrarchy.
we currently have no database so
in the inspector window
click on "No targets defined" button
should link to a QC website
click on "create database"
give it a name - no spaces
choose the target type
once this is done u can load marker to see its tracking score
check the database- check box next to the icon-
then above it -
click the
download selected targets- button
a popup window appears-
choose Unity Editor and create it
save it
------------------------------------
now we have to import the database-
projects/
assets - right click
import package/ custom package
find where u downloaded it- add it
find the qualcom database we just made-
import-
located -- assets/ editor/ QCAR/
ImageTargetTexture /Newdatabase [or ur name]
---------------------
we need to add the target into our image target
behavior (script).
Inspector-
image target behavior (script)
"Data Set" choose the
click on "image target field"
add the new database.
choose the target you want
--------------------------------
test with a cube-
create the cube from the game object tab [very top]
create other / cube
add lights
create the cube from the game object tab [very top]
create other / directional light
------------------------------
Inspector-
we need to check
"Data Set Lead Behaviour (Script)"
click on the
"load data set New box"
now u can test!
No comments:
Post a Comment