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

AR.jsにて独自のマーカーを作成して使用するときの注意点

Posted at

AR.jsで自分で
https://jeromeetienne.github.io/AR.js/three.js/examples/marker-training/examples/generator.html
にて独自にマーカーを作成して使用する際の注意点をお伝えします。

 それは、もし、枠の比率を変化したのならば、その比率を覚えておき、使用する際にはその変更した割合を記述する必要があることというとです。

 もし比率を6割で作成した際には

const arToolkitContext = new THREEx.ArToolkitContext({
    cameraParameterUrl: './data/camera_para.dat',
    // 比率を変えた場合にはその変更を記述
    patternRatio: 0.6,
    detectionMode: 'mono_and_matrix',
})

とArToolkitContext内に記述しないとうまくマーカーを認識してくれません。

使用する際にはぜひお気を付けを!

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