The container messed up when I rotated the plane

Hello All,

When I rebuild a project and the OrbitControls made me so said~~~

I added the Orbitcontrols, nit the container messed up when I rotated the plane

I have no idea why this happened, please check the gif. It does not happen all the time.

Please show how you create and configure renderer and controls. Preferably as a live example.

Here is the demo

Please double check, thanks!!!

This happens because you set preserveDrawingBuffer to true when creating your renderer and disable autoClear.

Notice that there are only a few use cases where it makes sense to change these flags. Try it with this setup:

1 Like

Cool, thanks, It works!!! I have no idea why I added this option. I will double-check my previous project.