I am working on AR project where i need to fetch both horizontal and vertical both surfaces including walls and put ar object on that surface. I have tried following thing to achieve that. But some how it doesn't detect walls or any vertical surface. Following code i have implemented.
Custom ARFragment that extends ARFragment.
class CustomARFragment : ArFragment() {
override fun getSessionConfiguration(session: Session?): Config {
val config = super.getSessionConfiguration(session)
config.updateMode = Config.UpdateMode.LATEST_CAMERA_IMAGE
config.planeFindingMode = Config.PlaneFindingMode.HORIZONTAL_AND_VERTICAL
return config
}
}
I have extended this class to achieve ar in my project. Still i couldn't able to fetch vertical planes.