Hello, dear friends!
How can I resolve this error?
Problem description: bug: TypeError: Cannot read properties of undefined (reading 'boundingSphere') by golubeva-webmaster · Pull Request #14089 · BabylonJS/Babylon.js · GitHub
Hello, dear friends!
How can I resolve this error?
Problem description: bug: TypeError: Cannot read properties of undefined (reading 'boundingSphere') by golubeva-webmaster · Pull Request #14089 · BabylonJS/Babylon.js · GitHub
Welcome aboard!
The only boundingSphere
that is accessed in RenderingGroup
is through subMesh.getBoundingInfo().boundingSphere
and I don’t see a reason why getBoundingInfo()
would return undefined
…
If possible, we would need a repro in the Playground to be able to help more.
Hi! As @Evgeni_Popov asked, it would be wonderful if you can reproduce this. We need a playground or a project where it is failing, otherwise we can’t really know what the issue is.
Unfortunately, the project is very large. I have no idea how to transfer it to the playground.
I’ll be honest and say I wouldn’t want to patch the issue in a specific area without knowing exactly why the bounding information is suddenly null (referencing your post from GitHub - bug: TypeError: Cannot read properties of undefined (reading 'boundingSphere') by golubeva-webmaster · Pull Request #14089 · BabylonJS/Babylon.js · GitHub) can you try explaining what is being done when this happens? maybe try a simple reproduction in the playground?
What we are trying to do is to be 100% sure it is a problem in the engine. The engine is not clean of bugs for sure, but in certain times it might be some external influence that causes the issue and not directly the babylon code.