Skinned mesh & morpher don't mix well on iOS

Hello guys,

here is a new one.
When using a morpher with an animated skinned mesh.
There is something wrong in iOS.

https://www.babylonjs-playground.com/#HPV2TZ#8

Could you check it out ?
Regards,

iOS is a pile of crap when dealing with web tech :slight_smile: The shader seems to crash because of too many attributes to morph

Pinging @sebavan as I think he already fixed a couple of related bugs

Actually!
I think I know what the problem is :slight_smile:
Let me come with something asap

So I added that code to limit unwanted morphing options

manager.enableUVMorphing = false;

The PG should be updated in one hour or so

Wow,

I just realized that I didnā€™t post the right PG !
Here is the correct one :
https://www.babylonjs-playground.com/#TH16ID#27

Yes, there are lots of issues with iOS. I donā€™t understand why they stayed at webgl1. Itā€™s like they stopped the support of the technologyā€¦
Itā€™s funny you found a bug in the error PG sorry about that :stuck_out_tongue:

Ok so now I can really ping @sebavan to check :slight_smile:

1 Like

@Gil_Guminski is it what you see on ios ??? https://www.babylonjs-playground.com/#TH16ID#29

It looks like falling back to cpu bones does not work well with morph targets.

I am digging further but would like to know the issue you see ?

1 Like

If it is the case it boils down to the fact that on one side we do bones then morph (when running on GPU) and reversly when running on CPU.

I will check with @Deltakosh what and if we could sort this one without too much impacts.

Issue can be tracked here: Morph + Skin does not work on IOS Ā· Issue #6526 Ā· BabylonJS/Babylon.js Ā· GitHub

fix incoming :slight_smile:

2 Likes

Hello Sebavan,

Yes itā€™s what I see.
Thanks for the quick fix as usual !

1 Like

Did I mention that I hate Safari so much?

1 Like

Could I make the same remark ? :smiley:

Apparently there is also a bug that might be present only on iPad Air 2.
Not sure how I will be able to showcase this if this is really the caseā€¦

OMG please donā€™t :slight_smile:

1 Like

Hahah :slight_smile:
Otherwise I can check all pg examples with an iPhone :stuck_out_tongue:

1 Like

Hello everyone,

I just checked with the last version and it seems a lot better. I still have one issue though. It looks like the first morpher wonā€™t work as intended with the exact same bug as before.

If I remove the buggy animation then another one becomes buggy.
Still only iOS.

Iā€™m having a very hard time reproducing it in a PG.
Anyone have an idea about where it could come from ?

OMG :slight_smile: No idea as we need to see it and debug it to try to read into safari shitty mind

This appears to have regressed such that it does not even need to be on iOS for CPU skinned mesh with morphs to not play well (the example linked in the github issue also shows the issue for me on windows + chrome). apologies if this premature but tagging @sebavan seems appropriate.

This repros for me as well on Edge 95 and Firefox 96. Seems to have the same problem on latest and 4.2.

@rdpeake I am not seeing any error in the PG could you share what your problem is ?