Skip to content

ARCore 1.26.0 + Filament 1.12.0 + Performances + Refactoring

Compare
Choose a tag to compare
@ThomasGorisse ThomasGorisse released this 20 Aug 13:28
· 129 commits to master since this release
  • ARCore 1.25.0 -> 1.26.0
  • Filament 1.10.7 -> 1.12.0
  • Other depencies :
    • appcompat 1.2.0 -> 1.3.1
    • compileSdkVersion 30 -> 31
    • targetSdkVersion 30 -> 31
    • sourceCompatibility VERSION_1_8 -> VERSION_11
    • targetCompatibility VERSION_1_8 -> VERSION_11
    • classpath 'com.android.tools.build:gradle:7.0.0'
  • New functions:
    • Add setters for ArFragment/ArSceneview Session and Session Config
    • Add a public destroy() function in SceneView
  • Performance and cleanup
    • The Filament renderer begingFrame function call is now before anything ArCore related is updated.
    • Swapped order of the doUpdate and doRender function call in SceneView.
    • Added Choreographer.getInstance().removeFrameCallback(this); to the destroy function call in SceneView.
    • Added to BaseArFragment a new function to close the session and set the variable to null
    • Fixed unnecessary creation of a camere Texture
    • Replaced deprecated code
    • Instead of throwing an AssertionError if the SwapChain is null, just skip the render call
    • Add a call to Session.destroy() on ArSceneView.onDestroy() and ensure that everything is well called
    • Improve session.getConfig() calls
    • Review the SceneView/ArSceneView resume/pause order
    • Remove the ensure updateMode == Config.UpdateMode.LATEST_CAMERA_IMAGE
    • Set the TonMapper for the Filament-Renderer to FILMIC
    • Removed the manual setted TonMapper from every sample app
    • Replaced requestPermissions and onRequestPermissionResult with the new way by creating a ActivityResultLauncher object. The result of the request is handled via a callback function.