ground plane Unit Vuforia AR learning

This must be Tucao about, it took a week, and only then run up the ground plane on the iphone5s. Among various pit. Refer to a variety of information online. Finally found the problem in the official website tutorial there is a problem, resulting in no way to run. So here to leave a paste, I hope we will not fall follow-up on this issue.

System 1 Win7, Unity3d 2017.4.10f1, Vuforia 7.0.43, red rice Pro, Android 6, red rice 6S, Android 8.
System 2 Mac book air, OS 10.10.37, Unity3d 2017.4.10f1, Vuforia 7.0.43, Xcode 9, iphone 5S, iOS 10.3.3

Among various pit.

1, the first is the official manual Unity's, https: //docs.unity3d.com/Manual/vuforia-sdk-overview.html. Step by step learn how to make Vuforia AR, completed the first part of Image Targets, all goes well, the system 1, android run red rice pro top up, no problem.

2, but then do the ground plane when there is a problem, unity is not even official tutorial. In fact groundplane is very important function in the future must be based on real-life AR environment, but Unity is not even offer this part of the tutorial. Guess, estimate unity is learned that at present this technology is based on mobile phones sensor precision is relatively low, the virtual model displacement calculation is not accurate, there is a big flaw, so it was not eager to promote? In any case, if there is no tutorial Unity, then we find Vuforia.

Vuforia tutorial https://library.vuforia.com/content/vuforia-library/en/articles/Solution/ground-plane-guide.html, written in great detail, step by step follow suit chant. But running on a mobile phone red rice Pro system for hair nothing happens? The lens nothing?

pic1.

Okay, I admit that red rice Pro a bit old, not necessarily to support the hardware. (Here still have to Tucao about Vuforia, they have a support Ground plane phone models list https://library.vuforia.com/articles/Solution/vuforia-fusion-supported-devices.html, which models is relatively small, I thought the list was not comprehensive, and later found really only those models on the list is supported!) then we replaced the latest red rice 6S (2018 Nian 8 just last month released) or nothing happens! Well, I surrender. There you list above iphone5S right, then I will run in iphone it. Good debugging system 2, after iphone5S, or light with a lens, nothing happens, well, this time I do not blame the bar, where there must be a problem!

3, reference is made to a variety of information online:

https://blog.csdn.net/testiness_wind/article/details/78909705, testiness_wind Great God should be on the groundplane very deep understanding, but this tutorial missing the most crucial aspects of the real machine display.

http://www.manew.com/blog-184645-43577.html, this one has a real machine show links, but is based on the Unity assetstore the example above works, not too technical and operational aspects of the content. There note3 can run on red rice, red rice is my hair 6S will not work! ! ! (Later, suddenly found red rice note3 even more expensive)

http://www.arvrschool.com/read-7293, this one has a real machine show, said assetstore example above tutorial will not work, adroidstudio version can be run. But I did not install Androidstudio, how to debug?

4, an example project.

Later, it is no way, or the unitystore above example project running side bar. (Why did not run this earlier, because it is not on the Great Wall Broadband link unityID landing ah, always only see unitystore above resources, but want to download the Unity ID could not land on the show, Great Wall Broadband severely Tucao!) Rub the company Download the assetsotre example projects, build on one of my red rice phone system, I faint, suggesting various models do not support! I surrender. Replace the system 2, iphone5S, success! Why can the example project, and build my own project work?

5 vuforia analysis: the
encounter the root cause of the problem, simply Zhaomaohuahu seems to die, or planted the first look at the code. Total is the addition of two gameobject, a Ground Plane stage, in which a Plane Finder Ground pLane stage there is no content, look at the focus of this Plane Finder.:

Vuforia Image
 Plane Finder which a total of three components.
  • Anchor Input Lister Behaviour.
  • Plane Finder Behaviour.
  • Content Positioning behaviour.
5.1 Check the API, Anchor Input Listener Behaviour just call a InputRecievedevent:

 

This is a InputRecievedevent Unityevent,
In the default configuration was called Plane Finder Behaviour inside performhittest method.
piC。
So this looks like Anchor Input Lister Behaviour. No problem. Continue down.
5.2 Plane Finder Behaviour. There Performhittest inside the
method, there is
 
(To be continued ....)

Guess you like

Origin www.cnblogs.com/wng0/p/9602861.html