olexale / arkit_flutter_plugin

ARKit Flutter Plugin
MIT License
797 stars 225 forks source link

Question: Keep the Node in place/stop planeDetection after first run. Also about dynamic adding object #95

Open lundin opened 4 years ago

lundin commented 4 years ago

Hi! This project is just too cool. Please keep up the good works of porting this amazing stuff! May i ask (i know this should be used more of a issue tracker but still):

I successfully tried this example: https://github.com/olexale/arkit_flutter_plugin/blob/master/example/lib/custom_object_page.dart

ARKit keeps reestimates the plane and remove/add the node (object) onto the scene as i "move around". I would have like to add the object to the scene and then be able to move around (360) without it being constantly removed/added so certain angles is now impossible to see. Is that even possible ? I read some comment on stack to

let configuration = ARWorldTrackingConfiguration(); configuration.planeDetection = [] self.sceneView.session.run(configuration)

but how would that apply to our config in ARKitSceneView adding similar code in _addPlane ?

And a second question. Are you aware of any way of adding the dae/obj models dynamically (i.e not added to the folder in xcode on build). I guess this is not officially supported (yet) by apple?

X-SLAYER commented 4 years ago

check this it might help you issue#19