EddyVerbruggen / nativescript-ar

Augmented Reality NativeScript plugin
https://www.nativescript.org/blog/preview-of-augmented-reality-in-nativescript
MIT License
118 stars 36 forks source link

Create an "augmented faces" demo #72

Closed EddyVerbruggen closed 4 years ago

EddyVerbruggen commented 4 years ago

In order to streamline implementations between iOS and Android we need a little demo that showcases this feature.

In the past, I've been playing with models of glasses/spectacles on iOS and that worked surprisingly well. I recorded 2 short videos and threw them on YT: vid 1 and vid 2.

The code for those demos is currently part of the /demo app but it may be more convenient to create a dedicated demo. Not sure in which stack yet, possibly plain TS.

EddyVerbruggen commented 4 years ago

Added demo-glasses, which is already fully functional on iOS and can be launched with npm run demo.glasses.ios.

EddyVerbruggen commented 4 years ago

Got a PoC running on Android as well - need to tweak the implementation a little before it can be released.

EddyVerbruggen commented 4 years ago

Pretty happy with Android as well. Although moving the glasses down a little (y-axis) doesn't seem to work, and all but the first two models seem to be transparent. The latter issue is more down to iOS -> Android model conversion issues than this plugin so I don't really mind.

EddyVerbruggen commented 4 years ago

Hmm, iOS 13 seems to have broken something. I can detect a face and add a model, but the model (glasses) isn't showing anymore. Not quite sure what's up.

EddyVerbruggen commented 4 years ago

Pfff took me quite some trial & error, but I found a way to make it work on iOS 13. I'll try and push a big update (especially for iOS) today.