Jump to content

Shadows no longer working on iPad


Kesshi
 Share

Recommended Posts

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 here
https://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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

 

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...