ページの先頭行へ戻る
Interstage AR Processing Server V1.1.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);
    
  • バーコードを使用する場合
    //座標系オブジェクトの作成
    var coordinateSystem = new AR.Renderer.FJBarcodeCoordinateSystem();
    //バーコードIDの設定
    coordinateSystem.setValue("http://www.example.com");
    AR.Renderer.put(coordinateSystem, superimposedGraphic, onSuccess, onError);
    
  • Beaconを使用する場合
    //座標系オブジェクトの作成
    var coordinateSystem = new AR.Renderer.FJBeaconCoordinateSystem();
    //UUIDの設定(8-4-4-4-12)
    coordinateSystem.setValue("123e4567-e89b-12d3-a456-426655440000");
    AR.Renderer.put(coordinateSystem, superimposedGraphic, onSuccess, onError);