Skip to content

Depth API disabled #26

@RGregat

Description

@RGregat

Is there any reason why you disabled the Depth API here https://github.com/ThomasGorisse/sceneform-android-sdk/blob/master/ux/src/main/java/com/google/ar/sceneform/ux/BaseArFragment.java#L401 ?
If I use the old way to set the session config via getSessionConfiguration my enabled Depth API get's deactivated in the above mentioned line in the BaseArFragment class.

So this

Config config = getSessionConfiguration(session);

config.setDepthMode(Config.DepthMode.DISABLED);
config.setPlaneFindingMode(Config.PlaneFindingMode.HORIZONTAL_AND_VERTICAL);
config.setFocusMode(Config.FocusMode.AUTO);

might be maybe something like this.

Config config = new Config(session);
config.setDepthMode(Config.DepthMode.DISABLED);
config.setPlaneFindingMode(Config.PlaneFindingMode.HORIZONTAL_AND_VERTICAL);
config.setFocusMode(Config.FocusMode.AUTO);

config = getSessionConfiguration(config);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions