When these are set, the error occurs. When they are not set, it works as expected. Seems like a transparent scene background crashes the renderer when using scene.remove(). !
i think the scene.remove() is doing fine, why it looks like the gltf is not removed because the animate function encountered an error when u removed the gltf. when u remove an object u must halt the animate function after the removal is complete then resume the animate function
“when u remove an object u must halt the animate function after the removal is complete then resume the animate function” - really? I’ve never needed to do that before.
halting the animation is barely noticible, but giving micro seconds halt allows ur scene.remove() or memory management function to safely remove and deallocate the browser vram, this is maybe irrelevant on few gltf removal but this will prevent errors on large scale threejs project involving hundreds of gltf models.