ページの先頭行へ戻る
Interstage AR Processing Server V1.1 開発ガイド
FUJITSU Software

4.7.2 AR重畳表示定義の設定

作成したAR 重畳表示定義は座標系オブジェクトといっしょにAR実行クライアントに設定してください。 ARマーカーを使用する場合はAR.Renderer.FJARMarkerCoordinateSystemオブジェクトを生成し、ARマーカーIDを設定してください。 位置情報を使用する場合はAR.Renderer. FJGeolocationCoordinateSystemを生成してください。

  • ARマーカーを使用する場合
    //座標系オブジェクトの作成
    var coordinateSystem = new AR.Renderer.FJARMarkerCoordinateSystem();
    //マーカーIDの設定
    coordinateSystem.setValue(1);
    
    AR.Renderer.put(coordinateSystem, superimposedGraphic, onSuccess, onError);
    
  • 位置情報を使用する場合
    //座標系オブジェクトの作成
    var coordinateSystem = new AR.Renderer.FJGeolocationCoordinateSystem();
    
    AR.Renderer.put(coordinateSystem, superimposedGraphic, onSuccess, onError);