exc_html5 Posted June 18, 2016 Share Posted June 18, 2016 Hi Everyone! Having an issue with BJS cube map textures on mobile, where they go black and don't show up. Here is the example: First, I made a normal BJS cube map (similar to the playground example here: http://www.babylonjs-playground.com/#2K4OXQ ) and I have that link here: http://client.elementxcreative.com/bjs/assetpreview/open_area_2k_cubemap/index.html This works fine on desktop, and it's just six 2048x2048 textures fed into a BJS reflection texture, applied to a box. However, trying to load this same scene on the chrome browser in my galaxy Note 3 phone it just renders a black screen (the textures don't show up). The next step I tried was reducing the size of the textures down to 1024x1024, and tried a new link on my Note 3. This worked as expected, and that link is here: http://client.elementxcreative.com/bjs/assetpreview/open_area_1k_cubemap/index.html So initially I thought, well, okay, I guess it's a texture size issue, but it seemed strange to me because I know i've loaded in more textures than that into my phone before, so then I took those same textures at the original 2k size, mapped them onto quads, and just had them float in front of camera. To my suprise, this ALSO worked on camera: http://client.elementxcreative.com/bjs/assetpreview/open_area_2k_planes/index.html So, I'm a little confused as to if that last link worked on my phone, it shouldn't be a texture size issue? Any ideas on why the cube map link won't work with 2k textures? (For the record, the reflection/refraction BJS playground scene does the same thing on my phone, shows up with textures as black, but I can move around and see the specular highlights on sphere). Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 20, 2016 Share Posted June 20, 2016 Hey! Can you turn on debugLayer to check what's the problem with the 2K cubemap? Quote Link to comment Share on other sites More sharing options...
exc_html5 Posted June 20, 2016 Author Share Posted June 20, 2016 Yeah, we have the debug button on there, but I'm not sure what to look for in the debug info? What errors should I be looking for? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 20, 2016 Share Posted June 20, 2016 just turn on the console then:) 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.