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.
Related
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/
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.
for the last months I developed several HTML5 Apps with Cordova.
Cause I saw some performance struggles on some devices I used the Crosswalk plugin.
Crosswalk adds a standalone chromium version to cordova so the HTML5 app (mostly a game) will open in the more powerfull webview.
Now I want to build a native Adnroid Library (aar) with an API so other developers cann just call a function and a new webview (or activity with an webview) will appear so the user can play the game. So this has nothing to do with Cordova, at all.
The question:
Does someone know some kind of "crosswalk" for a native a android project?
The best solution would be something like another aar which I can hook into the project :)
Thanks in advance
Tom
Okay! I am a bit stupid.
The answere is also Croswalk!
I thougth this is only for Cordova/Phonegap.
Here you can find how to implement crosswalk with a simple native Android application!
I just downloaded a crowwalk aar and imported it to Android Studio.
I have flash code with AS2 scripts. It is a slot machine game and I want to port it to Android and iOS .Since it is a slot machine game UI aren't going to be a priority in choosing the technology I code in. I can very well create separate UI's in android and iOS and hook them up with a plugin from another language.However, I want to re use as much code from AS2,Since Most of the code contains logic for the slot machine and Bingo game. I would like to know how I can go about this. Should I go for unity 3D , Oracle ADF , Corona or any other IDE that will be useful. Or should I convert AS2 script to C code and use that as a plugin in both Android and iOS ? Or any other option. Thanks
Have a look at Scaleform Mobile that might work well for you. You can use AS2 code and it deploys to mobile. Scaleform uses their own runtime but it integrates with the Flash toolchain. We use the Unity3D plugin and it works great.
I have some kind experience with Scaleform for Unity plug-in and I also think
that it is the best solution
for you needs (no matter Scaleform for Unity plug-in or Scaleform mobile).
In Scaleform you will able to leave most of the code base on AS side.
But Scaleform is advanced library with non-friendly documentation, therefore before you will able make you work, you needed to have some ะก++/C knowledge for bootstrapping skeleton app.
Have not seen this one asked before and I am a pretty big novice to mobile game development. The team I work with would prefer to avoid Eclipse if at all possible, but our app requires advanced features such as integration with Facebook and Youtube and making calls to remote database servers. Can Unity support this without need for Eclipse or Netbeans?
Can't think of anything that would stop you from building your application without Eclipse or Netbeans, android sdk comes with a full set of tools for building applications, you'll just have to take care of building scripts yourself.
Facebook has unity plugin you can download it from here. I have used it once it's simple really. I don't have any idea about youtube but form making calls to server you can use Unity's WWW class.