fariazz Posted April 17, 2014 Share Posted April 17, 2014 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! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 17, 2014 Share Posted April 17, 2014 I never tried Cocoon.js but I've already seen babylon.js working on android (but you have to force webgl on) Quote Link to comment Share on other sites More sharing options...
Artem Posted April 17, 2014 Share Posted April 17, 2014 Default browser won't work, but Chrome works just fine. I have Android 4.2 as well. Dunno what could cause the trouble there :\ Quote Link to comment Share on other sites More sharing options...
fariazz Posted April 17, 2014 Author Share Posted April 17, 2014 I never tried Cocoon.js but I've already seen babylon.js working on android (but you have to force webgl on) How do you do that? I'm interesting in packing it as a native app. Quote Link to comment Share on other sites More sharing options...
reddozen Posted April 18, 2014 Share Posted April 18, 2014 Works fine on my phone... I haven't had to enable anything to get it to work. As of Android 4.3 webGL is enabled by defualt. Quote Link to comment Share on other sites More sharing options...
tumira Posted June 18, 2014 Share Posted June 18, 2014 Does BabylonJS works with CocoonJS ? Quote Link to comment Share on other sites More sharing options...
Kilombo Posted June 18, 2014 Share Posted June 18, 2014 Mozzile for Android and Opera support WebGL and work. In Chrome you have to enable webgl. Quote Link to comment Share on other sites More sharing options...
reddozen Posted June 18, 2014 Share Posted June 18, 2014 webGL is on by default for the android browser since 4.3 (At least for Samsung devices). Quote Link to comment Share on other sites More sharing options...
tumira Posted June 18, 2014 Share Posted June 18, 2014 I understand about the webgl in browser, but does BabylonJS works when wrapped in CocoonJS wrapper and submitted to Apple Store and Google Play Store ? Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted June 18, 2014 Share Posted June 18, 2014 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. Quote Link to comment Share on other sites More sharing options...
tumira Posted June 18, 2014 Share Posted June 18, 2014 @JCPalmer Alright. Thanks for the reply. Quote Link to comment Share on other sites More sharing options...
tumira Posted August 13, 2014 Share Posted August 13, 2014 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 Quote Link to comment Share on other sites More sharing options...
Temechon Posted August 13, 2014 Share Posted August 13, 2014 I did some tests few months ago, with the same result. Is it possible for you to post the cocoonjs error log ? This way, maybe DK or someone else could update babylon to make it work with Cocoon. Quote Link to comment Share on other sites More sharing options...
tumira Posted August 13, 2014 Share Posted August 13, 2014 @Temechon There is no error log. Just the greyish empty screen.I guess it wont work for now.. Quote Link to comment Share on other sites More sharing options...
Temechon Posted August 13, 2014 Share Posted August 13, 2014 You should have a FPS button on your screen : push it, and the console will be displayed. Quote Link to comment Share on other sites More sharing options...
tumira Posted August 14, 2014 Share Posted August 14, 2014 @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. Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted August 14, 2014 Share Posted August 14, 2014 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. Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted August 14, 2014 Share Posted August 14, 2014 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. Quote Link to comment Share on other sites More sharing options...
tumira Posted August 14, 2014 Share Posted August 14, 2014 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.ziphttps://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 Quote Link to comment Share on other sites More sharing options...
tumira Posted August 14, 2014 Share Posted August 14, 2014 For IOS and Android version of CocoonJS , they got threejs demo by default in their demos in the launcher and it does work(Ipad4 and S3). I just can't make it to work for Babylonjs. Quote Link to comment Share on other sites More sharing options...
tumira Posted August 14, 2014 Share Posted August 14, 2014 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. IOSPhonegap (i guess need to wait for IOS8 for webgl acceleration for webview) Iphone4S and above only. Any feedback , suggestions would be really great. Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted August 14, 2014 Share Posted August 14, 2014 See if anything happens from this end. http://support.ludei.com/hc/communities/public/questions/200763155-Trying-to-get-BabylonJS-to-work Quote Link to comment Share on other sites More sharing options...
reddozen Posted August 14, 2014 Share Posted August 14, 2014 tumira,Less than 15% of all android devices are on an android version less than 4.0. I would ignore these versions anyway. They should update their firmware. As of 8/12/2014https://developer.android.com/about/dashboards/index.html?utm_source=ausdroid.net Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted August 14, 2014 Share Posted August 14, 2014 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? Quote Link to comment Share on other sites More sharing options...
tumira Posted August 15, 2014 Share Posted August 15, 2014 @reddozenThanks for the info. @JCPalmerThank 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.