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

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

Related

Can we create AR Desktop Application in Unity?

I am trying to create an AR animation in unity. I am going to use DSLR camara. I searched to create a desktop application for this. but could not found any solution. I have created a sample project and build a desktop application. but its not working. I think i am missing something. I could not found how to make this possible. i am not creating an application to run on android or ios. any solution for this??

Does Flutter support virtual or augmented reality?

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

How to create Augmented Reality Web app using Unity & Vuforia?

I am developing an Augmented Reality app to be integrated into a website using Unity.I need to take output in WebGL. I am using Vuforia to create AR experience. Since Vuforia is not supported with WebGL, i am not able to build. Please suggest an alternate method or how to do Augmented reality in Unity for Web. Is there any alternative to Vuforia?
The good news is yes, you definitely can build an AR experience on the web!
The bad news is that none of the current libraries built for doing so offer a Unity plugin.. Meaning you'll either have to create a wrapper, do some complicated RPC call to talk to the JS library via Unity, or completely scrap Unity altogether and use only the library. To my knowledge, the best browser-based AR library is AR.js. I know this isn't the answer you were hoping for, but I hope you're able to achieve your goals. Good luck!
This is probably a bit late in the thread. But I'd like to add an option which might help. You can definitely build your AR app in web using WebGL as output. There is easy way to integrate it with a webiste too. SLAM based AR like Google ARCore is a great example to do it.
There are two options:
You can build such an app from scratch which will obviously take more time. Because apart from development, setting up hosting infrastructure is a challenge.
Otherwise, if you want to scale such AR web app development with low or no code and cloud ready hosting, you can use a SaaS platform called Marvin XR.
You can login and try it out for FREE: https://www.marvinxr.com:8443
Hope this helps the other folks who stumble upon this thread.

Hololens applications using WebGL / ThreeJS

I've got a WebGL application built with JavaScript and ThreeJS. I was able to enable WebVR somewhat easily to create a immersive environment. I think my app is a better use case for mixed-reality/AR. Hololens seems to be the big player in that hardware space.
As I look at the development tools around Hololens its pretty much Unity and C#. Both great tools but as I start developing in this closed environment I kinda feel like I'm building a Silverlight application.
I've been trying to figure out if there is a trick I can accomplish to create a immersive experience with my WebGL app. I know that I can use Edge browser, however, thats a flat experience which is not any value to this use case.
I've found a few links:
is-it-possible-to-use-webgl-with-hololens-repost
can-i-make-a-universal-app-using-html-that-runs-on-hololens
augmented reality with awe.js
All these seem to either be 2d experiences or 'fake' AR using cameras and WebVR. Furthermore, I also looked into porting my WebGL app to Unity using Unity's JavaScript language features to find out that it is really a subset fork of actual JavaScript ( known as UnityScript ) making it way more effort than its worth.
Given all this, I'm wondering if its even possible to accomplish the feat and if anyone knows if this is something on the roadmap for microsoft?
There's this new tool from Microsoft called HoloJS. It's a framework for creating holographic apps using JavaScript and WebGL.
holographicjs is a C++ Windows Runtime Component for hosting Windows Holographic apps built with Javascript and WebGL.
Its interesting and a huge hack but might be a good first start for the community!
Note: Answer based on:
I do not know what Microsoft roadmap plans are or will be
The actual easy-way to develop for hololens is using VS and Unity3D (so, maybe there is a way of developing using WebGl but as you can see, is not the easy-direct and supported way).
My answer: Taking into account that is a new product with no direct competence, they will not move forward offering other platforms unless they are forced to. Meanwhile they are happy that you use C#, Visual Studio, .Net, Edge and Windows and Unity3d under Windows (hard to believe to me you can do this using Unity3d at MacOS or Linux). It's also normal that they offer a limited ecosystem at the moment, with the same excuse: it is new, so limited support due to stability and optimal concerns is available just in their more familiar context: Microsoft products.
But as soon as new device come in and start offering new things (support for programing languages, OS or web) you should be completely sure that they will evolve or die.

Merging a game into WinRT app

I'm wondering what options do I have to merge a 2D game into WinRT app that's already developed. I've developed couple of games in Unity3D but not sure if they can be played as a part of WinRT app (launch on button click).
I've heard Microsoft provide XNA framework for game development. Would that be of any help in my case? The requirement is to launch game on button click and get back to app on back button click.
Please let me know if there's better approach/tool available.
Firstly you say you want to merge a game with a WinRT app - Do you mean you want to put a game inside another application, so perhaps have an app as a launch pad for you game? If you want to target WinRT with Unity I just looked at the platforms that Unity targets and Universal Windows Platform is listed there. You could write the application part in Unity couldn't you ? So that the app is just the first scene that you see. That might seem strange, but if you had to use unity and the app was just a small application with not too many requirements you could do it that way.
Xna has been discontinued. You should use other frameworks.
If you want to write it from scratch I would suggest that you write it as WinRT application (Universal Windows Platform) so that you can define the application UI in Xaml and write the game with a dedicated graphics/game api such as SharpDX http://sharpdx.org/ (which is a wrapper around DirectX) or perhaps even better, take a look at Win2D http://microsoft.github.io/Win2D/html/Introduction.htm which is a very impressive 2d graphics api.
In practice, both SharpDX and Win2D would target one of the Xaml controls that give you access to a swap-chain (eg SwapChainPanel, SwapChainBackgroundPanel, CanvasControl etc). These Xaml controls are integrated into the Xaml UI and can simply pop up when you need them and viola, your game is running.
Since it was a 2D game that I wanted to integrate with my WinRT app, I decided to go with Scirra Contstruct 2, designed specifically for 2D games. It exported the project as website which I hosted on my server and used a WebView within my app to load the game. Not only the performance is good, but, as a bi-product, it made the game cross platform.