fariazz

Any way to export to Android?

Recommended Posts

I tried opening a Babylon.JS example on Android 4.22 (all browsers) and it's not supported. I'm assuming a Phonegap webview won't do it either.

 

Has anyone had success deploying a Babylon.js game to Android with CocoonJS or any other platform?

 

Thanks!

Share this post


Link to post
Share on other sites

As far as CocoonJS is concerned, it seems like it should not be hard to find out, though I have not tried yet.  Just get their launcher from the appropriate store.  It is kind of like the sandbox here (that much I have done).  You can launch samples like they have on browser pages.  If you get a free account, you can put in the url of your own stuff, and see what happens.

Share this post


Link to post
Share on other sites

Tried this tutorial zip file.

 

https://github.com/BabylonJS/Babylon.js/wiki/01---Basic-scene

 

removed handjs since that rely on DOM or else it will display error in the CocoonJS console.

 

zip and run in CocoonJS launcher. All I got is just greyish screen. There is no sphere or anything. Anybody can confirm that Babylonjs can work with CocoonJS ?

 

Any help please.

 

Thanks

Share this post


Link to post
Share on other sites

@Temechon

 

I understand about the CocoonJS console error log thing :) . Like I said before, there is no error in error log, everything is loading just fine(need to remove handjs since it has reference to DOM). But somehow the screen is just greyish and didnt draw the sphere which is odd. When played on desktop browser it is ok.

Share this post


Link to post
Share on other sites

I have only looked at the canned examples with the launcher, but thought you could just specify a url, not have to make a zip.

 

My suggestion would be for someone with a cocoonJS account already to post on the cocoonJS forum with as simple a BabylonJS example as possible.  Please report back the thread here, anything here as the # of people following this thread is increasing.  I do not know where this forum is, but I did navigate to some kind list of questions posted & responses.

Share this post


Link to post
Share on other sites

Another possibility would be to try the IOS version of the launcher with a Babylon hello world example.  It is the Android AND iOS (+Amazon store) combination which makes this so worth looking into.  One needs devices, of course.  I only have a GalaxyS III.  With Apple close to a new iPad, I have been holding my fire for either it or price reductions in reaction.

Share this post


Link to post
Share on other sites

Thanks @JCPalmer for your reply.

 

But I've tested some examples using ThreeJS and it does work on CocoonJS. Below is the link for threejs and babylonjs. Css style wont work on CocoonJS.

The babylonjs is from this tutorial https://github.com/BabylonJS/Babylon.js/wiki/01---Basic-scene

 

https://dl.dropboxusercontent.com/u/65841566/babylontest.zip

https://dl.dropboxusercontent.com/u/65841566/threebox.zip

 

Copy to your device storage and test with CocoonJS launcher. Sadly it just wont display anything when tested using Babylonjs.

 

JCPalmer, did you test babylonjs with Cocoonjs ? Does it work ?

 

I'm also using Galaxy S3 :)

Share this post


Link to post
Share on other sites

Anyway for those interested to export to IOS and Android for BabylonJS

 

Here are some alternatives:

 

Android

(using Intel XDK android Crosswalk) -basically chrome wrapper. But it is for Android 4.0+ only.

 

IOS

Phonegap (i guess need to wait for IOS8 for webgl acceleration for webview) Iphone4S and above only.

 

Any feedback , suggestions would be really great.

Share this post


Link to post
Share on other sites

After a little thought, perhaps there is no error logged, because "there is no error".  The color actually matches the background.  If it is a scaling issue, then we might just not be seeing as much as we think we should.  I found:

 

http://support.ludei.com/hc/en-us/articles/201236017-Device-Pixel-Ratio

 

Maybe adding meta data to the html will allow us to see the "whole picture".  Changing colors might also be helpful, as if we see red as a background, we can be positive of what we are looking at.

 

BTW, I just got a dropbox account.  Is this public folder capability only for older accounts?

Share this post


Link to post
Share on other sites

@reddozen

Thanks for the info.

 

@JCPalmer

Thank you for attention on this.

 

For the dropbox I think newer account need to enable the "Public folder"

https://www.dropbox.com/help/4224

 

One thing i want to highlight is CocoonJS has a highperformance canvas or something in their platform to accelerate the speed more.

it is called screencanvas. Maybe this could boost performance more if implemented ?

http://support.ludei.com/hc/en-us/articles/201810268-ScreenCanvas

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.