Augmented reality using phonegap - android

I'm working in a project that consist in make a Phonegap app to use Augmented reality.
I was looking for some plugins, but most of them are not free.
someone know how could I do it? my app needs to scan a marker and when it was detected, puts with AR an image. Maybe there are an option in which I could integrate a Unity project with phonegap?
The plugins I researched were:
With pay license:
CraftAr http://catchoom.com/product/
Wikitude http://www.wikitude.com
Layar https://www.layar.com/solutions/#sdk
without license:
ARviewer (without documentation and old version) https://github.com/dixon1e/ARviewer-phoneGap

Related

Is ARCore compatible with Ionic?

I want to create an AR app and read on the internet that ARCore is one of the things to work with. I previously tried basic app devolpment with Ionic and was pretty satisfied with it.
Therefore I was wondering if it is possible to integrate ARCore into an Ionic app (e.g. in an AR-tab)?
I found this answer on stackoverflow but it is just considering Xamarin and not Ionic...
I also found that it should be possible to integrate ARCore into Android (Java/Kotlin - which both could be used with Capacitor). But I am not really sure how (new to this topic) - can the ARCore elements just be copy and pasted to the desired tab inside my Ionic project?
you can use Wikitude SDK for AR App .. its support ionic follow this link below :
https://www.wikitude.com/download-wikitude-sdk-for-cordova/

Is it possible to embed a Unity game into a Flutter app?

I am creating an app that will require small mini-games as a menu option, and I have created these games in Unity. Ideally, I would like to embed these games into a Flutter project. I have seen tutorials on doing this with Java and Android Studio, and I need to make a decision on which platform I will be using for my internship project. I have several questions about the SDK, but I have posted them separately to keep the answers distinct (and help filter out the noise for anyone searching for these specific answers), and this is one of my main questions.
Specifically, I am following this guide: https://medium.com/#davidbeloosesky/embedded-unity-within-android-app-7061f4f473a
for Android Studio, and was wondering if something similar was possible with Flutter. I am also using Android Studio as my IDE for Flutter, but need to decide if I should stick with Java, or switch to Dart and Flutter (which actually works much better for specific UI elements I need).
If not, is there another way to package a Unity project and a Flutter application together?
You can imagine the whole Flutter app to be rendered on one view of the final native application. It can coexist with native views. So it should definitely be possible to display a native Android/iOS view with Unity content and trigger that from Flutter.
Create a Flutter project and open the Android native part of it (right click the android folder in Android Studio, choose Flutter -> Open Android module).
Create a native Android view there and use platform channels to display it.
Add Unity content to the native view.
https://flutter.io/platform-channels/
As of May 2022, I would like to share an updated information for mobile app developers who are researching this interesting issue. The reason I'm writing this answer is because there was so many development tasks that need to be done before I get the right answer to the above question. A developer researching this subject should work in both Unity, Android Studio and Xcode in order to find a definitive answer to his/her question, and should also know how to develop mobile apps with Flutter. Honestly, if everything had not gone well, my long time development works might have been wasted. In addition to my answer, I would like to give also positive news on the side of Augmented Reality developers who are using Vuforia and investigating the same issue.
Using the magnificent https://github.com/juicycleff/flutter-unity-view-widget repo; in your mobile app developed with Flutter, you can run the game you developed with Unity or the AR app you developed with Unity + Vuforia. You can use the app you developed with Unity, in the Flutter App you developed. They can also communicate each other in the Flutter App. You can pass parameters from your Flutter App to your Unity application in the Flutter App, and you can also pass parameters from your Unity application to the Flutter App. This means, you can pass parameters from your Flutter App's Dart code to the C# code of your Unity work and vice versa. For those who develop AR Apps with Vuforia, I would like to point out that for the scenario I am working on, I use Image Targets. I have same experience on the phone, with the Unity APK and Android Studio APK, they are in the same stability. Of course APK sizes are different, Flutter App APK size is of course bigger than Unity APK, but in my case this is absolutely ok.
As of May 2022, the answer to the above question is: Yes, you can. Moreover, for those who develop AR Apps in Unity using Vuforia, the answer is also: Yes, you can. I wish success to everyone who will start working in this scenario. Since it is a detailed subject, some difficulties are waiting for you on the way, but if you can see that the product you dream to achieve will be a stable Flutter App, with all the nice features, I am sure that you will find the enough motivation to bring all of them together. Good luck.

Is there a way to have Vuforia and ARCore in the same app?

We are currently developing an app for a student project, that we want to enable to use ARCore and ARKit on Android and iOS respectively and Vuforia as a fallback. After my project partner has already implemented ARKit and Vuforia in two separate scenes, I'm now trying to add ARKit.
But when trying to add both to the Android build under Player Settings -> XR Settings, I get the following message:
We would like to be able to allow users to always be able to fall back to Vuforia, but use ARCore on compatible devices. Is there a way to have both in the project at the same time?
AFAIK you would be able to do this if you're building Unity scenes into an android app built in Android studio or some other way. You would have a check for ARCore support on the device, and if that passes you would load a Unity scene that has ARCore support. If that does not pass you load another Unity scene that uses Vuforia. If you're working only in Unity like I am, I do not think it is possible. I could be wrong, though.
You have to go to the vuforia settings and select the option "Do not use" the Ar core requirement, the app build will proceed normally and the app will work without errors

How can i Build Dressing room app by Augmented Reality

I Wanted To Develop A Augmented Reality Android Application.That can Be like a Dressing Room App.Anyone can Try for Any dresses Stored in our E-commerce Site The can take an order for Purchased any dresses.
I need some help ..What technique i can use. Which SDK can be better for such type AR application .Which tools can be used(Android Studio or Unity).
You can use Unity very easily. you'll need to download the package 'Vuforia' for using AR with Unity. Read up on Vuforia's documentation pages. For android applications, you can download Android's SDK for AR, and for apple use the Apple ARKit.

Integrate Unity3D with Vuforia into Cordova app

We have Cordova application that displays content from a back end CMS system and now client wants to implement Augmented Reality modeule to this application which is going to start after click on menu item in Cordova app.
We found a good way to do AR using Unity3D with Vuforia extension. Wikitude unfortunately does not support functionality that we need achieved in Unity.
Problem is that there is no plugin for Cordova that supports Unity project integration.
Is it possible to create plugin like that?
My idea: Export Unity project as Android project, make Cordova plugin with all the binaries Vuforia is using (is it possible?) and from Cordova app call Intent that opens Unity activity. Then do similar thing for iOS.
Thanks in advance and sorry for my bad english :)
It is definitely possible to make this work. It is by no means trivial though. I've just released a Vuforia-based plugin for image recognition onto NPM and Cordova.
https://github.com/thisisbd/cordova-plugin-vuforia
It should be possible to build what you are looking for either on top of this or using this as an inspiration piece.
One thing I would say is that what you are looking at is a fairly large undertaking and should be treated as such. I'm hoping the cordova-plugin-vuforia repo will help you with what you are trying to achieve.

Categories

Resources