The simplest introduction to AR development tutorial (1)

AR Development Course (1) "Zero Foundation"

本人文章将在极客之星博客首发更新:www.geekerstar.com

注:本教程为零基础教程,暂不涉及脚本方面,只是做一个简单的静态AR模型。目的在于提高大家对AR开发的兴趣(装13),博主也正在学习阶段,如果发现错误,欢迎及时指正,为了照顾零基础,写的比较详细(luo suo),有什么问题底下留言,后续教程将陆续介绍各平台发布操作,脚本和后续开发*

Simple preview image:
preview

If you are interested, you can watch the demo video first: http://v.youku.com/v_show/id_XMTcyODQyNzcyMA==.html?from=y1.7-2

1. Preparation before development

(1) Development tool: Unity3D (5.4) 3dmax
(2) Development language: C#
(3) Skill requirements: zero foundation (some English is fine)
(4) Briefly explain the principle: in fact, the technical content is not high, let’s get started, We are using Qualcomm’s Vuforia SDK combined with Unity3D for simple AR application development (actually it’s not a development, it’s just a simple production. The follow-up tutorial will explain AR development in depth. The blogger is also in the process of learning. The main purpose is to share. Experience, let everyone avoid detours, if you have any questions or comments, you can reply under the blog, and the blogger will reply one by one. Welcome everyone to pay attention to this blog!)
(5) Stop talking nonsense, let's start!

2. Formal development

(1) First, you have to download a Unity3D, if you already have one, skip this step, and the beginner will continue to read it.
Enter unity3d's official website: http://www.unity3d.com/
unity3d official website
Click to get Unity and
Unity official website download
select Personal download. At this time, a downloader of more than 700 KB will be downloaded, and then click to download. The next step is to install. It is very simple Yes, if you can’t install Baidu, please leave a message below if you encounter problems with the installation.
(2) Next are the more important steps. Look carefully. As I said before, we are using Qualcomm's Vuforia SDK. Now open its official website: https://developer.vuforia.com/
Vuforia official website
Click Register to register an account, although it is full English interface, but are conventional options, look up the words really do not understand it myself ......
click Develop, select "Add license Key" create a license
licence
and then fill App Name, shining drawing done on the line, and finally Confirm
license2
Next, Click into this interface as shown in the picture and copy that section of License Key, which will be useful in the future.
key
Okay, the second step is over.
(3) Click Download on the web page just now to download Download for Unity
vuforia-unity-6-0-117.unitypackage (47.95 MB)
sdk
After the download is complete, double-click import to Unity3d.
After the import is complete, create a new scene in unity and delete the main camera Then drag ARCamera under the Prefabs folder to the scene (we only need a camera)
ar1
Then click ARcamera and paste the key from step one in the App License Key in the inspector on the right. The
key223
third step is over.
(4) Everyone should know that AR requires a recognition map. After the camera recognizes a specific location, the AR model or animation is displayed. Next, let's make the recognition map. The recognition map should have characteristics, high resolution, and low repetition rate. Find one by yourself and save it as a .jpg. Open the website just now, select Develop->Target Manager->Add Datebase, enter a name, Create,
jpg
then click in, click Add Target, select single image, upload the identification map, set the width, and name it.
pic
Select Download Datebase(All)->Unity editor->download to
pic2
complete the download, and also double-click to import into Unity. At this time, tick the two tick in the following picture. In ARcamera in
ar2
the ImageTarget Prefabs folder drag to the scene, and then click on the "Type" drop-down list, type set to "Predefined" under the Image Target Behaviour script, and select the "Database" and "ImageTarget" drop-down list The Database and identification mark created before.
setting
The fourth step is over, the next step is to import the 3D model.
(5) The 3D model can be made by 3Dmax. If not, go to the Internet to find it, and then import it into Unity, or directly add a basic model for preview.
3d
After importing the model file, drag the FBX file to the scene and drop it to the ImageTarget to become its child. Adjust the size, direction, angle and other parameters yourself.

At this point, our AR demo is basically completed, and can be released to various platforms for preview. This is the end of the novice tutorial. The subsequent tutorials will introduce the release of various platforms and the addition of C# scripts.

Guess you like

Origin blog.csdn.net/geekerstar/article/details/52578576