Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobiles #12

Closed
ghost opened this issue Mar 9, 2018 · 8 comments
Closed

Mobiles #12

ghost opened this issue Mar 9, 2018 · 8 comments
Labels

Comments

@ghost
Copy link

ghost commented Mar 9, 2018

Is mobile envisaged ?

If it run access the opengl engine we are good. In terms of integration with the GUI I am thinking of using flutter. It has an asynchronous resource loading pipeline and can accept opengl outputs.

Flutter and golang run on all desktops and mobiles with zero code changes today. you just need a simple binding wrapper written in dart to access golang.
You just do the normal gomobile bind for mobile

@leonsal
Copy link
Member

leonsal commented Mar 10, 2018

Maybe in the future. We are currently documenting the existing code base because we got a low score from goreportcards:
https://goreportcard.com/report/github.com/g3n/engine

@ghost
Copy link
Author

ghost commented Mar 15, 2018

ok

@ghost ghost closed this as completed Mar 15, 2018
@ghost
Copy link
Author

ghost commented May 8, 2018

You got an A+ now :)

Great work !

I think I can get this going on mobiles.

I just need a window to load it inside of which is not hard for Android and iOS.
That means it will also run on Chromebooks.

Then only bit would be translating touch gestures.
I think you can embed this inside flutter and let it handle all the complex touch gestures.
This would mean matching up certain gestures to certain action in the golang code. At the moment all actions are a yes or no. You don't have any analog actions where the action has a percentage , like on a joypad ?

Anyway I think it's quite easy to get this working inside flutter. I suggest this because flutter has so much long term potential and is only getting better.

I can make a mini demo of a simple golang opengl test harness rendering inside it. That would be a good first step.

@danaugrs
Copy link
Member

danaugrs commented May 9, 2018

We definitely want to try to support mobile, and gomobile + Flutter seems like a great way to do it! I'll dig into it - let us know if you get something working!

And great point, we will have to add support for touch/analog inputs. I know Kivy (in Python) does cross-device input management particularly well - maybe we can take a look there for inspiration.

@ghost
Copy link
Author

ghost commented May 31, 2018

Deal.

The Google team are progressing fast on flutter for desktop :)
They are using glfw but also talking about an SDL wrapper. So things are in flux.
Everything runs on Linux and Mac. Windows is getting close. Only hold up is the Microsoft UWP stuff - just a little bit of extra stuff to make it a first class citizen on Windows.

So the only challenge is how to get the 3d window and the flutter forms together. I played with dsl to load a few opengl will does in a docking fashion too.

So as I try things out I will put up test harnesses on GitHub to show progress.
I am definitely in over my head a bit but let's see

@ghost
Copy link
Author

ghost commented May 31, 2018

I meant SDL, not DSL :)

@danaugrs
Copy link
Member

Awesome to hear! Pretty cool that they are using glfw, it will be simpler to integrate with g3n.
Hopefully they add support for Windows soon. It would also be nice if it became an official Flutter project.

Keep me posted! 😄

@danaugrs danaugrs reopened this May 31, 2018
@danaugrs
Copy link
Member

danaugrs commented Sep 6, 2019

Mobile support is being discussed here: g3n/engine#114

@danaugrs danaugrs closed this as completed Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants