Kesshi Posted July 6, 2016 Share Posted July 6, 2016 Hi, with the current 2.5 build the shadows are no longer working on iPad. You can test it with the predefined shadows playground. I don't get an error or something. The shadows are just not visible.@Sebavan the new float shadow support seems to be reason for this i disabled the float shadows in my own build herehttps://github.com/BabylonJS/Babylon.js/blob/master/src/Materials/babylon.materialHelper.ts#L111 and here:https://github.com/BabylonJS/Babylon.js/blob/master/src/Lights/Shadows/babylon.shadowGenerator.ts#L140 after that the shadows are working again I don't know if it is related but SSAO is also not working on iPad (its not a new problem, it never worked). Its the same thing, everything seems ok but the SSAO effect is just not visible. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 6, 2016 Share Posted July 6, 2016 This is weird because float shadows test the presence of float texture support. @Sebavan: let's add a boolean to tun off float textures even if they seem supported Quote Link to comment Share on other sites More sharing options...
Kesshi Posted July 6, 2016 Author Share Posted July 6, 2016 13 minutes ago, Deltakosh said: This is weird because float shadows test the presence of float texture support. @Sebavan: let's add a boolean to tun off float textures even if they seem supported Seems like testing for "OES_texture_float" is not enough. Read the answer here:http://stackoverflow.com/questions/28827511/webgl-ios-render-to-floating-point-texture Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 6, 2016 Share Posted July 6, 2016 It should still work if you use default shadows Can you confirm that if shadowGenerator.filter = BABYLON.ShadowGenerator.FILTER_NONE it works? Quote Link to comment Share on other sites More sharing options...
Kesshi Posted July 6, 2016 Author Share Posted July 6, 2016 I can confirm that it is not working ... at least not correct I used this playground: http://www.babylonjs-playground.com/#O8WDR this is the result: Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 6, 2016 Share Posted July 6, 2016 can you try again? I've just published an update Quote Link to comment Share on other sites More sharing options...
Kesshi Posted July 7, 2016 Author Share Posted July 7, 2016 9 hours ago, Deltakosh said: can you try again? I've just published an update That didn't help. No difference. I looked at your changes. You are also checking for "OES_texture_float_linear" now. That will not work. According to http://webglreport.com/ the iPad supports "OES_texture_float_linear" and "OES_texture_float". If it is true what is written here http://stackoverflow.com/questions/28827511/webgl-ios-render-to-floating-point-texture These two extensions do not guarantee that you can render into a float texture. You can also find a way to check for float render support in that link. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted July 7, 2016 Share Posted July 7, 2016 Hello, I ll fix it tonight and at the same time, this explains issues with the HDRCubeTexture on IOS, thank you Kesshi. I ll use the gl.checkFramebufferStatus in the engine to check the capabilities and ensure we have full float support correctly reported. Thanks again for the link Quote Link to comment Share on other sites More sharing options...
Sebavan Posted July 7, 2016 Share Posted July 7, 2016 Hello, Could somebody try the following Playground on IOS ? @Kesshi, please let me know how it is going on your device. Would be sweet if that works :-) http://www.babylonjs-playground.com/#O8WDR#10 After deeper analysis, we ll implement the stackoverflow solution. THX, Quote Link to comment Share on other sites More sharing options...
Kesshi Posted July 7, 2016 Author Share Posted July 7, 2016 @Sebavan that playground is working on my iPad Quote Link to comment Share on other sites More sharing options...
Sebavan Posted July 7, 2016 Share Posted July 7, 2016 Hello Again :-) We just finished integrating the fix. Could you try back the broken PG (ctrl+F5 to refresh the script): http://www.babylonjs-playground.com/#O8WDR We added a new capabilities to know if we can render to float texture: textureFloatRender Thanks for your help on this, Kesshi 1 Quote Link to comment Share on other sites More sharing options...
Kesshi Posted July 8, 2016 Author Share Posted July 8, 2016 Thank you. Everything is working again now 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.