sceneform-android-sdk icon indicating copy to clipboard operation
sceneform-android-sdk copied to clipboard

CameraStream texture is initialised only once

Open idstein opened this issue 4 years ago • 0 comments

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?

idstein avatar Mar 16 '20 20:03 idstein