sceneform-android-sdk
sceneform-android-sdk copied to clipboard
CameraStream texture is initialised only once
We wrote some custom subclass of ARCore session to avoid fragment or view re-creation at runtime. This custom class allows to change the feature set at runtime (e.g. enable front camera or shared camera).
Unfortunately, when the reported back and front camera resolution (width x height) is not identical the drawn CameraStream reports wrong texture dimensions to Filament. So if the underlying ARSession changes it camera intrinsics, the initial Filament ExternalTexture is never re-created or updated.
Could you allow access to CameraStream via ArSceneView and also allow to reset its ExternalTexture / texture initialisation state?