예제 #1
0
  private final void initARViews() {
    sceneView = new OAARVRViewComponent(this, dataManager, sensorManager);

    initTouch();

    // Setup the ar view component, this implements our new vision of the way components work in
    // outdoor ar.
    arView = new ARViewComponent(this);
    if ((options & OPTION_DISABLE_CAMERA_BACKGROUND) != 0) arView.enableCameraBackground(false);
    arView.setDelayOnResume(700);
    arView.setSceneView(sceneView);
    arViewPlaceHolder.addView(
        arView,
        new LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
  }
예제 #2
0
 public final void enableCameraBackground(boolean enable) {
   if (arView != null) arView.enableCameraBackground(enable);
 }