{"action":"created","issue":{"url":"https://api.github.com/repos/appoly/ARCore-Location/issues/60","repository_url":"https://api.github.com/repos/appoly/ARCore-Location","labels_url":"https://api.github.com/repos/appoly/ARCore-Location/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/appoly/ARCore-Location/issues/60/comments","events_url":"https://api.github.com/repos/appoly/ARCore-Location/issues/60/events","html_url":"https://github.com/appoly/ARCore-Location/issues/60","id":369236959,"node_id":"MDU6SXNzdWUzNjkyMzY5NTk=","number":60,"title":"Unable to see location marker","user":{"login":"jayvardhanc","id":14246198,"node_id":"MDQ6VXNlcjE0MjQ2MTk4","avatar_url":"https://avatars2.githubusercontent.com/u/14246198?v=4","gravatar_id":"","url":"https://api.github.com/users/jayvardhanc","html_url":"https://github.com/jayvardhanc","followers_url":"https://api.github.com/users/jayvardhanc/followers","following_url":"https://api.github.com/users/jayvardhanc/following{/other_user}","gists_url":"https://api.github.com/users/jayvardhanc/gists{/gist_id}","starred_url":"https://api.github.com/users/jayvardhanc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayvardhanc/subscriptions","organizations_url":"https://api.github.com/users/jayvardhanc/orgs","repos_url":"https://api.github.com/users/jayvardhanc/repos","events_url":"https://api.github.com/users/jayvardhanc/events{/privacy}","received_events_url":"https://api.github.com/users/jayvardhanc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-11T17:56:27Z","updated_at":"2018-10-31T20:33:56Z","closed_at":null,"author_association":"NONE","body":"The application runs without any errors. But I cannot see the marker placed at the desired location.\r\nThe Logcat repeatedly display this message:\r\n 10-11 12:52:48.177 10853-10853/com.google.ar.sceneform.samples.hellosceneform I/LocationScene: Refreshing anchors...\r\n10-11 12:52:48.178 10853-10853/com.google.ar.sceneform.samples.hellosceneform I/LocationScene: Location not yet established.\r\n\r\nIs there any mistake in code?\r\n\r\nCode: \r\n\r\npublic class HelloSceneformActivity extends AppCompatActivity {\r\n  private static final String TAG = HelloSceneformActivity.class.getSimpleName();\r\n  private static final double MIN_OPENGL_VERSION = 3.0;\r\n\r\n  private ArFragment arFragment;\r\n  private ModelRenderable andyRenderable;\r\n  private LocationScene locationScene;\r\n\r\n  @Override\r\n  @SuppressWarnings({\"AndroidApiChecker\", \"FutureReturnValueIgnored\"})\r\n  // CompletableFuture requires api level 24\r\n  // FutureReturnValueIgnored is not valid\r\n  protected void onCreate(Bundle savedInstanceState) {\r\n    super.onCreate(savedInstanceState);\r\n\r\n    if (!checkIsSupportedDeviceOrFinish(this)) {\r\n      return;\r\n    }\r\n\r\n    setContentView(R.layout.activity_ux);\r\n    arFragment = (ArFragment) getSupportFragmentManager().findFragmentById(R.id.ux_fragment);\r\n\r\n    ArSceneView arView = arFragment.getArSceneView();\r\n    //Scene scene = arView.getScene();\r\n    Frame frame = arView.getArFrame();\r\n\r\n    \r\n    // When you build a Renderable, Sceneform loads its resources in the background while returning\r\n    // a CompletableFuture. Call thenAccept(), handle(), or check isDone() before calling get().\r\n    ModelRenderable.builder()\r\n        .setSource(this, R.raw.andy)\r\n        .build()\r\n        .thenAccept(renderable -> andyRenderable = renderable)\r\n        .exceptionally(\r\n            throwable -> {\r\n              Toast toast =\r\n                  Toast.makeText(this, \"Unable to load andy renderable\", Toast.LENGTH_LONG);\r\n              toast.setGravity(Gravity.CENTER, 0, 0);\r\n              toast.show();\r\n              return null;\r\n            });\r\n\r\n    arView\r\n           .getScene()\r\n           .addOnUpdateListener(\r\n                   frameTime -> {\r\n                     if (locationScene == null) {\r\n                       locationScene = new LocationScene(this, this, arView);\r\n                       locationScene.mLocationMarkers.add(\r\n                               new LocationMarker(\r\n                                       -97.113505,\r\n                                       32.719180,\r\n                                       getAndy()));\r\n                       System.out.println(\"Marker placed\");\r\n                     }\r\n\r\n                     if (locationScene != null) {\r\n                       locationScene.processFrame(frame);\r\n                     }\r\n                   }\r\n           );\r\n  }\r\n\r\n  private Node getAndy(){\r\n    Node base = new Node();\r\n    base.setRenderable(andyRenderable);\r\n    Context c =this;\r\n    base.setOnTapListener((v, event) -> {\r\n      Toast.makeText(\r\n              c, \"Andy touched.\", Toast.LENGTH_LONG)\r\n              .show();\r\n    });\r\n    return  base;\r\n  }\r\n\r\n  public static boolean checkIsSupportedDeviceOrFinish(final Activity activity) {\r\n    if (Build.VERSION.SDK_INT < VERSION_CODES.N) {\r\n      Log.e(TAG, \"Sceneform requires Android N or later\");\r\n      Toast.makeText(activity, \"Sceneform requires Android N or later\", Toast.LENGTH_LONG).show();\r\n      activity.finish();\r\n      return false;\r\n    }\r\n    String openGlVersionString =\r\n        ((ActivityManager) activity.getSystemService(Context.ACTIVITY_SERVICE))\r\n            .getDeviceConfigurationInfo()\r\n            .getGlEsVersion();\r\n    if (Double.parseDouble(openGlVersionString) < MIN_OPENGL_VERSION) {\r\n      Log.e(TAG, \"Sceneform requires OpenGL ES 3.0 later\");\r\n      Toast.makeText(activity, \"Sceneform requires OpenGL ES 3.0 or later\", Toast.LENGTH_LONG)\r\n          .show();\r\n      activity.finish();\r\n      return false;\r\n    }\r\n    return true;\r\n  }\r\n}"},"comment":{"url":"https://api.github.com/repos/appoly/ARCore-Location/issues/comments/434837920","html_url":"https://github.com/appoly/ARCore-Location/issues/60#issuecomment-434837920","issue_url":"https://api.github.com/repos/appoly/ARCore-Location/issues/60","id":434837920,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDgzNzkyMA==","user":{"login":"jayvardhanc","id":14246198,"node_id":"MDQ6VXNlcjE0MjQ2MTk4","avatar_url":"https://avatars2.githubusercontent.com/u/14246198?v=4","gravatar_id":"","url":"https://api.github.com/users/jayvardhanc","html_url":"https://github.com/jayvardhanc","followers_url":"https://api.github.com/users/jayvardhanc/followers","following_url":"https://api.github.com/users/jayvardhanc/following{/other_user}","gists_url":"https://api.github.com/users/jayvardhanc/gists{/gist_id}","starred_url":"https://api.github.com/users/jayvardhanc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayvardhanc/subscriptions","organizations_url":"https://api.github.com/users/jayvardhanc/orgs","repos_url":"https://api.github.com/users/jayvardhanc/repos","events_url":"https://api.github.com/users/jayvardhanc/events{/privacy}","received_events_url":"https://api.github.com/users/jayvardhanc/received_events","type":"User","site_admin":false},"created_at":"2018-10-31T20:33:56Z","updated_at":"2018-10-31T20:33:56Z","author_association":"NONE","body":"Co-ordinates are fine. Checked the co-ordinates on google maps. Do I need to write separate code to get the device location?\r\n"}}
{"actor":{"display_login":"jayvardhanc"}}