Depth mode #604
Replies: 2 comments
-
hello @youssefehab11 I saw different mentions, and some of them were contradictory. |
Beta Was this translation helpful? Give feedback.
-
Hi. You can try to add to your sessionCameraConfig check and depth sensor activation manually. сreate variable isDepthModeSupported with remember and update it's value in sessionConfiguration
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to enable depth mode. I've looked to this sample code "https://github.com/SceneView/sceneview-android/blob/main/samples/ar-model-viewer-compose/src/main/java/io/github/sceneview/sample/armodelviewer/compose/MainActivity.kt" and i noticed this part:
sessionConfiguration = { session, config ->
config.depthMode =
when (session.isDepthModeSupported(Config.DepthMode.AUTOMATIC)) {
true -> Config.DepthMode.AUTOMATIC
else -> Config.DepthMode.DISABLED
}
config.instantPlacementMode = Config.InstantPlacementMode.LOCAL_Y_UP
config.lightEstimationMode =
Config.LightEstimationMode.ENVIRONMENTAL_HDR
},
but the depth mode still not working. So, please if anyone have a solution of this, you can discuss with me.
Thank you :)
Beta Was this translation helpful? Give feedback.
All reactions