rodrigop Posted July 20, 2015 Share Posted July 20, 2015 Hi guys, I've being investigating into wrapping BJS for iOS, and after looking at some of the current popularized alternatives like BabylonHx, Ejecta (i never got this to work with BJS), Cordova and Cocoonjs (this two work very easily out of the box, but come with a lot of stuff you may just don't want). I found that we actually don't need any of those to run a BJS app natively at iOS because since its 8.+ version they have a nice WKWebView component that performs well for webGL, and also works ok with webAudio using a hack with events to trigger sound. I've created an example .xproject with one of the playground demos running, the code is still hacky and i will refactor it in the future, but its just a nice example of an easy wrapper that should work with other js frameworks too. The source is at https://github.com/rodrigopivi/iOSBabylon PD: I recommend using the Iphone 6+ simulator because its faster and gets an acceptable frame rate. Cheers! ozRocker, HugoMcPhee and GameMonetize 3 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.