Using Qualcomm Vuforia development AR Augmented Reality Game (opening) _ Qualcomm

Source: Internet
Author: User

@ Crap in the front


A VR game that wanted to do the Storm mirror before, finally came to Hong Kong to learn equipment did not bring over to do, and now began to learn to do the development of AR game, after all, the requirements of the equipment is relatively low, very convenient, read a lot of information, and finally chose the Vuforia this classic AR framework to learn, Although Qualcomm's Vuforia last year was just a PTC takeover, the future of the development route is unknown, but I see there was a recent update, but also open to developers, at least for learning no problem, after all, experience the AR technology, also do not care what the framework.


When it comes to augmented reality games, say the well-known Pokmon go (pokemon) This hot game, began to hear that the game is also full of longing, very excited, but was still not playing in the mainland, and now come to Hong Kong to download play a good disappointment Orz ... I thought it was real time to simplify modeling the scene under the camera, can identify the objects in the scene such as tables, walls what in the reasonable position of the Elves, but still too naïve, in fact, the map is the simplification of Google Maps, the wizard appears in the position of a random near the screen of the world's coordinates, Location and the scene under the camera does not matter, basically is the use of GPS positioning, and the real world is not closely linked to enhance the reality of the elements are not many. However, after all, the first augmented reality game, should not expect too high:(


* First of all, the following steps to prepare for the work of what is used to do, to use unity to develop Vuforia game first need to apply for a license key, this key can be used many times in several projects, is to project permissions to invoke the Vuforia SDK package resources And then a database of identifiers, where identification, such as single image recognition, is actually the addition of a picture in a previously added target, and the Vuforia server makes the target's recognized database, which is to download and import the project binding target, Then in the camera to obtain a frame image for feature matching, after the successful match will tell the project to find the target, and then in the background of the camera to render virtual untiy game objects.




First, Vuforia supported the development platform


Vuforia supports the development platform: Android, Ios,unity3dy and Windows platform (UWP) and digital glasses, where the main use of unity for AR game Development and packaging Xcode project on the iphone to run the test.


The environment of each platform and SDK installation method See official website Tutorial: https://library.vuforia.com/getting-started




Second, registered Vuforia Development Account login and access to the app License Key


1. Enter the Vuforia Developer Portal, register an account and log in: https://developer.vuforia.com


2. After landing, you can add a License Key under develop--> License Manager:


When you add a successful license key, you can see the generated key, a long string, and then add this key in the Arcamera component of the Unity Project, or the project will not be able to use the SDK:




Third, add Vuforia identify the database and add identify target objects


There is a target manager side-by-side with License Manager to add a database to manage the identity object;

Add a database, set the name Select device type, the database name can be changed after, but it seems can not be deleted:





Click to open the database you just created, you can add different types of recognition objects in the database (there are four of them, for example, single image is to identify and match one picture):



To create an image target object, note that the picture to be identified is less than the 2m,jpg or PNG format; The parameter width can be changed in the Unity project, so you can fill it out casually; add this target name to make it easier to differentiate.

You can then download the database to be added to the Unity project for use.




Iv. build Vuforia development environment in Unity


1. A new Unity empty Project project;


2. Download Vuforia third Party SDK (a unitypackage can be directly imported into Unity Project): HTTPS://DEVELOPER.VUFORIA.COM/DOWNLOADS/SDK


Choose a different version of the download according to the development needs, here Select the Unity SDK:


3. In Unity empty project of the project panel right select Import custom package import download Vuforia for unity IDK package;



4. After the need for a new scene, will be the scene of the main camera deleted, replaced by the Vuforia package inside the Prefabs Arcamera,arcamera object script to add license key to enable the project to have permission to use the SDK, Then add other identifiers such as Imgtarget in the Prefabs folder:



PS: With the above preparation, the next step is to formally start Vuforia's AR game development, and the next one is to introduce the simplest single image recognition object (singleton target) method.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.