arkit_flutter_plugin icon indicating copy to clipboard operation
arkit_flutter_plugin copied to clipboard

Update widget projection sample

Open kaciula opened this issue 4 years ago • 3 comments

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.

kaciula avatar Sep 21 '21 15:09 kaciula

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.

phantomlinux avatar Oct 19 '21 08:10 phantomlinux

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:)

p-shapovalov avatar May 24 '22 19:05 p-shapovalov

1+ would be really nice to have a working example

andersdn11 avatar Mar 27 '23 15:03 andersdn11