Jump to content

A native iOS BabylonJS wrapper


rodrigop
 Share

Recommended Posts

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!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...