Cov txheej txheem:

360 VR App hauv 10 feeb Nrog Kev Sib Koom: 8 Kauj Ruam
360 VR App hauv 10 feeb Nrog Kev Sib Koom: 8 Kauj Ruam

Video: 360 VR App hauv 10 feeb Nrog Kev Sib Koom: 8 Kauj Ruam

Video: 360 VR App hauv 10 feeb Nrog Kev Sib Koom: 8 Kauj Ruam
Video: POV: you’re 6’9” 400 pounds and booked the middle seat 2024, Kaum ib hlis
Anonim
360 VR App hauv 10 feeb Nrog Kev Sib Koom
360 VR App hauv 10 feeb Nrog Kev Sib Koom

Peb tsim lub app no li cas?

Tsis zoo li cov vis dis aus niaj hnub uas muaj cov duab plaub, 360 cov vis dis aus muaj cov duab ntawm tus kheej. Yog li, thawj zaug peb yuav tsum tsim lub vijtsam kheej kheej los ua haujlwm peb 360 video rau. Tus neeg uas ua ntawv (lossis tus saib) yuav nyob hauv qhov chaw no thiab tuaj yeem saib cov vis dis aus ntawm txhua qhov kev coj. Cov theem hauv qab no yuav tsum ua rau koj muaj kev muaj zog los ua koj tus kheej hloov pauv, los ntawm kev piav qhia tias nws txhua yam ua haujlwm li cas hauv qab lub hau. Rau cov lus qhia ib qib zuj zus

Kauj Ruam 1: Yam Koj Xav Tau

Yam Koj Xav Tau
Yam Koj Xav Tau

Lub xov tooj Android nrog lub tshuab ntsuas lub ntsej muag kom nkag siab lub taub hau txav, khiav ntawm KitKat lossis OS tshiab dua.

Cardboard lub mloog pob ntseg. Yog tias koj tsis muaj ib tus, koj tuaj yeem pom ntau ntawm Amazon rau tsawg dua 10 daus las.

Unity3D, lub tshuab ua si hla lub platform, uas koj xav tau los teeb tsa hauv koj lub khoos phis tawj, version 5.6 lossis tshiab dua. Peb yuav siv cov software no los tsim peb txoj haujlwm tag nrho.

GoogleVR SDK rau Kev Sib Koom, uas koj tuaj yeem rub tawm ua ntej.

360 yees duab. Tua ib lub koob yees duab 360 lossis koj tuaj yeem pom 360 yees duab hauv Youtube, Facebook lossis Txhua Lub Vev Xaib 360 Video

Kauj ruam 2: Tsim Sphere

Tsim lub Sphere
Tsim lub Sphere

Ua ntej tshaj, qhib qhov Kev Sib Koom Tshiab tshiab yog tias koj tab tom pib kos (lossis Scene tshiab yog tias koj xav koom ua ke 360 tus neeg ua yeeb yaj kiab hauv ib qhov haujlwm uas twb muaj lawm.) Xav txog Scene ua ib qib ntawm kev ua yeeb yaj kiab, thiab Project zoo li puv game.

Tom qab ntawd, ntxiv tus kheej kheej hauv Scene, tso rau ntawm nws qhov chaw (Txoj haujlwm = 0, 0, 0), nrog lub vojvoog ntawm 50 (Nplai = 50, 50, 50). Lub Koob Yees Duab txoj haujlwm yuav tsum tau teeb tsa rau 0, 0, 0. Lub Koob Yees Duab yog tus neeg siv/saib lub qhov muag yog li peb xav kom nws nyob hauv nruab nrab ntawm Sphere. Muab nws tso rau lwm qhov yuav ua rau cov vis dis aus tsis zoo. Thaum Lub Koob Yees Duab tau tso rau sab hauv Sphere, tom kawg tsis pom nyob hauv Scene. Tsis txhob txhawj, muaj lus piav qhia rau qhov ntawd! Qhov tseeb, feem ntau cov tshuab ua si tsis ua, los ntawm qhov ua tau, ua los ntawm lub hauv ntej sab hauv ntawm cov khoom 3D. Qhov no vim tias peb tsis tshua xav tau pom lawv, nws yuav yog qhov pov tseg cov peev txheej los ua rau lawv. Peb yuav kho qhov tom ntej.

Kauj Ruam 3: Tig lub Sphere's Normals

Tig lub Sphere's Normals
Tig lub Sphere's Normals

Hauv peb qhov xwm txheej, peb yuav tsum tau pom peb Sphere los ntawm sab hauv. Ntawd yog tag nrho cov ntsiab lus ntawm lub app, yog li peb yuav tig nws sab hauv-tawm.

Hauv Kev Sib Koom, tsis yog tus kheej (yog dab tsi? Peb tau dag rau txhua qhov!), Lawv yog cov duab ntau nrog ntau txhiab tus hluas, qhov ntsej muag me me. Sab nrauv ntawm sab ntsej muag pom tau, tab sis tsis yog sab hauv. Vim li ntawd, peb tab tom ua ib txoj haujlwm txhawm rau tig cov ntsej muag me me no zoo li pancakes. Hauv 3D geometry, peb hu qhov kev hloov pauv no "thim rov qab cov qauv" lossis "ntxeev cov qauv". Peb yuav siv txoj haujlwm hu ua Shader, uas peb yuav siv rau Cov Khoom ntawm Sphere. Cov ntaub ntawv tswj cov tsos ntawm cov khoom hauv Kev Sib Koom. Shaders yog cov ntawv me me uas xam xim ntawm txhua lub pixel ua, raws li teeb pom kev zoo thiab cov ntaub ntawv rub los ntawm lawv Cov Khoom. Yog li tsim cov Khoom Siv Tshiab rau Sphere, tom qab ntawd Shader tshiab tau thov rau Cov Khoom Siv no. Peb yuav tsum sau txoj cai rau Shader… tab sis tsis muaj kev ntshai, koj tuaj yeem luam tawm-muab cov cai hauv qab no:

Nyem qhov Txuas no rau Code Link

Tus Shader me me no yuav tig txhua lub pixel ntawm tus kheej sab hauv. Tam sim no peb Sphere zoo li lub pob dawb loj, saib los ntawm sab hauv, hauv peb qhov Scene. Cov kauj ruam tom ntej yog tig lub ntsej muag dawb no rau hauv cov neeg ua yeeb yaj kiab.

Kauj Ruam 4: Project Koj 360 Video Sab Hauv Sphere

Ntawm no koj yuav tsum muaj 360 mp4 video ntawm tes. Ntshuam nws hauv qhov haujlwm, tom qab ntawd rub nws mus rau Sphere. Thiab qhov ntawd yog thaum cov khawv koob tshwm sim: qhov 'Video Player' tivthaiv tshwm thiab tawg, cov vis dis aus tau npaj ua si. Koj tuaj yeem ua si nrog cov chaw zoo li loops thiab suab. Nws kuj txhawb nqa streaming!

Kauj ruam 5: Teeb Google Cardboard?

Hauv cov kauj ruam no, peb yuav ua rau qhov kev paub zoo tiag tiag. Yog vim li cas peb thiaj xav saib nws hauv VR lub mloog pob ntseg, ntawm no yog Google Cardboard.

Peb tab tom yuav tsim qhov "stereoscopic" pom (lub vijtsam yuav muab faib ua ob qho, nrog qee qhov fisheye cuam tshuam rau ob sab - ib sab rau txhua lub qhov muag), siv GoogleVR SDK. Cov nyhuv fisheye ntawm txhua lub qhov muag, ua ke nrog qhov tsis sib xws ntawm Cardboard cov yas lo ntsiab muag, yog dab tsi ua rau koj tsis pom kev ntawm qhov tob thiab raus dej.

Txhawm rau ntxiv GoogleVR SDK rau peb txoj haujlwm, rub tawm thiab ntsaws lub plugin, tom qab ntawd peb yuav hloov kho pawg ntawm Android teeb tsa:

  • Mus rau sab saum toj bar ntawv qhia zaub mov> Cov Ntaub Ntawv> Tsim Chaw. Ntxiv koj qhov xwm txheej qhib yog tias nws tseem tsis tau ntxiv, tom qab ntawd xaiv Android hauv cov npe ntawm cov chaw txhawb nqa.
  • Nyem rau Hloov Platform. Nws yuav tsum siv sijhawm me ntsis thaum thawj zaug koj hloov pauv.
  • Nyem rau Player Chaw. Cheebtsam tshwm nyob rau hauv Vaj Huam Sib Luag Qhia.

Hauv Player Player 'Tus Kws Qhia Ntawv, nyob hauv ntu' Lwm Chaw ':

  • Txheeb xyuas Virtual Reality Supported. Hauv qab Virtual Reality SDKs, xaiv lub + cim, tom qab ntawd xaiv Cardboard ntxiv nws rau hauv cov npe.
  • Sau lub npe pob rau hauv Bundle Identifier teb (piv txwv li, com.yourdomain.demo360). Nws yuav tsum yog qhov tshwj xeeb thiab siv los cais peb cov app los ntawm lwm tus hauv Google Play khw.
  • Teem Yam Tsawg Tshaj API Qib Ntawv qhia zaub mov rau "Android 4.4 'Kit Kat' (API qib 19)".

