Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARCore 1.26.0, Filament 1.12.0 Update. Refactoring (#143)
* Minor refactoring * Splitted up the `render` function from the Sceneform Renderer class into smaller parts. * 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. * Splitted up the `onBeginFrame`function in ArSceneView a little bit. * Added to BaseArFragment a new function to close the session and set the variable to null. ` * Fixed unnecessary creation of a camere Texture. * Recompiled filament materials to 1.12.0 * Updated dependencies * compileSdkVersion 30 -> 31 * targetSdkVersion 30 -> 31 * sourceCompatibility VERSION_1_8 -> VERSION_11 * targetCompatibility VERSION_1_8 -> VERSION_11 * filament 1.10.7 -> 1.12.0 * arcore 1.25.0 -> 1.26.0 * appcompat 1.2.0 -> 1.3.1 * Added different sample glb files. * Updated sample applications. * Compiled missing filament materials * Updated for the augmented-images sample app the filament dependency * replaced deprecated code * Instead of throwing an AssertionError if the SwapChain is null, just skip the render call * Add a call to Session.close() an ArSceneView.destroy and ensure that everything is well called * Add setters for ArFragment and ArSceneview Session and Session Config * Improve session.getConfig() calls * Review the SceneView/ArSceneView resume/pause order * Remove the ensure updateMode == Config.UpdateMode.LATEST_CAMERA_IMAGE * Cleanup * Improvements * Set the TonMapper for the Filament-Renderer to FILMIC * Removed the manual setted TonMapper from every sample app * gradle stuff * Fixed deprecation warning. * Replaced `requestPermissions` and `onRequestPermissionResult` with the new way by creating a `ActivityResultLauncher` object. The result of the request is handled via a callback function. * Made the second half of the layout of the sceneview-background sample transparent again. * Both dragons and backdrops are rendered. Co-authored-by: r.gregat <[email protected]> Co-authored-by: ThomasGorisse <[email protected]>
- Loading branch information