4
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 5 years have passed since last update.

[Vuforia AR] Adding self made target

Last updated at Posted at 2013-03-03

iOS用のVuforiaのAR SDKを使っていて自分で作ったターゲットが全然機能せずはまったのでメモ。

当初こんな感じで書いていた

ImageTargetsAppDelegate.mm
    // Provide a list of targets we're expecting - the first in the list is the default
    [qUtils addTargetName:@"Stones & Chips" atPath:@"StonesAndChips.xml"];
    [qUtils addTargetName:@"Tarmac" atPath:@"Tarmac.xml"];
    [qUtils addTargetName:@"MyTarget" atPath:@"MyTarget.xml"];

でもこれだと最初の2つしか認識してくれない。
ところが以下で試してみると、うまくできた。

ImageTagetsAppDeleagate.mm
    // Provide a list of targets we're expecting - the first in the list is the default
    [qUtils addTargetName:@"MyTarget" atPath:@"MyTarget.xml"];
//    [qUtils addTargetName:@"Stones & Chips" atPath:@"StonesAndChips.xml"];
 //   [qUtils addTargetName:@"Tarmac" atPath:@"Tarmac.xml"];

Targetの追加できる数とか限られていて、もしTargetを追加たければxmlに追記しろということなのかと思っている。ここら辺の数の制限とかも調べたい。
でもとりあえず、

僕はTargetを一つしか使うつもりはないので、これでも特に困らない。

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