Does Flutter support virtual or augmented reality? - flutter

I have to make an app that uses virtual reality, so should I drop the idea of using Flutter?

yes as much as I have seen flutter does support AR,I have been following a flutter developer on twitter he posts some cool AR stuff built with flutter here's a plugin ARCore he has built for flutter.
here are some of sample AR videos from the developer himself
https://twitter.com/i/status/1123893412279791616
https://twitter.com/i/status/1129117305303175168

Can I build 3D (OpenGL) apps with Flutter?
Today we don’t support for 3D via OpenGL ES or similar.We have long-term plans to expose an optimized 3D API, but right now we’re focused on 2D.
https://flutter.dev/docs/resources/faq#can-i-build-3d-opengl-apps-with-flutter

there aren't any OpenGL bindings supported by flutter. Flutter is only a 2d only application.
https://flutter.io/faq/#can-i-build-3d-opengl-apps-with-flutter
https://github.com/flutter/flutter/issues/14591
https://github.com/flutter/flutter/issues/7053
https://github.com/flutter/flutter/issues/179
I am not sure how VR would work at all on flutter.

You can use google's ar core with flutter. Check out the arcore_flutter_plugin to work with ar in a flutter.
As of now, there aren't any packages that specifically target VR. But you can use ARKIT arkit_flutter_plugin.
NOTE: ARCORE only works with android. And ARKIT only works with iOS.

I recently created a Flutter plugin for AR that supports both Android and iOS by wrapping around ARCore and ARKit: https://pub.dev/packages/ar_flutter_plugin
The plugin is a work in progress, but it already supports collaborative AR and sharing content through Google's Cloud Anchor Service and a lot of other useful features

Related

How to switch mobile camera in Vuforia Engine Unity SDK v10.13?

I need help in switching mobile device camera in sdk Vuforia Engine Unity SDK v10.13 because vuforia has chnages the entire SDk. I did it past but i could find any documentation. Please help
I couldn't find any documention regarding camera switching in Vuforia Engine Unity SDK v10.13
Unfortunately switching btw back and front camera has been depracated but this can be achieved if its necessary via https://library.vuforia.com/platform-support/driver-framework.
If you need to sw btw the several back cameras that phones have, I don't believe its necessary as Vuforia usually selects the main camera and selecting any other camera like Telephoto or Ultrawide will results in tracking issues as the SDK was not designed to work with such images out of the box.
The Q that I would have, why do you need to sw? what do you want to achieve?

Flutter and OpenGL ES?

I'm Android developer, my app use kotlin and opengl es 3.0, you can think of it as a simple 2D photo edit app, I want make it run on windows,web,ios and macos, so I learn flutter, Because in consideration phase, I would like to ask experienced person, if Flutter supports the use of OpengL ES on multiple platforms? If not, is it still necessary to use platform-specific graphical interface language for each platform while using flutter?
At the moment this is what we have.
Can I build 3D (OpenGL) apps with Flutter? Today we don’t support for
3D via OpenGL ES or similar. We have long-term plans to expose an
optimized 3D API, but right now we’re focused on 2D.

Is it possible to embed a game created with Unreal Engine into a flutter mobile application?

Is it possible to embed a game created using the unreal engine in a flutter application, so that once I open the flutter application, I can navigate to a particular page to start the game and also communicate between flutter app and the Unreal Engine game?
I found that its possible to embed unity in flutter https://pub.dev/packages/flutter_unity_widget. This is what I am looking for but with the Unreal Engine. Is it possible to do the same with the Unreal Engine?
I hate to be the bearer of bad news but...
...From the research I've done, no it isn't possible. The recommended way of doing game dev in Flutter is by using the Flame game engine. Unfortunately, the tutorial on the repo seems to be a bit outdated but here's one that should be better. However, this seems like a complex but potential solution to your problem, here's the tutorial that the repo is based on.
To be clear, there is no native way to run UE games in Flutter

Android device doesn't support ARCore but actually can run AR with Vuforia?

I was looking the AR tutorial, then I found out one way of it's by using Vuforia. But vuforia is not for free; it has marker on it for sure.
Then I try for another AR tutorial, and I found out about ARCore and ARKit.
because I'm using Android, so I'm going for ARCore.
Then I found out, my device doesn't support for the Google Play Service for AR.
Then I'm wondering, why can I run Vuforia but doesn't even meet the requirement for Google Play Service for AR.
I haven't found the answer yet, so I want to know what's the difference between these two — like can Vuforia do body tracking like ARCore? How can it run well on Vuforia? Did they do something so any device could ignore the requirement for ARCore, or is it two different things?
Vuforia brings its own tracking functionalities and uses them when ARKit or ARCore are not available on a device. What it does is to automatically check on what kind of device it is running. If it does not support ARCore it will switch to it's own tracking functionality. It's not as good as ARCore in my opinion but it enables older devices to use AR.

Integrate Vuforia, fast CV and Unity plugin

I really interested to develop and app with AR (Augmented Reality) using Vuforia and Unity plugin because I just want to develop once for Android and iOS, but I really want to take advantage using fast CV, which allow facial recognition for Vuforia, but I'm not very sure if it's possible to integrate, what about this recipe?:
For just one develop for iOS and Adnroid, use:
- Vuforia + fast CV + unity plugin
Has anyone tried it before? would be it possible?
Thank you
Facial recognition is (already) available through a number of other SDKs. Particularly, many have been able to integrate with Unity already. Just do a simple search, you'd find:
Magnus' tech demo http://www.youtube.com/watch?v=9Yb_kte6e5w
FaceTracker Plugin http://www.youtube.com/watch?v=xEleWOfRzSE
etc
--
Edit: also iOS natively provides facial recog and tracking that you can plugin to use with Unity
Not sure if it would help if this is time sensitive but metaio's sdk (also usable with unity) will be including facial recognition next year.
http://www.metaio.com/products/sdk/