google-ar / sceneform-android-sdk

Sceneform SDK for Android
https://developers.google.com/sceneform/develop/
Apache License 2.0
1.23k stars 604 forks source link

How to use sceneform together with sharedCamera? #1063

Open Sheng-Xuan opened 4 years ago

Sheng-Xuan commented 4 years ago

Found a issue https://github.com/google-ar/sceneform-android-sdk/issues/569 that on this topic, but no final solution provided.

Is it possible to use sharedCamera with sceneform? On most of the devices, a camera seesion is able to attach 3 targets, eg. one preview, one surfaceTextures, and one for still image capture. (like taking photo during filming video, or capture depth frames together with rgb image)

I tried that on the sample project of SharedCamera on the Arcore, it works by adding all surfaces from sharedCamera to the same CaptureRequestBuilder for taking image.

I am wondering if it is possible to use sharedCamera together with sceneform? Using secneform is much easiler to render object without touching opengl.

lancefi commented 4 years ago

Have you found a solution to this??

Sheng-Xuan commented 4 years ago

Have you found a solution to this??

No...