AndyBeaulieu Posted May 12, 2014 Share Posted May 12, 2014 Hi All, Has anyone had any luck with using BabylonJS in a Windows Phone 8.1 JavaScript app (or using IE11 in WP8.1) ? What I am seeing is, my app runs in the WP8.1 emulator OK (although very slow)... but when I deploy the app to a WP device, it crashes when running on the device, apparently because of memory issues. The device has 512 MB of ram though, and when I use the VS Memory profiler, the JS heap peaks at 184MB before crashing. Here is what I see in the JS console:WEBGL11005: OUT_OF_MEMORY: generateMipmapFile: babylon.engine.js, Line: 931, Column: 17and then later...WEBGL11098: drawElements: The texture is a non-power-of-two texture or not mipmap completeFile: babylon.engine.js, Line: 389, Column: 9and then...Unhandled exception at line 926, column 17 in ms-appx://6cebae1b-40c1-4f2c-b787-0c7199ef3966/Babylon/babylon.engine.js0x8899000c - JavaScript runtime error: There has been a presentation error that may be recoverable. The caller needs to recreate, rerender the entire frame, and reattempt present.I guess I will try to reduce texture sizes, although they are pretty small really. But I was wondering if anyone else was experimenting with supporting WP8.1 with a BabylonJS app? Thanks!-Andy Quote Link to comment Share on other sites More sharing options...
gwenael Posted May 12, 2014 Share Posted May 12, 2014 I don't really have an idea on it except that your textures should be power-of-two textures according to the error message. So it's not the fact they are big or small but their sizes (number of pixels per row and per column) are not power of two (2, 4, 8, 16, 32, 64, 128, 256, 512...). Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 12, 2014 Share Posted May 12, 2014 Could you share your site somewhere ? Quote Link to comment Share on other sites More sharing options...
AndyBeaulieu Posted May 12, 2014 Author Share Posted May 12, 2014 Thanks for the replies. I will work on getting a site up with a repro. I'm not ready to share the whole project yet but I'll try to trim it down and make a repro. But along the same lines, is anyone able run the demos at http://babylonjs.com successfully on Windows Phone 8.1 ? I am thinking that the resources are just so limited, that WebGL apps will need to be designed from the ground up for WP8.1. Thoughts? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 13, 2014 Share Posted May 13, 2014 they work for meEspilit for instance runs at a decent 30fps Quote Link to comment Share on other sites More sharing options...
davrous Posted May 13, 2014 Share Posted May 13, 2014 Hi, I've seen the same issues on 512 MB. Looks like our WebGL renderer on Windows Phone 8.1 is not stable yet (it's still in beta). Bye, David Quote Link to comment Share on other sites More sharing options...
Anh Nguyen Posted October 2, 2014 Share Posted October 2, 2014 Please share more information, I am developing on the Windows phone platform, it is very difficult to reach with HTML5 Quote Link to comment Share on other sites More sharing options...
davrous Posted October 3, 2014 Share Posted October 3, 2014 I've talked about the WP8.1 support via the universal apps template here: http://blogs.msdn.com/b/davrous/archive/2014/05/12/creating-a-html5-phone-tablet-amp-pc-game-using-the-universal-apps-project-for-windows-stores.aspx All our scenes on www.babylonjs.com are working fine on my Nokia Lumia 1520 GDR1 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.