iOS tutorial two--NVISIONXR creating controllers and Vuforia objects

Source: Internet
Author: User

let's go on to the next tutorial:
1. Instance session a NVISIONXR controller
In your project, create aController,InheritedNv3dviewcontroller


InNVisionController.hAdd header file in #import "NV3DViewController.h" , as


Next, the instance session of the scenario,we find local instances of the scene according to the needs of the project, the example is set directly into the main scene.


2. Example session Nvappdirector
Nvappdirectoris the Director class, is a single case, it runs through the wholeARscenarios that require priority invocation, set code such as




3, instance session Vuforia handle
Add code because it opens theARfunction, so you need an instance sessionVuforiaHandle ,Vuforaof theKeyand identification charts need to beVuforabackground request operation,Vufora
Application Address: https://developer.vuforia.com/



The code in the figure:
Director class, throughout the AR scene, must be called first
[[Nvappdirector Sharednvappdirector] init:self.context_node];
Set the type of plug-in that needs to be opened, this example turns on the AR plugin, the plugin name can be taken arbitrarily, but only.
[[Nvappdirector Sharednvappdirector] addplugin:ar_input pluginname:@ "Ar_plugin"];
Register Vuforai
_vuforiawrapper = [[Nv3dvuforiawrapper alloc] initwithlicencekey:@ "ATLYSJZ/////AAAAGTJ+TZJZ8ULGU0MJMSQS+IJFHW
bojjic/xu2j9sfob3o7uguqr81lgcuxfxkjhzxzoh/os+aahas2sifaxq7m8+zwfhn8vhsdwk1xdiqvhzeu0regkqv+ Cbqkf04ditx2qjpcitxlit
xuavrlvs+9zqqlohvskk8vwje54yakcq7d+9nzxout5e6/6quu8m/1tq+mzlqa6qjcvgjgul2fxlms2cdlo3d1pdf/6hc8bqq7ezdjbx6yt+ Hdguf
ydmevyd+lv7i9ncoypbaxqq75k9dblnoysobbq/ Npnodiuh3bs5dlq1eghp7dytobut4exyvtj4nabgfcqp6jqkfxknqwgqrf8soqppaf6tqhdfe
"];
Add object paths that need to be identified, can have multiple recognition objects, and object suggestions are placed in Userres.bundle to facilitate engine management resources.
[_vuforiawrapper adddataset:@ "Userres.bundle/stonesandchips.xml"];
Activates the object path that is currently required to be recognized
[_vuforiawrapper setactivedataset:@ "Userres.bundle/stonesandchips.xml"];

4. Running the project
after running the project, we found a flashback, checked the flashback log, and found that there was noInfo.plistsettings.


under Project modificationInfo.plistas


run the project again and you can seeVuforiacamera is open.


here, the basic configuration of the scene has been completed, the content of this chapter is finished, the next section will teach you how to ar render a cube in the scene.

Welcome to Contact:  

    • Contact information: +86 18801341080
    • E-mail: [email protected]
    • Website: http://www.nvisionxr.com/
    • QQ Group: 416802300


Picture: wechatimg153.png[Delete]

iOS tutorial two--NVISIONXR creating controllers and Vuforia objects

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.