Visual glitch when calling makeGeometryUnique on cloned gltf

Hey there!

I found what I think is a regression when updating my dependencies (went from 8.26.2 to 8.30.5). Basically when calling clone on my gltf asteroid model then calling makeGeometryUnique, I get black artifacts in chrome:

And in firefox, the cloned object does not render at all:

Let me know what you think!

cc @Evgeni_Popov

1 Like

Here is a playground where I fixed it - not but made it worse: https://playground.babylonjs.com/#B1HHGV#9 :grin: RangeError: Offset is outside the bounds of the DataView at DataView.prototype.getFloat32

I remember this one. Could it be related to this? There, I also ran into the “DataView” error with makeGeometryUnique. But it was fixed!

…Ohh, I have just noticed. If you look at the fix 1 post below, that playground is broken now too. The red box should not be this big :o

1 Like

Oops! I think you’re right. Let me fix my fix (and maybe add more tests :slight_smile: )

4 Likes

The issue was indeed the interleaved case:

2 Likes

Thanks a lot! Looking forward to the next release :slight_smile: