๊ฒ์๋ฌผ 4~5๊ฐ์ ๊ฑธ์ณ์ ARCore๋ฅผ ์ด์ฉํด์ ๋๋์ง ๊ฒ์์ ๋ง๋ค๊ณ ํ๋ ์ด ์คํ ์ด์ ์ฌ๋ฆฌ๋๊ฑธ ์จ๋ณผ๋ ค๊ณ ํจ
1. ์ค๋น๋ฌผ
ย ย - ์ฆ๊ฒจ์ฐพ๊ธฐ
ARCore : https://developers.google.com/ar
ARCore for Unity API ๋ํผ๋ฐ์ค : https://developers.google.com/ar/reference/unity
ARCore for Unity ํต์คํํธ : https://developers.google.com/ar/develop/unity/quickstart
- ๋ค์ด๋ก๋
ย Unity 2017.3.0f2 ์ด์ ์ค์น
ย Unity Android ๋น๋ ํ๊ฒฝ
ย ARCore arcore-preview2.apk : https://github.com/google-ar/arcore-android-sdk/releases/download/sdk-preview2/arcore-preview2.apk
ย ARCore for Unity SDK : https://github.com/google-ar/arcore-unity-sdk/releases/download/sdk-preview2/arcore-unity-sdk-preview2.unitypackage
ย ย - ๋๋์ง ๋ฆฌ์์ค (์์์)
2. ์ฃผ์์ฌํญ
ย ย - ๊ตฌ๋๋๋ ๊ธฐ๊ธฐ
Samsung Galaxy Note8
- SM-N9508, SM-N950F, SM-N950N, SM-N950U, SM-N950W, SM-N950X, SM-SC01K, SM-SCV37
Samsung Galaxy S8+
- SM-G955F, SM-G955N, SM-G955U, SM-G955W, SM-G955X, SM-SC03J, SM-SCV35
Samsung Galaxy S8
- SM-G950U, SM-G950N, SM-G950F, SM-G950FD, SM-G950W, SM-G950U1
Samsung Galaxy S7
- SM-G930A, SM-G930F, SM-G930K, SM-G930L, SM-G930P, SM-G930R, SM-G930S, SM-G930T, SM-G930U, SM-G930V, SM-G930W
ย
ย - Android API Level ์ ํ
Android 7.0 / API Level 24์ด์
ย
ย - ์ฌ์ ์ค์น๋์ด์ผํ๋ ์ฑ
arcore-preview2.apk
ย
3. ์ค๋น๋ฌผ, ์ฃผ์ ์ฌํญ ์ค๋ช
์ฌ๊ธฐ๊น์ง ์ฝ์์ผ๋ฉด ์ด SDK๊ฐ ์ผ๋ง๋ ๋น์ ๊ฐ์ ๊ฑด์ง ๋์ถฉ ์์ ๋ค์์๊บผ๋ค.
ํฐ์ S7๋ฏธ๋ง์ ๋ชป ๋๋ฆฌ๊ณ API๋ ๋ฒจ์ 24์ด์ + ์ถ๊ฐ ์ค์น๊ฐ ํ์ํ ์ฑ์ด์๋ค.
์๋ฌด๋ฆฌ ์๊ฐํด๋ ์ง๊ธ ์์ฉํ ํ๋๊ฑด ์ ๋ ๋ถ๊ฐ๋ฅํด ๋ณด์ด์ง๋ง ์ง๊ธ ๋ฐฐํฌํ๋ ๋ฐฉ๋ฒ์ ์ด๊ฑฐ ๋ฐ์ ์๋ค.
ย
๋ฌด๋ ค ๊ตฌ๊ธ ์ธ๋ ๊ฒ์ ํ์คํฐ๋ฒ์๋ ์ด๋ฐ ๊ท์น์ด์๋ค.
์ฐธ๊ฐ ์๊ฒฉ > ๊ฒ์
VR(๊ฐ์ํ์ค)์ด๋ AR(์ฆ๊ฐํ์ค) ๊ฒ์์ธ ๊ฒฝ์ฐ, ๊ตฌ๊ธ VR SDK ๋๋ ARCore SDK๋ฅผ ์ฌ์ฉํด์ผ ํฉ๋๋ค.
์ด ๋ณ์ ๋ค์ ์ด๊ฑธ๋ก ์์ฉ AR ๊ฒ์์ ๋ฐฐํฌ ํ ์ ์๋ค๊ณ ์๊ฐํ๊ฑธ๊น
ย
๋๋์ง ๊ฒ์์ ๋ณ๋ก ์ค์ํ๊ฒ ์๋๋ฏ๋ก ๋๋ ์์ ์คํ ์ด์์ ํต์งธ๋ก ์นดํผํด์ ์ฌ์ฉํ ์๊ฐ์ด๋ค.
๋งํฌ : https://assetstore.unity.com/packages/templates/whack-a-mole-82155
2D ๋๋์ฅ๋ ์์ง๋ง ์ปจํ ์ธ ํน์ฑ์ ๊ฐ๋ ๋๋ฌธ์ 2D์ผ๊ฒฝ์ฐ ์์ ์ด ๋ถ๊ฐํผ ํ๋ฏ๋ก 3D ๋๋์ง๊ฒ์์ ๋ง๋ค๊ธฐ๋ก ํ๋ค.
ย
ย
4. ์๋๋ก์ด๋ ๋น๋ ํ๊ฒฝ ๊ตฌ์ถ
ย - ๊ตฌ๊ธ์ ๊ฒ์ํด์ ์์์ ํด๋ผ
ย
5. ARCore SDK ์ํ ๋น๋
ย ์๋ ์ค๋ช ์ ๊ตฌ๊ธ์ ์ด๋ฏธ ์ค๋ช ์ด ๋์ด์๋๊ฑฐ๋ค.
ย ํํ ๋ฆฌ์ผ URL : https://developers.google.com/ar/develop/unity/quickstart
ย
1)ย ๋น ์ ๋ํฐ ํ๋ก์ ํธ๋ฅผ ์์ฑํ๋ค.
2) ARCore for Unity SDK : https://github.com/google-ar/arcore-unity-sdk/releases/download/sdk-preview2/arcore-unity-sdk-preview2.unitypackage
SDK๋ฅผ ๋ค์ด๋ฐ๊ณ ์ํฌํธ ์ํจ๋ค.
3) Assets/GoogleARCore/Examples/HelloAR/Scenes ๊ฒฝ๋ก์์๋ ์ฌ์ ์ฐ๋ค.
4) File > Build Settings์ ์ด๊ณ Android๋ก ๋ฐ๊พผ๋ค.
5) PlayerSettings ํญ์ ์ด๊ณ Company Name์ ๋ ํ์ฌ๋ช ์ผ๋ก ๋ฐ๊พผ๋ค.
6) PlayerSettings > Resolution and Presentation > Orientation > Default Orientation์ Portrait๋ก ๋ณ๊ฒฝํ๋ค.
7) PlayerSettings > Other Settings > Rendering > Multithreaded Rendering ์ฒดํฌํด์
8) PlayerSettings > Other Settings > Identification > Package Name com.ํ์ฌ๋ช .๊ฒ์์ด๋ฆ์ผ๋ก ๋ณ๊ฒฝ
9) PlayerSettings > Other Settings > Identification > Minimum API Level์ API Level 7.0 ์ ํ
10) PlayerSettings > Other Settings > Identification > TargetAPI Level์ API Level 7.0 ์ ํ
11) PlayerSettings > XR Settings >ARCore Supported ์ฒดํฌ
ย
12) ํฐ์ย
ARCore arcore-preview2.apk ๋ฅผ ์ค์นํ๋ค.ย ย ย URL :ย https://github.com/google-ar/arcore-android-sdk/releases/download/sdk-preview2/arcore-preview2.apk
ย ย โป ์ฑ์ ์คํ์ํจ ํ์ ์นด๋ฉ๋ฌ ๊ถํ์ ์ป๋ ํ์ ์ด ๋์ค๋ฉดย arcore-preview2.apk๊ฐ ์ค์น๋ ๊ฒ์ด๊ณ ์ฑ์ด ๋ฐ๋ก ์ฃฝ์ด๋ฒ๋ฆฌ๋ฉด ์ค์น๊ฐ ์๋ ์ํ์ธ๊ฑฐ๋ค.
13) ๋ฐ๋ฅ์ ์ค์บํ๊ณ ํฐ์น๋ก ์๋๋ก์ด๋๊ฐ ์์ฑ๋๋ ์ง ํ์ธํ๋ค. ํ์์, ๋นจ๊ฐ์ย ๊ทธ๋ฌผ๊ฐ์๊ฒ ๋ฐ๋ฅ์ ๋ณด์ด๋ฉด ์ ์์๋ ํ๋๊ฑฐ๋ค.
์ฌ๊ธฐ๊น์ง๊ณ ARCore ๊ธฐ๋ณธ์ํ ์ค์น์๋ค.
๋ค์์ ๋๋์ง ๊ฒ์์ ์ํฌํธํ๊ณ ๋ชจ๋ฐ์ผ AR์ ๋ง๊ฒ ๋ณ๊ฒฝํ๋๊ฑธ ์ธ๊บผ๋ค.
ย ย ย
๋๊ธ 0