3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Lightship ARDK の AR Voyage プロジェクトを動かしてみる

Last updated at Posted at 2021-11-15

AR Voyage とは?

AR Voyageは、Lightship ARDKで利用可能な機能で設計された短いゲームのアプリケーションです。
unnamed.png
※ Lightship ARDK については、こちら にまとめました。
※ 動作するように設定したコードは こちら に用意しました。

プロジェクトを動作させるまでに必要な設定を備忘録としてまとめました。

AR Voyage プロジェクトの内容

AR Voyage プロジェクトには6つのシーンがあります。

  • Splash : スプラッシュ画像を表示する
  • Map : 4つのデモのどれを再生するかを選択するためのメインメニュー画面
  • SnowballToss : サンプルゲーム
  • Walkabout : サンプルゲーム
  • SnowballFight : サンプルゲーム
  • BuildAShip : サンプルゲーム

unnamed.jpg

サンプルアプリを動作させるための手順

  1. 公式サイトからダウンロード
  2. unityプロジェクトを作成
  3. Universal RP を設定
  4. ArdkAuthConfig を設定
  5. iOSビルド設定

1と2の項目は「Lightship ARDK のサンプルプロジェクトを動かしてみる」と同じです。

1. 公式サイトからダウンロード

こちら からダウンロードして設定しました。
ダウンロードにはアカウント登録が必要です。

以下のファイルをダウンロードします。

  • ardk-1.0.1.unitypackage
  • ardk-voyage-1.0.1.tar

サイトのこちらのボタンからダウンロードします。
スクリーンショット 2021-11-15 18.24.21.png

2. unityプロジェクトを作成

unityプロジェクトを作成する際に「Mobile 3D」を選択してプロジェクトを作成します。
https___qiita-image-store.s3.ap-northeast-1.amazonaws.com_0_229633_e7c3135d-6ff9-8ba7-7fd5-bc3a93d9b7df.png

プロジェクトを作成したら、ardk-1.0.1.unitypackageをインポートして、ardk-voyage-1.0.1.tarを解凍してプロジェクトに配置します。
配置は以下のようになります。
スクリーンショット 2021-11-15 18.56.33.png
エラーが表示されているので、解消します。

3. Universal RP を設定

パッケージマネージャーから、Universal RPを追加します。

メニューの「Edit -> Project Setting」を開きます。
「Project Setting」の「Graphics」をクリックし、「Scriptable Render Pipeline Settings」に「ARVoyageUrpAsset」を設定します。
スクリーンショット 2021-11-15 12.26.57.png

4. ArdkAuthConfig を設定

#Niantic.ARDK.Internals.StartupSystems#: Could not load an ArdkAuthConfig, please add one under Resources/ARDK/

こちらのエラーは、以前書いたこちらの内容で解消します。

5. iOSビルド設定

2021/11 リリース 現在では、iOSのみがビルド可能になっています。
androidでのビルドは出来ませんでした。

Build Settings を以下のように設定します。

スクリーンショット 2021-11-15 19.10.30.png

Player Settings... をクリックし、以下の項目を入力します。

  • Company Name の入力
    スクリーンショット 2021-11-15 17.15.46.png
  • Camera Usage Description と Location Usage Description を入力
    スクリーンショット 2021-11-15 17.15.23.png

Build Settings で Build And Run を実行すると以下のようなミニゲームが遊べます。
meshing_lightship.gif

AR開発で参考になる本

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?