Unity Anyway to Recover a Model Previously Uploaded?
How To Utilize Object Recognition in Unity
Object Recognition (Object Targets) enables you to create apps that can recognize, and track objects based on their visual features, such as toys. This commodity will show you how to add Object Recognition and Object Targets to a Unity project, and how to customize the behaviors exposed through the Object Recognition API and implement custom event handling.
If you are unfamiliar with the Unity Workflow, it may be helpful to read Getting Started with the Unity Workflow
You lot will also need to get a license key from the License Manager and add together information technology to your projection if you lot are looking to track your ain objects. The post-obit manufactures may be helpful: How To Create an App License and How To add a License Key to your Vuforia App
Adding Object Targets to Your Project
The workflow for adding Object Targets to a Vuforia Engine Unity project is very similar to that of the Image Targets. Firstly, gear up your Unity with the latest Vuforia Engine SDK with the Vuforia Engine Bundle Hosting for Unity.
Add a Device Database containing an Object Target and the AR Photographic camera.
- Add together anARCameraGameObjectexample to your scene. Remove the defaultMaster Camera from your scene.
- Add a Device Database containing an Object Target
- Create your ain Device Database in the Target Manager that includes the Object Target. See Vuforia Object Scanner for a guide on creating Object Targets.
- Download that database equally a *.unitypackage.
- Import the unitypackage fromAssets-> Import Parcel-> Custom Bundle, or by double clicking the parcel file on your file organisation.
- As an alternative, the Vuforia Cadre Samples for Unity include an Object Target database with a Mars Habitat model. Recall it from the sample project or simply go on with the following steps.
- Create your ain Device Database in the Target Manager that includes the Object Target. See Vuforia Object Scanner for a guide on creating Object Targets.
Adding and Configuring the Object Target GameObject
- Create anObjectTarget (3D Scanned)GameObject from the menuGameObject -> Vuforia Engine.If no Object Target database was imported, a window will appear asking if you wish to import a default database for your Object Target.Printing Import to use the default Object Target database.
- Select theObjectTargetand in its inspector select theDatabase name andObject Target name that you desire to associate with the Object Target case. If at that place are no Object Target Databases in your project, at that place volition exist a push to import a default Object Target.
At that place is a 1:1 relationship between theObjectTarget GameObject instances and the Object Target in a Device Database.
- Add together your augmentable content as a child to theObject Target GameObject.
- In theAdvancedexpandable menu, you tin enable the bounding box to position and scale your content in relation to the target.
- Test your scene in Play Mode past pressing thePlay button in the summit console of the Editor.
Recommended Augmentation Workflow
The Object Target bounding box corresponds to the grid region of the Object Target. You tin use the Object Scanning target as a concrete reference while in Play Mode to help position your content as illustrated in the following image setup:
Of import:Making changes while in Play Mode will not be saved! Exit Play Way every time you wish to brand changes.
Obtaining the Object Recognition Tracker Instance
The ObjectTracker tracks the Object Targets and y'all tin command the tracker by the following methods. For a full overview of the ObjectTracker capabilities, please meet ObjectTracker API Overview
ObjectTracker mTracker = TrackerManager.Instance.GetTracker<ObjectTracker>();
Starting and stopping the Object Recognition Tracker
First()
starts the Object Recognition Tracker
Stop()
stops the Object Recognition Tracker
Reset()
resets the Object Recognition Tracker
Customizing Event Handling
Object Targets tin can have multiple detection and tracking states as defined by the Condition of their TrackableResult. This event enables you to develop apps that unlock content when the Object Target is detected and is being tracked.
You can utilise this information to determine when an Object Target has been recognized, when it is being actively tracked, and when tracking and detection have been lost on an object that was previously being tracked. Employ the events to disable Renderers and Colliders and assign your own event handling here. More information can be institute at Using the Device Tracker in Unity
westerfieldpultand.blogspot.com
Source: http://library.vuforia.com/features/objects/object-reco/how-to-use-object-recognition-in-unity.html
Post a Comment for "Unity Anyway to Recover a Model Previously Uploaded?"