Google Adds New APIs For AR Development With ARCore

Google has released updates to its ARCore, which is a platform for building augmented reality experiences. With the new updated algorithm, apps now will utilize less memory and CPU.

Google has released updates to its ARCore, a platform for building augmented reality experiences. With new updated algorithm, apps now will utilize less memory and CPU while new functionalities will provide more flexibility to content management.
 
In the new version, now Sceneform will have an API to allow apps to load glTF (GLTF) models at runtime. Now, there is no need to convert the gITF files to SFB format before rendering. To use this new capability and load models from the cloud or local storage at runtime, you can use RenderableSource as the source when building a ModelRenderable.
  1. private static final String GLTF_ASSET = "https://github.com/KhronosGroup/glTF-Sample-Models/raw/master/2.0/Duck/glTF/Duck.gltf";  
  2.   
  3. // When you build a Renderable, Sceneform loads its resources in the background while returning  
  4. // a CompletableFuture. Call thenAccept(), handle(), or check isDone() before calling get().  
  5. ModelRenderable.builder()  
  6. .setSource(this, RenderableSource.builder().setSource(  
  7. this,  
  8. Uri.parse(GLTF_ASSET),  
  9. RenderableSource.SourceType.GLTF2).build())  
  10. .setRegistryId(GLTF_ASSET)  
  11. .build()  
  12. .thenAccept(renderable -> duckRenderable = renderable)  
  13. .exceptionally(  
  14. throwable -> {  
  15. Toast toast =  
  16. Toast.makeText(this"Unable to load renderable", Toast.LENGTH_LONG);  
  17. toast.setGravity(Gravity.CENTER, 0, 0);  
  18. toast.show();  
  19. return null;  
  20. });  
The company has also published the source code of the Sceneform UX library so that developers can customize elements as needed.
 
Adding point cloud IDs to ARCore
 
To provide the ability to associate points between frames, the company has added an API to ARCore that will assign IDs to each individual dot in a point cloud. Having a point be present in multiple frames, gives a solid, stable structure rather than an object in motion.
 
According to Google,
 
"These new point IDs have the following elements:
  • Each ID is unique. Therefore, when the same value shows up in more than one frame, you know that it's associated with the same point. 
  • Points that go out of view are lost forever. Even if that physical region comes back into view, a point will be assigned a new ID."
ARCore support has also been extended to smartphones and a Chrome OS device, the Acer Chromebook Tab 10.