olexale / arkit_flutter_plugin

ARKit Flutter Plugin
MIT License
796 stars 225 forks source link

Update widget projection sample #165

Open kaciula opened 2 years ago

kaciula commented 2 years ago

Hi.

Can you please update the widget projection sample so the widget is drawn perfectly over the detected image? Matrix operations give me headaches :)

Several people have asked this in the issues section so it does seem to be useful to some people.

phantomlinux commented 2 years ago

Hi, Add-on to this issue, is it possible to do a sample where the widget projection stays at the fix location just like how a default node is behave and being added into the scene. Currently the widget projection is stuttering and transforming weird.

p-shapovalov commented 2 years ago

You can check https://github.com/p-shapovalov/ar-view source code. There are different approach there, I draw widget with predefined size on detected vertical plane, but I guess you can take advantage from this https://github.com/p-shapovalov/ar-view/blob/master/lib/transform_ar_view.dart#L107

Little warning - not for 3.0 for now, there are a lot of PlatformView related issues for both platforms

@olexale it may be useful for you too to improve your current implementation. Thanks btw for inspiration:)

andersdn11 commented 1 year ago

1+ would be really nice to have a working example