Tom qab ntawd, coj mus rau 'GvrViewerMain' lub ntsiab lus los ntawm GoogleVR Prefabs nplaub tshev hauv Project Browser, thiab rub nws mus rau qhov xwm txheej. Hauv Tus Kws Tshuaj Ntsuam Xyuas, muab nws Txoj Haujlwm Zoo ib yam li qhov chaw ntawm Sphere - (0, 0, 0).

GvrViewerMain prefab tswj hwm txhua qhov VR teeb tsa, xws li hloov kho lub vijtsam rau Cardboard lo ntsiab muag. Nws kuj tseem sib txuas lus nrog koj lub xov tooj gyroscope txhawm rau taug qab koj lub taub hau txav. Thaum koj tig koj lub taub hau, Lub Koob Yees Duab thiab qhov koj pom kuj tig sab hauv 360 tus neeg ua yeeb yaj kiab. Tam sim no koj tuaj yeem saib txhua qhov kev qhia thaum lub vis dis aus qhib thiab lub vijtsam tau muab faib ua ob qho, kom haum ob lub lo ntsiab muag ntawm Cardboard.

Kauj ruam 6: Khiav App ntawm Android?

Khiav lub App ntawm Android?
Khiav lub App ntawm Android?

Rau peb cov kauj ruam kawg, peb yuav siv lub app ntawm lub xov tooj Android thiab qhia rau cov phooj ywg! Muaj ob txoj hauv kev los ua qhov ntawd: Rov qab mus rau File> Build Settings. Koj tuaj yeem txuas lub xov tooj Android nrog USB cable rau koj lub khoos phis tawj thiab nyem rau ntawm Build & Run. Qhov no teeb tsa lub app ncaj qha rau koj lub xov tooj. Lwm qhov kev xaiv yog nyem rau ntawm Tsim nkaus xwb. Qhov no tsis teeb tsa nws hauv lub xov tooj, tab sis hloov chaw ua APK cov ntaub ntawv. Koj tuaj yeem faib APK los ntawm email nrog txhua tus neeg uas xav sim ua cov txuj ci uas koj nyuam qhuav tsim. Lawv yuav tsum tau ob-kais ntawm APK txuas rau nruab nws ntawm lawv lub xov tooj. Yog tias qhov xwm txheej, rub tawm Android SDK tom qab ntawv xaiv nws qhov chaw nyob. Tua tawm lub app, qhib koj lub xov tooj rau hauv Cardboard lub mloog pob ntseg, koj zoo mus! Koj tuaj yeem hloov cov vis dis aus nrog txhua yam hauv 360 hom thiab paub txog VR 360 kev tso dej nyob hauv tsev.

Mus Ntxiv

Nrog koj zoo siab, koj tau ua 360 video app, thiab koj yog ib kauj ruam deb ntawm kev tsim VR video app! Thaum cov ntsiab lus feem ntau siv zoo ib yam, 360 thiab VR txhais ob qhov kev paub sib txawv: 360 cov vis dis aus tau kaw los ntawm txhua lub ces kaum, nrog lub koob yees duab tshwj xeeb lossis kev sib dhos ntawm ntau yam. Tus neeg siv tuaj yeem saib txhua qhov kev xav tau, tab sis tsis muaj kev cuam tshuam nrog rau kev paub dhau los. VR feem ntau hais txog lub khoos phis tawj tsim ib puag ncig uas tus neeg siv tau raus dej. Nws yog qhov kev sib tham sib tham: tus neeg ua si tuaj yeem txav mus los thiab tswj cov khoom, ntxiv rau saib txhua qhov kev qhia.

Kauj ruam 7:

Koj lub app tshiab tuaj yeem ua lub hauv paus pib los tsim kev paub VR zoo dua. Kev sib haum xeeb muaj ntau cov yam ntxwv uas koj tuaj yeem siv tau, xws li ntxiv 3D cov ntsiab lus lossis cov txiaj ntsig txias txias ✨ txhawm rau txhim kho thiab txhim kho koj cov vis dis aus, lossis ntuav qee yam sib tham sib.

Kauj Ruam 8: Tsis Yog Kauj Ruam Taug Kev Tsab Ntawv (Yeem Xaiv)

Koj tseem tuaj yeem tso tag nrho 3D ib puag ncig hauv 360 video player thiab siv qhov kawg ua lub skybox. Tus neeg siv tuaj yeem taug kev hauv qhov xwm txheej, siv tsab ntawv taug kev zoo.

Pom zoo: