-
-
Notifications
You must be signed in to change notification settings - Fork 150
ARCore 1.26.0, Filament 1.12.0 Update. Refactoring #143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
* 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. `
* 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
…skip the render call
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR @RGregat !!!
I'm back from holidays and currently reviewing it.
Please don't commit right now since I'm also bringing some cleanup here.
Can you just answer questions first?
core/src/main/java/com/google/ar/sceneform/rendering/ExternalTexture.java
Outdated
Show resolved
Hide resolved
...ented-images/src/main/java/com/google/ar/sceneform/samples/augmentedimages/MainActivity.java
Outdated
Show resolved
Hide resolved
@@ -26,7 +26,8 @@ | |||
android:id="@+id/transparentSceneView" | |||
android:layout_width="match_parent" | |||
android:layout_height="0dp" | |||
android:layout_weight="1" /> | |||
android:layout_weight="1" | |||
android:background="#FF0000FF"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does our dragon transparency issue comes from the background?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I added the blue color in the last version to see if the issue comes from that. I changed it back to transparent. By the way, everything ist rendering now again, maybe because of the Filament update in this version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you simply check if the DragonAttenuation.glb
(transparency one) is displayed correctly on your devices?
It's not the case on my Pixel 4a.
…t 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
* Replaced `requestPermissions` and `onRequestPermissionResult` with the new way by creating a `ActivityResultLauncher` object. The result of the request is handled via a callback function.
… transparent again. * Both dragons and backdrops are rendered.
I find it a little bit difficult to profile and analyze the memory footprint of Sceneform on my laptop. The Laptop is not strong enough :). As you can see the allocation rate rises continuously until the GC is cleaning unused objects. From the result I can't tell if the Trackable object allocation every frame has a huge impact. But the PlaneRenderer has still a huge impact. |
You are right, the For the |
Maybe this is something for a separate Branch/PR? |
Changed
Fixed
CameraStream
the functioninitializeTexture
was called twice. This is now fixedAdded
BaseArFragment
a new function to close a session