Cov txheej txheem:

Demo ntawm Tus Nqi Tsawg MR Game: 9 Kauj Ruam
Demo ntawm Tus Nqi Tsawg MR Game: 9 Kauj Ruam

Video: Demo ntawm Tus Nqi Tsawg MR Game: 9 Kauj Ruam

Video: Demo ntawm Tus Nqi Tsawg MR Game: 9 Kauj Ruam
Video: Tswv Yexus lub neej thaum pib txug thaum xaus 2024, Kaum ib hlis
Anonim
Image
Image

www.bilibili.com/video/av7937721/ (video url hauv Suav teb mainland)

Tshaj Pom:

Teeb cov duab kos rau ntawm ob tus tuav tuav , Tus neeg siv saib nws los ntawm cov duab los qhia , tuaj yeem pom dab npog rau ntawm tus cim, lawv tua ib leeg hauv ntiaj teb kev ua si.

Siv AR txhawm rau txheeb xyuas lub kaum sab xis ntawm tus neeg siv thiab kos duab, tom qab ntawd siv wifi hloov pauv ib leeg, tswj kev tig ntawm tus tuav los ntawm lub kaum ntse ntse, lub cim tuaj yeem taug qab Tus Neeg Siv zoo li paj noob hlis.

Ua tsaug tshwj xeeb

  • Vuforia, zoo AR SDK, tshwj xeeb tshaj yog nws haum Google cardBoard;
  • https://goo.gl/images/H8Tzw9, Kratos's ICO, kev zoo nkauj thiab zoo rau AR txheeb xyuas;
  • Majenko Technologies , Wifi code qauv los ntawm arduino, siv tau yooj yim heev;

Kauj Ruam 1: Cov Khoom Npe

Cov Khoom Siv
Cov Khoom Siv
Cov Khoom Siv
Cov Khoom Siv
  • Kho vajtse

    • Lub Xov Tooj Ntsej Muag, hauv xov tooj ntawd dhau los, iPhone yog TBA;
    • Google CardBoard VR HMD;
    • tus tuav tuav; tau txais los ntawm DIY lossis yuav nws;
    • Ntawv luam ntawv A4;
    • A arduino wifi board, lub npe yog WeMos D1;
    • Arduino daim thaiv;
    • Qee cov xov hlau Jumper;
    • Servo x 4 AWM
    • DC lub zog hluav taws xob (xaiv tau, rau kev sim) ;
    • Stapler, kua nplaum lo, txiab, ntawv txiav;
    • Roj teeb;
  • Software

    • arduino.cc editor;
    • Kev sib sau 5.3.4 ;
    • Vuforia kev sib koom siab SDK 6.2;

Kauj ruam 2: Tow Axis Holder

Tuav Axis Holder
Tuav Axis Holder
Tuav Axis Holder
Tuav Axis Holder
Tuav Axis Holder
Tuav Axis Holder

Nrhiav qee cov duab los qhia.

  1. Ua puag;
  2. Caj npab ntawm ntsug thiab kab rov tav, muab servo;
  3. Platform ntawm kos duab;
  4. luam daim duab, qhov loj me yog peb lub hlis twg ntawm A4;

Koj yuav tsum tau ntxiv cov duab los qhia nrog cov kav dej hauv phau ntawv;

Daim ntawv ceeb toom: tsis txhob siv cov ntawv tuab tuab, tej zaum staple tsis tuaj yeem ua haujlwm.

Kauj ruam 3: Kho vajtse Txuas

Kho vajtse Txuas
Kho vajtse Txuas
Kho vajtse Txuas
Kho vajtse Txuas

Tus pin ntawm weMos d1 tau txais qhov teeb meem me me. Luam tus lej ntawm lub rooj tsav xwm tsis tuaj yeem sib phim nrog tus lej arduino, yog li ceev faj;

Kuv sim ob peb tus pin, tau txais qee tus lej tiag, pls siv.

// code pin --- D1 borad pin // 2 ---- 8

//3 ---- 0

Kauj ruam 4: Arduino Uploading

Ua raws li url ntawm hauv qab no los teeb tsa koj ib puag ncig arduino:

Txhim kho nrog Boards Manager

tom qab ntawd yuav tsum xaiv qhov tseeb BOAED thiab UPLOAD SPEED hauv arduino editor;

Board - wemos D1 R2;

upload ceev: - 115200;

Kauj ruam 5: Npaj rau Android:

  1. JDK rub tawm thiab teeb tsa;
  2. Android SDk rub tawm thiab teeb tsa;
  3. Unity5.3.4 rub tawm thiab teeb tsa;
  4. Vuforia SDK 6.2 rub tawm; dawb version yog txaus;
  5. cardboardUnitySDK0.6 download tau ;

Android tau dhau los. IOS muaj teeb meem. tej zaum siv kev sib koom ua ke rau MAC

Kauj Ruam 6: Unity3d Android Tshaj Tawm los ntawm Project File

  1. rub tawm cov phiaj xwm phiaj xwm ntawm nplooj ntawv no, thiab rho tawm nws;
  2. khiav kev sib koom siab3d5.3.4, qhib qhov project, xaiv cov ntawv tais ceev tseg;
  3. mus rau https://developer.vuforia.com/license-manager,License Manager - ntxiv Daim ntawv tso cai, koj yuav tau txais txoj hlua ntev, luam nws;
  4. rov qab sib koom ua ke 3d , hierarchy - ARcamera , tom qab ntawd mus rau tus kws tshuaj xyuas - qhib vuforia teeb tsa ;
  5. muab koj tus yuam sij;
  6. xov tooj hauv xov tooj txuas PC, thiab tig rau DEBUG hom;
  7. U3D - Cov Ntaub Ntawv - Tsim Chaw - platform - Android ;
  8. Tsim thiab Khiav ;

Kauj Ruam 7: Yog tias Koj Xav Hloov Kho lossis DIY, Pls Txheeb Qhov no:

library.vuforia.com/articles/Solution/Inte..

Kauj Ruam 8: Cardboard HMD Ua Lub Qhov

Cardboard HMD Ua Lub Qhov
Cardboard HMD Ua Lub Qhov

Tsis muaj qhov nyob hauv google cardboard II, yog li peb xav tau ua ib lub xov tooj lub koob yees duab;

Yuav ua li cas thiaj nrhiav tau txoj haujlwm raug rau qhov:

  1. muab xov tooj tso rau hauv HMD, thiab kaw nws;
  2. txav koj tus ntiv tes xoo saum lub koob yees duab, tom qab nias nws nyuaj heev;

Feem ntau, lub koob yees duab tau txais qhov me me, yog li nws tuaj yeem ua qee qhov cim ntawm cov duab los qhia. Tab sis yog qee lub koob yees duab tsis thab plaub, koj tuaj yeem siv tus cwj mem kos rau xim nws, tom qab ntawd sim dua;

Thaum kawg, koj tuaj yeem txiav cov duab los qhia rau lub qhov.

Kauj Ruam 9: Yuav Sim Li Cas Game

  1. Qhib wifi hauv xov tooj;
  2. Nrhiav ssid “ESP_AP_wnq”, tus password : 12345678;
  3. Khiav AR app;
  4. Xov tooj lub ntsej muag lub ntsej muag kom kos duab;

Pom zoo: