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 can I add a ViewRenderable fit the floor? #319

Closed stevenduan17 closed 6 years ago

malik-at-work commented 6 years ago

It's possible to do something like this but it would require a lot of work beyond ArCore or Sceneform. ArCore returns planes as soon as it find them. This means the planes will start small and then grow as ArCore find out more about the room. To "fit" the floor you'd need to wait until ArCore understands the room very well and has a large plane detected before you start rendering.

The you would use something like https://developers.google.com/ar/reference/java/com/google/ar/sceneform/rendering/ViewSizer to get the ViewRenderable to the right size.

ChanduMnS commented 4 years ago

Hi @malik-at-work , Your solution is relevant to my use case. Can you give any example that shows the implementation. Your help will be very much appreciated. Thank you.