1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

MindARがAndroidで位置がずれて表示されることへの対処方法

Posted at

顔認識してAR表示させるにはMindARはとても手軽なツールです。いくつかの作品で使わせていただいております。
https://kaihatuiinkai.jp/ardeasobou/aquarium.html
↑これはWidnowsの各種ブラウザ、chromebook、iPadで作動します。
画面サイズと縦型レイアウトに変更してスマートフォン用を作ってみました。
https://kaihatuiinkai.jp/ardeasobou/sp_aquarium0.html
iPhoneでは作動します。でもAndroidでは位置がずれてしまいます。

MidnARのa-cameraのタグを変更

a-cameraタグのactive='true'にするとAndroidでも正しい位置に表示されます。

<a-camera active='true' position='0 0 0'></a-camera>

active='false'だとAndroidでは位置がずれて表示されます。
iPhoneの場合、'true''false'のどちらにしても位置はずれません。
サンプルプログラムはこちら
https://kaihatuiinkai.jp/ardeasobou/sp_aquarium.html
これに気が付くまで2週間かかりました。

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?