Since our project needs to be compatible with IOS using WebXR, we used WebXR-polyfill for support.
But after turning on VR mode with WebXR-polyfill, some objects always suddenly disappear, but nothing changes in threejs’ Object3d structure, the objects are still there. And the object’s onAfterRender also feeds back normally.
I know the problem may not be caused by threejs, but is there any possibility of fixing him? Or what caused it?
Not enough information to resolve that unfortunately. Maybe a dev seeing the identical behavior will chime in, but…
only advice I can offer is to verify no errors or warnings in the console… make sure you’re using recent version of threejs,
and then binary testing, disabling certain objects/features until the problem goes away, and then identifying the smallest reproduction possible and either analysing it, or throwing it over the fence as a bug report.
What confused me was that there were no warnings or errors in the console. The issue only happened on ios, while everything worked fine on Pc or oculus.
Thanks again for your help. I will first try to reproduce this problem with a minimal project.