tommasoturchi / react-three-mind

MindAR components for @react-three/fiber
37 stars 12 forks source link

AR / threejs environment persisting between route changes #23

Open amcc opened 2 days ago

amcc commented 2 days ago

I have a nextJS app with multiple AR pages. If i look at one AR scene, then go back to the list and navigate to another AR scene a boxGeometry is left in the threejs environment.

I have tested with using image textures and video textures on a boxGeometry object. The behaviour is that the geometry correctly shows a texture passed as an image, or video to the component and works correctly. Navigating to a new page appear which will pass the AR component a different image or video prop then will show the previous geometry still in the scene, its texture is updated to the new image, or video, but the geometry remains frozen in place