Wizcorp / Ejecta-X

A Fast, Open Source JavaScript, Canvas & Audio Implementation
http://wizcorp.github.io/Ejecta-X
185 stars 51 forks source link

Three.js support #60

Open bostondv opened 10 years ago

bostondv commented 10 years ago

Does Ejecta-X support Three.js?

I'm trying to build a Cordova application for Android and iOS using wizCanvas v3.3 (https://github.com/Wizcorp/phonegap-plugin-wizCanvas) but loading the Ejecta canvas fails to load on Android when three.js is included.

I've got as far as identifying two errors in the console when loading three.js r66.

  1. Float32Array creation fails (three.js#L4009 and others). Got around this by using typedarray.js polyfill from https://github.com/inexorabletash/polyfill.
  2. Fails to get webgl context in initGL() call (three.js#L26704). _gl variable returns undefined.

Thanks for any help!

aogilvie commented 10 years ago

Hi, @bostondv WebGL is not implemented for Ejecta-X yet. This is on our roadmap and has been scheduled for work starting very soon.

bostondv commented 10 years ago

Glad to hear it's on the roadmap, looking forward to it. Thanks!