LoginSignup
22

More than 5 years have passed since last update.

ARCore SceneformのKotlinサンプルコード「ARCore Kotlin Sampler」作りました

Last updated at Posted at 2019-01-26

ARCore Sceneformを使った実装をKotlinでやっているサンプルが無かったので作ってみました。(GoogleのSceneformのサンプルはJavaではあるのですが、Kotlinでは無かったです。)

ということで作ったのが「ARCore-Kotlin-Sampler

ARCore-Kotlin-Sampler

  • Sceneformの基本のサンプル
  • Augumented Imagesのサンプル
  • Could Anchorsのサンプル

があります。

Sceneform

Google Polyのオブジェクトを空間に表示するだけのサンプルです。Sceneformでは、最初から拡大縮小の機能や平面認識の表示などがついてるのでARKitに比べてサクッと本格的なARが実装できます。

chair lamp couch

Augumented Images

飛行機の画像マーカーを見せたら飛行機のオブジェクトを表示するサンプル。これもPolyの素材です。ARKitの画像マーカーと同じくらいの実力です。

Could Anchors

Cloud AnchorsはiOSでもAndroidも同じように使えます。AndroidはFirebaseの導入がAndroid Studioから簡単に出来るので良いですね。

Host Resolve

まとめ

ということで、

ARCore-Kotlin-Sampler | Github

良ければスターください!
誰かの参考になれば幸いです。

参考にした教材

https://developers.google.com/ar/develop/?hl=ja
https://www.udemy.com/arcore-and-sceneform-for-android-ar

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
22